Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!cs.utexas.edu!rice!sun-spots-request From: astroatc!ttl@cs.wisc.edu (Tony Laundrie) Newsgroups: comp.sys.sun Subject: Fig bug fix for Sparc Keywords: Source Message-ID: <3166@brazos.Rice.edu> Date: 21 Nov 89 01:03:20 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 40 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 202, message 9 of 17 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@astroatc.uucp ...uwvax!astroatc!ttl Tony Laundrie