Fig bug fix for Sparc

Tony Laundrie astroatc!ttl at cs.wisc.edu
Tue Nov 21 12:03:20 AEST 1989


I got the fig shars and the fig patches from the archive server at
titan.rice.edu, but I found an error in f2ps.c and f2p.c (variables
weren't being initialized).  Use the following code to modify those
programs:

/*   ------------  the new stuff is marked with > -------------   */
...etc.
main(argc, argv)
int	 argc;
char	*argv[];
{
	F_compound	objects;
	int		status;
	char		c;

	get_args(argc, argv);

	if (to == NULL)
	    tfp = stdout;
	else if ((tfp = fopen(to, "w")) == NULL) {
	    fprintf(stderr, "Couldn't open %s", to);
	    fprintf(stderr, Usage, prog);
	    exit(0);
	    }

>	objects.next = NULL;
>	objects.lines = NULL;
>	objects.ellipses = NULL;
>	objects.splines = NULL;
>	objects.texts = NULL;
>	objects.arcs = NULL;
>	objects.compounds = NULL;

	if (from) {
	    status = read_fig(from, &objects);
	    }
	 ... etc.
/*   ------------  the new stuff is marked with > -------------   */

ttl at astroatc.uucp   ...uwvax!astroatc!ttl   Tony Laundrie



More information about the Comp.sys.sun mailing list