5 |
|
* readobj2.c - routines for reading in object descriptions. |
6 |
|
*/ |
7 |
|
|
8 |
< |
#include "standard.h" |
8 |
> |
#include <ctype.h> |
9 |
|
|
10 |
+ |
#include "platform.h" |
11 |
+ |
#include "standard.h" |
12 |
|
#include "object.h" |
11 |
– |
|
13 |
|
#include "otypes.h" |
14 |
|
|
14 |
– |
#include <ctype.h> |
15 |
|
|
16 |
|
extern char *fgetword(); |
17 |
|
|
70 |
|
thisobj.omod = OVOID; |
71 |
|
/* get type */ |
72 |
|
fgetword(sbuf, MAXSTR, fp); |
73 |
< |
if (!strcmp(sbuf, ALIASID)) |
74 |
< |
thisobj.otype = -1; |
75 |
< |
else if ((thisobj.otype = otype(sbuf)) < 0) { |
73 |
> |
if ((thisobj.otype = otype(sbuf)) < 0) { |
74 |
|
sprintf(errmsg, "(%s): unknown type \"%s\"", name, sbuf); |
75 |
|
error(USER, errmsg); |
76 |
|
} |
78 |
|
fgetword(sbuf, MAXSTR, fp); |
79 |
|
thisobj.oname = sbuf; |
80 |
|
/* get arguments */ |
81 |
< |
if (thisobj.otype == -1) { |
81 |
> |
if (thisobj.otype == MOD_ALIAS) { |
82 |
|
fscanf(fp, "%*s"); |
83 |
|
return; |
84 |
|
} |