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

Comparing ray/src/cv/mgflib/mgfilt.c (file contents):
Revision 1.4 by greg, Thu May 11 21:48:40 1995 UTC vs.
Revision 1.7 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Filter MGF stream, removing entities that won't be understood
6   */
7  
8   #include <stdio.h>
9 + #include <stdlib.h>
10   #include "parser.h"
11  
12                                  /* Number of entities for major versions */
# Line 43 | Line 41 | char   *argv[];
41          }
42          if (isint(argv[1])) {
43                  i = atoi(argv[1]);
44 <                if (i < 1 | i > MG_VMAJOR) {
44 >                if ((i < 1) | (i > MG_VMAJOR)) {
45                          fprintf(stderr, "%s: bad version number: %d\n",
46                                          argv[0], i);
47                          exit(1);
48                  }
49                  for (en = nentlist[i-1]; en--; )
50                          mg_ehand[en] = put_entity;
51 +                mg_ehand[MG_E_INCLUDE] = NULL;          /* expand include's */
52          } else
53                  for (cp1 = cp2 = argv[1]; *cp1; cp1 = cp2) {
54                          while (*cp2) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines