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

Comparing ray/src/meta/tscat.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.4 by schorsch, Sat Nov 15 02:13:37 2003 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11   */
12  
13   #include  "tgraph.h"
14 + #include  "paths.h"
15 + #include  "plot.h"
16  
15
17   #define  XLEGEND  (XBEG+XSIZ+4*TSIZ)    /* x start of legend */
18  
19   #define  YLEGEND  (YBEG+2*YSIZ/3)       /* y start of legend */
# Line 48 | Line 49 | char  *progname;
49  
50  
51  
52 <
53 <
54 < main(argc, argv)
55 <
56 < int  argc;
56 < char  **argv;
57 <
52 > int
53 > main(
54 >        int  argc,
55 >        char  **argv
56 > )
57   /*
58   *     Take Tel-A-Graf runnable files and convert them to
59   *  metafile primitives to send to standard output
# Line 65 | Line 64 | char  **argv;
64   FILE  *fp;
65   int  axflag;
66  
68 #ifdef  CPM
69 fixargs("tscat", &argc, &argv);
70 #endif
71
67   progname = *argv++;
68   argc--;
69  
# Line 103 | Line 98 | char  **argv;
98         }
99   else  {
100  
101 <    sprintf(tfname, "%sts%d", TDIR, getpid());
101 >    /*sprintf(tfname, "%sts%d", TDIR, getpid());*/
102 >        temp_filename(tfname, sizeof(tfname), NULL);
103      fp = efopen(tfname, "w+");
104      normalize(stdin, fp);
105      makeaxis(axflag);
# Line 121 | Line 117 | char  **argv;
117  
118  
119  
120 <
121 < plot(fp)                        /* read file and generate plot */
122 <
123 < FILE  *fp;
128 <
120 > void
121 > plot(                   /* read file and generate plot */
122 >        FILE  *fp
123 > )
124   {
125   int  ncur = 0;                 /* curves seen so far */
126   char  line[255], *s;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines