9 |
|
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
< |
#include "standard.h" |
12 |
> |
#include <ctype.h> |
13 |
> |
#include <string.h> |
14 |
> |
#include <stdio.h> |
15 |
|
|
16 |
+ |
#include "platform.h" |
17 |
+ |
#include "rtprocess.h" |
18 |
+ |
#include "standard.h" |
19 |
|
#include "object.h" |
15 |
– |
|
20 |
|
#include "otypes.h" |
21 |
|
|
18 |
– |
#include <ctype.h> |
22 |
|
|
23 |
|
OBJREC *objblock[MAXOBJBLK]; /* our objects */ |
24 |
|
OBJECT nobjects = 0; /* # of objects */ |
30 |
|
{ |
31 |
|
OBJECT lastobj; |
32 |
|
FILE *infp; |
33 |
< |
char buf[1024]; |
33 |
> |
char buf[2048]; |
34 |
|
register int c; |
35 |
|
|
36 |
|
lastobj = nobjects; |
166 |
|
|
167 |
|
void |
168 |
|
freeobjects(firstobj, nobjs) /* free a range of objects */ |
169 |
< |
OBJECT firstobj, nobjs; |
169 |
> |
int firstobj, nobjs; |
170 |
|
{ |
171 |
|
register int obj; |
172 |
|
/* check bounds */ |
182 |
|
free_os(o); /* free client memory */ |
183 |
|
freeqstr(o->oname); |
184 |
|
freefargs(&o->oargs); |
185 |
< |
bzero((void *)o, sizeof(OBJREC)); |
185 |
> |
memset((void *)o, '\0', sizeof(OBJREC)); |
186 |
|
} |
187 |
|
clearobjndx(); |
188 |
|
/* free objects off end */ |