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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.35 by greg, Tue Feb 2 18:02:32 2016 UTC vs.
Revision 2.38 by greg, Fri Jul 19 17:37:56 2019 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *     6/30/87
8   */
9  
10 #include  <stdio.h>
10   #include  <math.h>
12 #include  <time.h>
13 #include  <string.h>
11  
12   #include "copyright.h"
13  
14 + #include  "rtio.h"
15   #include  "platform.h"
16   #include  "paths.h"
17   #include  "rterror.h"
18   #include  "color.h"
19   #include  "resolu.h"
20  
21 + #ifdef getc_unlocked            /* avoid horrendous overhead of flockfile */
22 + #undef getc
23 + #define getc    getc_unlocked
24 + #endif
25 +
26   #define  MAXFILE        1024
27  
28   #define  HASMIN         1
# Line 75 | Line 78 | headline(                      /* print line preceded by a tab */
78          void    *p
79   )
80   {
81 <        char  fmt[32];
81 >        char  fmt[MAXFMTLEN];
82  
83          if (isheadid(s))
84                  return(0);
# Line 86 | Line 89 | headline(                      /* print line preceded by a tab */
89                  } else
90                          wrongformat = 1;
91          } else if (echoheader) {
92 <                putc('\t', stdout);
92 >                fputc('\t', stdout);
93                  fputs(s, stdout);
94          }
95          return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines