| 7 |  |  | 
| 8 |  | #include <string.h> | 
| 9 |  |  | 
| 10 | – | #include "rholo.h" | 
| 10 |  | #include "platform.h" | 
| 11 | + | #include "rterror.h" | 
| 12 | + | #include "rholo.h" | 
| 13 |  | #include "view.h" | 
| 14 |  |  | 
| 15 |  | char    *progname;              /* our program name */ | 
| 32 |  |  | 
| 33 |  | extern int      nowarn;         /* turn warnings off? */ | 
| 34 |  |  | 
| 35 | + | static void dopicture(int fn); | 
| 36 | + | static void render_frame(PACKHEAD *bl, int nb); | 
| 37 | + | static void startpicture(int fn); | 
| 38 | + | static int endpicture(void); | 
| 39 | + | static void initialize(void); | 
| 40 | + | /* from rhpict2.c */ | 
| 41 | + | extern void pixFinish(double ransamp); | 
| 42 | + | extern void pixBeam(BEAM *bp, HDBEAMI *hb); | 
| 43 |  |  | 
| 44 | < | main(argc, argv) | 
| 45 | < | int     argc; | 
| 46 | < | char    *argv[]; | 
| 44 | > |  | 
| 45 | > | int | 
| 46 | > | main( | 
| 47 | > | int     argc, | 
| 48 | > | char    *argv[] | 
| 49 | > | ) | 
| 50 |  | { | 
| 51 |  | int     i, rval; | 
| 52 |  |  | 
| 137 |  | "Usage: %s [-w][-r rf][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", | 
| 138 |  | progname); | 
| 139 |  | quit(1); | 
| 140 | + | return 1;  /* pro forma return */ | 
| 141 |  | } | 
| 142 |  |  | 
| 143 |  |  | 
| 144 | < | dopicture(fn)                   /* render view from holodeck */ | 
| 145 | < | int     fn; | 
| 144 | > | static void | 
| 145 | > | dopicture(                      /* render view from holodeck */ | 
| 146 | > | int     fn | 
| 147 | > | ) | 
| 148 |  | { | 
| 149 |  | char    *err; | 
| 150 |  | int     rval; | 
| 181 |  | } | 
| 182 |  |  | 
| 183 |  |  | 
| 184 | < | render_frame(bl, nb)            /* render frame from beam values */ | 
| 185 | < | register PACKHEAD       *bl; | 
| 186 | < | int     nb; | 
| 184 | > | static void | 
| 185 | > | render_frame(           /* render frame from beam values */ | 
| 186 | > | register PACKHEAD       *bl, | 
| 187 | > | int     nb | 
| 188 | > | ) | 
| 189 |  | { | 
| 173 | – | extern void     pixBeam(); | 
| 190 |  | register HDBEAMI        *bil; | 
| 191 |  | register int    i; | 
| 192 |  |  | 
| 203 |  | } | 
| 204 |  |  | 
| 205 |  |  | 
| 206 | < | startpicture(fn)                /* initialize picture for rendering & output */ | 
| 207 | < | int     fn; | 
| 206 | > | static void | 
| 207 | > | startpicture(           /* initialize picture for rendering & output */ | 
| 208 | > | int     fn | 
| 209 | > | ) | 
| 210 |  | { | 
| 211 |  | extern char     VersionID[]; | 
| 212 |  | double  pa = pixaspect; | 
| 246 |  | } | 
| 247 |  |  | 
| 248 |  |  | 
| 249 | < | int | 
| 250 | < | endpicture()                    /* finish and write out pixels */ | 
| 249 | > | static int | 
| 250 | > | endpicture(void)                        /* finish and write out pixels */ | 
| 251 |  | { | 
| 252 |  | int     lastr = -1, nunrend = 0; | 
| 253 |  | int32   lastp, lastrp; | 
| 280 |  | } | 
| 281 |  |  | 
| 282 |  |  | 
| 283 | < | initialize()                    /* initialize holodeck and buffers */ | 
| 283 | > | static void | 
| 284 | > | initialize(void)                        /* initialize holodeck and buffers */ | 
| 285 |  | { | 
| 286 |  | int     fd; | 
| 287 |  | FILE    *fp; |