7 |
|
|
8 |
|
#include "copyright.h" |
9 |
|
|
10 |
< |
#include "standard.h" |
10 |
> |
#include <stdio.h> |
11 |
|
|
12 |
+ |
#include "standard.h" |
13 |
+ |
#include "platform.h" |
14 |
|
#include "octree.h" |
13 |
– |
|
15 |
|
#include "object.h" |
15 |
– |
|
16 |
|
#include "otypes.h" |
17 |
+ |
#include "resolu.h" |
18 |
|
|
19 |
|
static double ogetflt(); |
20 |
|
static long ogetint(); |
21 |
|
static char *ogetstr(); |
22 |
|
static int nonsurfinset(); |
23 |
< |
static int octerror(), skiptree(); |
23 |
> |
static void octerror(int etyp, char *msg); |
24 |
> |
static void skiptree(void); |
25 |
|
static OCTREE getfullnode(), gettree(); |
26 |
|
|
27 |
|
static char *infn; /* input file specification */ |
60 |
|
error(SYSTEM, errmsg); |
61 |
|
} |
62 |
|
} |
63 |
< |
#ifdef MSDOS |
62 |
< |
setmode(fileno(infp), O_BINARY); |
63 |
< |
#endif |
63 |
> |
SET_FILE_BINARY(infp); |
64 |
|
/* get header */ |
65 |
|
if (checkheader(infp, OCTFMT, load&IO_INFO ? stdout : (FILE *)NULL) < 0) |
66 |
|
octerror(USER, "not an octree"); |
199 |
|
default: |
200 |
|
octerror(USER, "damaged octree"); |
201 |
|
} |
202 |
+ |
return NULL; /* pro forma return */ |
203 |
|
} |
204 |
|
|
205 |
|
|
218 |
|
} |
219 |
|
|
220 |
|
|
221 |
< |
static |
222 |
< |
skiptree() /* skip octree on input */ |
221 |
> |
static void |
222 |
> |
skiptree(void) /* skip octree on input */ |
223 |
|
{ |
224 |
|
register int i; |
225 |
|
|
243 |
|
} |
244 |
|
|
245 |
|
|
246 |
< |
static |
246 |
> |
static void |
247 |
|
octerror(etyp, msg) /* octree error */ |
248 |
|
int etyp; |
249 |
|
char *msg; |