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

Comparing ray/src/cv/mgflib/context.c (file contents):
Revision 1.3 by greg, Thu Jun 23 07:48:39 1994 UTC vs.
Revision 1.4 by greg, Fri Jun 24 09:32:49 1994 UTC

# Line 43 | Line 43 | register char  **av;
43  
44          switch (mg_entity(av[0])) {
45          case MG_E_COLOR:        /* get/set color context */
46 +                if (ac > 4)
47 +                        return(MG_EARGC);
48                  if (ac == 1) {          /* set unnamed color context */
49                          c_uncolor = c_dfcolor;
50                          c_ccolor = &c_uncolor;
# Line 107 | Line 109 | register char  **av;
109  
110          switch (mg_entity(av[0])) {
111          case MG_E_MATERIAL:     /* get/set material context */
112 +                if (ac > 4)
113 +                        return(MG_EARGC);
114                  if (ac == 1) {          /* set unnamed material context */
115                          c_unmaterial = c_dfmaterial;
116                          c_cmaterial = &c_unmaterial;
# Line 221 | Line 225 | register char  **av;
225  
226          switch (mg_entity(av[0])) {
227          case MG_E_VERTEX:       /* get/set vertex context */
228 +                if (ac > 4)
229 +                        return(MG_EARGC);
230                  if (ac == 1) {          /* set unnamed vertex context */
231                          c_unvertex = c_dfvertex;
232                          c_cvertex = &c_unvertex;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines