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

Comparing ray/src/px/psign.c (file contents):
Revision 2.17 by greg, Thu Apr 14 04:53:54 1994 UTC vs.
Revision 2.20 by schorsch, Sun Jun 8 12:03:10 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 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   *  psign.c - produce picture from text.
6   *
# Line 11 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   */
9  
10   #include  "standard.h"
11 <
11 > #include  "platform.h"
12   #include  "color.h"
16
13   #include  "font.h"
14  
15   #ifndef  SSS
# Line 62 | Line 58 | int  argc;
58   char  *argv[];
59   {
60          int  an;
61 < #ifdef MSDOS
66 <        setmode(fileno(stdout), O_BINARY);
67 < #endif
61 >        SET_FILE_BINARY(stdout);
62          for (an = 1; an < argc && argv[an][0] == '-'; an++)
63                  switch (argv[an][1]) {
64                  case 'c':                       /* color */
# Line 223 | Line 217 | FILE  *fp;
217                  if (curl == NULL)
218                          goto memerr;
219                  len = strlen(buf);
220 <                curl->s = malloc(len);
220 >                curl->s = (char *)malloc(len);
221                  curl->sp = (short *)malloc(sizeof(short)*len--);
222                  if (curl->s == NULL | curl->sp == NULL)
223                          goto memerr;
# Line 260 | Line 254 | char  *av[];
254          ourtext = (LINE *)malloc(sizeof(LINE));
255          if (ourtext == NULL)
256                  goto memerr;
257 <        ourtext->s = malloc(MAXLINE);
257 >        ourtext->s = (char *)malloc(MAXLINE);
258          if (ourtext->s == NULL)
259                  goto memerr;
260          for (cp = ourtext->s; ac-- > 0; av++) {
# Line 438 | Line 432 | FILE  *fp;
432                          exit(1);
433                  }
434          }
435 <        free((char *)scanout);
435 >        free((void *)scanout);
436   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines