ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/genworm.c
(Generate patch)

Comparing ray/src/gen/genworm.c (file contents):
Revision 1.5 by greg, Mon Jul 9 09:55:50 1990 UTC vs.
Revision 1.8 by greg, Tue Apr 23 15:51:15 1991 UTC

# Line 43 | Line 43 | char  *argv[];
43          FVECT  lastp, p;
44          int  i, nseg;
45  
46 <        varset("PI", PI, NULL);
47 <        funset("hermite", 5, l_hermite);
48 <        funset("bezier", 5, l_bezier);
49 <        funset("bspline", 5, l_bspline);
46 >        varset("PI", ':', PI);
47 >        funset("hermite", 5, ':', l_hermite);
48 >        funset("bezier", 5, ':', l_bezier);
49 >        funset("bspline", 5, ':', l_bspline);
50  
51          if (argc < 8)
52                  goto userror;
53  
54          for (i = 8; i < argc; i++)
55                  if (!strcmp(argv[i], "-e"))
56 <                        scompile(NULL, argv[++i]);
56 >                        scompile(argv[++i], NULL, 0);
57                  else if (!strcmp(argv[i], "-f"))
58                          fcompile(argv[++i]);
59                  else
60                          goto userror;
61  
62          sprintf(stmp, "%s(t)=%s;", XNAME, argv[3]);
63 <        scompile(NULL, stmp);
63 >        scompile(stmp, NULL, 0);
64          sprintf(stmp, "%s(t)=%s;", YNAME, argv[4]);
65 <        scompile(NULL, stmp);
65 >        scompile(stmp, NULL, 0);
66          sprintf(stmp, "%s(t)=%s;", ZNAME, argv[5]);
67 <        scompile(NULL, stmp);
67 >        scompile(stmp, NULL, 0);
68          sprintf(stmp, "%s(t)=%s;", RNAME, argv[6]);
69 <        scompile(NULL, stmp);
69 >        scompile(stmp, NULL, 0);
70          nseg = atoi(argv[7]);
71          if (nseg <= 0)
72                  goto userror;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines