33 |
|
|
34 |
|
#define FORALLPORT(pl,i) for (i=0;i<MAXPORT&&pl[i]!=NULL;i++) |
35 |
|
|
36 |
< |
extern char *atos(), *sskip(), *sskip2(); |
36 |
> |
extern char *nextword(); |
37 |
|
|
38 |
|
|
39 |
|
gmNewGeom(file) /* add new geometry to next list */ |
84 |
|
|
85 |
|
|
86 |
|
int |
87 |
< |
gmDrawGeom() /* draw current list of octrees (and ports) */ |
87 |
> |
gmDrawGeom() /* draw current list of octrees */ |
88 |
|
{ |
89 |
|
register int n; |
90 |
|
|
145 |
|
|
146 |
|
if (pflist == NULL) |
147 |
|
return; |
148 |
< |
while (*pflist) { |
149 |
< |
atos(newfile, sizeof(newfile), pflist); |
150 |
< |
if (!*newfile) |
151 |
< |
break; |
152 |
< |
pflist = sskip(pflist); |
148 |
> |
while ((pflist = nextword(newfile, sizeof(newfile), pflist)) != NULL) { |
149 |
|
FORALLPORT(newportlist,i) |
150 |
|
if (!strcmp(newportlist[i], newfile)) |
151 |
|
goto endloop; /* in list already */ |