17 |
|
|
18 |
|
|
19 |
|
int |
20 |
< |
otype(ofname) /* get object function number from its name */ |
21 |
< |
register char *ofname; |
20 |
> |
otype( /* get object function number from its name */ |
21 |
> |
char *ofname |
22 |
> |
) |
23 |
|
{ |
24 |
< |
register int i; |
24 |
> |
int i; |
25 |
|
|
26 |
|
for (i = 0; i < NUMOTYPE; i++) |
27 |
< |
if (!strcmp(ofun[i].funame, ofname)) |
27 |
> |
if (ofun[i].funame[0] == ofname[0] && |
28 |
> |
!strcmp(ofun[i].funame, ofname)) |
29 |
|
return(i); |
30 |
|
|
31 |
|
return(-1); /* not found */ |
33 |
|
|
34 |
|
|
35 |
|
void |
36 |
< |
objerror(o, etyp, msg) /* report error related to object */ |
37 |
< |
OBJREC *o; |
38 |
< |
int etyp; |
39 |
< |
char *msg; |
36 |
> |
objerror( /* report error related to object */ |
37 |
> |
OBJREC *o, |
38 |
> |
int etyp, |
39 |
> |
char *msg |
40 |
> |
) |
41 |
|
{ |
42 |
|
char msgbuf[512]; |
43 |
|
|