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 1.1 by greg, Thu Feb 2 10:49:28 1989 UTC vs.
Revision 1.2 by greg, Sat Dec 8 10:12:07 1990 UTC

# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ LBL";
16  
17   #define  MAXLINE                512     /* longest allowable line */
18  
19 < char  *fontfile = "/usr/local/lib/ray/helvet.fnt";      /* our font file */
19 > char  *fontfile = "helvet.fnt";         /* our font file */
20  
21   COLR  bgcolr = WHTCOLR;                 /* background color */
22   COLR  fgcolr = BLKCOLR;                 /* foreground color */
# Line 49 | Line 49 | typedef struct line {
49   LINE  *ourtext;                         /* our text */
50   int  nlines, maxline;                   /* text dimensions */
51  
52 < char  *malloc(), *calloc();
52 > extern char  *malloc(), *calloc();
53 > extern FILE  *fropen();
54  
55  
56   main(argc, argv)
# Line 154 | Line 155 | loadfont()                     /* load the font file */
155          int  gn, ngv, gv;
156          register GLYPH  *g;
157  
158 <        if ((fp = fopen(fontfile, "r")) == NULL) {
159 <                fprintf(stderr, "cannot open font file \"%s\"\n",
158 >        if ((fp = fropen(fontfile)) == NULL) {
159 >                fprintf(stderr, "cannot find font file \"%s\"\n",
160                                  fontfile);
161                  exit(1);
162          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines