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

Comparing ray/src/gen/xform.c (file contents):
Revision 2.25 by greg, Tue May 13 17:58:32 2003 UTC vs.
Revision 2.28 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9   *     11/6/86          Finally added error checking!
10   */
11  
12 #include  "standard.h"
13
14 #include  "paths.h"
15
12   #include  <ctype.h>
13 + #include  <unistd.h>
14  
15 + #include  "standard.h"
16 + #include  "platform.h"
17 + #include  "paths.h"
18   #include  "object.h"
19
19   #include  "otypes.h"
20  
21   int  xac;                               /* global xform argument count */
# Line 42 | Line 41 | int  nrept = 1;                                /* number of array repetitions */
41  
42   int stdinused = 0;                      /* stdin has been used by -f option? */
43  
44 < char  mainfn[MAXPATH];                  /* main file name */
44 > char  mainfn[PATH_MAX];                 /* main file name */
45   FILE  *mainfp = NULL;                   /* main file pointer */
46  
47   #define  progname  (xav[0])
# Line 889 | Line 888 | char  *fname;
888   openmain(iname)         /* open input, changing directory for file */
889   char  *iname;
890   {
891 <        static char  origdir[MAXPATH];
892 <        static char  curfn[MAXPATH];
891 >        static char  origdir[PATH_MAX];
892 >        static char  curfn[PATH_MAX];
893          static int  diffdir;
894          register char  *fpath;
895  
# Line 916 | Line 915 | char  *iname;
915                  return;
916          }
917          if (mainfp == NULL) {                   /* first call, initialize */
918 <                getwd(origdir);
918 >                getcwd(origdir, sizeof(origdir));
919          } else if (!strcmp(iname, curfn)) {     /* just need to rewind? */
920                  rewind(mainfp);
921                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines