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

Comparing ray/src/ot/readobj2.c (file contents):
Revision 2.9 by schorsch, Sat Mar 27 12:41:45 2004 UTC vs.
Revision 2.13 by greg, Tue Apr 22 04:45:25 2025 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   #include  <stdio.h>
10  
11   #include  "platform.h"
12 < #include  "rtprocess.h"
12 > #include  "paths.h"
13   #include  "rtmath.h"
14   #include  "rtio.h"
15   #include  "rterror.h"
# Line 27 | Line 27 | readobj2(      /* read in an object file or stream */
27          ro_cbfunc callback
28   )
29   {
30        char  *fgetline();
30          FILE  *infp;
31 <        char  buf[512];
31 >        char  buf[2048];
32          register int  c;
33  
34          if (input == NULL) {
# Line 58 | Line 57 | readobj2(      /* read in an object file or stream */
57                          getobject2(input, infp, callback);
58                  }
59          }
60 <        if (input[0] == '!')
61 <                pclose(infp);
62 <        else
60 >        if (input[0] == '!') {
61 >                if (pclose(infp) != 0) {
62 >                        sprintf(errmsg, "bad status from \"%s\"", input);
63 >                        error(SYSTEM, errmsg);
64 >                }
65 >        } else
66                  fclose(infp);
67   }
68  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines