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

Comparing ray/src/meta/igraph.c (file contents):
Revision 1.3 by schorsch, Fri Nov 14 00:14:40 2003 UTC vs.
Revision 1.5 by greg, Thu Feb 9 21:54:11 2023 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
15  
16   #include  "rtprocess.h"
17   #include  "rterror.h"
18 + #include  "meta.h"
19 + #include  "mgraph.h"
20   #include  "mgvars.h"
21  
22   typedef struct {
# Line 96 | Line 98 | char  *argv[];
98          mainmenu();
99  
100          quit(0);
101 +        return 0; /* pro forma return */
102   }
103  
104 < extern void
105 < eputs(msg)                              /* print error message */
103 < char  *msg;
104 > void
105 > eputs(const char *msg)                  /* print error message */
106   {
107          fputs(msg, stderr);
108   }
109  
110 < extern void
111 < quit(code)                              /* recover or quit */
110 < int  code;
110 > void
111 > quit(int code)                          /* recover or quit */
112   {
113          if (code && recover--)
114                  longjmp(env, 1);
# Line 173 | Line 174 | mainmenu(void)                 /* the main menu loop */
174                          else
175                                  break;
176                          if (sbuf[0] < MAXCUR)
177 <                                setvars(NCVARS, cparam[sbuf[0]]);
177 >                                setvars(NCVARS, cparam[(int)sbuf[0]]);
178                          break;
179                  case 7:                         /* output plot */
180                          plotout();
# Line 236 | Line 237 | plotout(void)                  /* output our graph */
237   {
238          extern FILE  *pout;
239          char  sbuf[128];
240 <        char  *command;
240 >        char  *command = NULL;
241          int  i;
242  
243          printf("\nOUTPUT PLOT\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines