88 |
|
|
89 |
|
#define bnrays(hp,i) ((hp)->bl[i]!=NULL ? (hp)->bl[i]->nrm : (hp)->bi[i].nrd) |
90 |
|
|
91 |
< |
#define hdflush(hp) (hdfreebeam(hp,0) && hdsync(hp)) |
91 |
> |
#define hdflush(hp) (hdfreebeam(hp,0) && hdsync(hp,0)) |
92 |
> |
#define hdclobber(hp) (hdkillbeam(hp,0) && hdsync(hp,0)) |
93 |
|
|
94 |
|
extern HOLO *hdinit(), *hdalloc(); |
95 |
|
extern BEAM *hdgetbeam(); |
96 |
|
extern RAYVAL *hdnewrays(); |
97 |
< |
extern long hdmemuse(), hdfiluse(); |
97 |
> |
extern long hdmemuse(), hdfiluse(), hdfilen(); |
98 |
|
extern double hdray(), hdinter(); |
99 |
|
extern unsigned hdcode(); |
100 |
|
|
118 |
|
* blank line, with "FORMAT=Holodeck" somewhere in it. |
119 |
|
* The first integer after the information header is the |
120 |
|
* above magic number, which includes the file format version number. |
121 |
< |
* The first longword after the magic number is the position |
122 |
< |
* of the SECOND holodeck section, or 0 if there is only one. |
121 |
> |
* The first longword after the magic number is a pointer to the pointer |
122 |
> |
* just before the SECOND holodeck section, or 0 if there is only one. |
123 |
|
* This longword is immediately followed by the first holodeck |
124 |
|
* section header and directory. |
125 |
|
* Similarly, every holodeck section in the file is preceeded by |