19 |
|
#include "object.h" |
20 |
|
#include "otypes.h" |
21 |
|
|
22 |
+ |
#ifdef getc_unlocked /* avoid horrendous overhead of flockfile */ |
23 |
+ |
#undef getc |
24 |
+ |
#define getc getc_unlocked |
25 |
+ |
#endif |
26 |
+ |
|
27 |
|
int xac; /* global xform argument count */ |
28 |
|
char **xav; /* global xform argument pointer */ |
29 |
|
int xfa; /* start of xf arguments */ |
103 |
|
if (idprefix == NULL) |
104 |
|
idprefix = argv[a]; |
105 |
|
else { |
106 |
< |
register char *newp; |
106 |
> |
char *newp; |
107 |
|
newp = (char *)malloc(strlen(idprefix)+ |
108 |
|
strlen(argv[a])+2); |
109 |
|
if (newp == NULL) |
189 |
|
char argbuf[2048]; |
190 |
|
char *newid, newidbuf[128]; |
191 |
|
char *oldid; |
192 |
< |
register char *cp; |
192 |
> |
char *cp; |
193 |
|
FILE *argfp; |
194 |
|
int n, i, k, newac, err; |
195 |
|
|
348 |
|
void |
349 |
|
xform( /* transform stream by tot.xfm */ |
350 |
|
char *name, |
351 |
< |
register FILE *fin |
351 |
> |
FILE *fin |
352 |
|
) |
353 |
|
{ |
354 |
|
int nobjs = 0; |
355 |
< |
register int c; |
355 |
> |
int c; |
356 |
|
|
357 |
|
while ((c = getc(fin)) != EOF) { |
358 |
|
if (isspace(c)) /* blank */ |
461 |
|
FILE *fin |
462 |
|
) |
463 |
|
{ |
464 |
< |
register int i; |
464 |
> |
int i; |
465 |
|
FUNARGS fa; |
466 |
|
|
467 |
|
if (readfargs(&fa, fin) != 1) |
497 |
|
FILE *fin |
498 |
|
) |
499 |
|
{ |
500 |
< |
register int i; |
500 |
> |
int i; |
501 |
|
int resetarr = 0; |
502 |
|
FUNARGS fa; |
503 |
|
|
610 |
|
else |
611 |
|
for (i = 0; i < fa.nsargs; i++) { |
612 |
|
char sname[256], *sp; |
613 |
< |
register char *cp1, *cp2 = sname; |
613 |
> |
char *cp1, *cp2 = sname; |
614 |
|
/* add idprefix */ |
615 |
|
for (sp = fa.sarg[i]; *sp; sp = cp1) { |
616 |
|
for (cp1 = idprefix; *cp1; ) |
780 |
|
) |
781 |
|
{ |
782 |
|
FVECT p; |
783 |
< |
register int i; |
783 |
> |
int i; |
784 |
|
FUNARGS fa; |
785 |
|
|
786 |
|
if (readfargs(&fa, fin) != 1) |
894 |
|
void |
895 |
|
initotypes(void) /* initialize ofun[] array */ |
896 |
|
{ |
897 |
< |
register int i; |
897 |
> |
int i; |
898 |
|
|
899 |
|
if (ofun[OBJ_SOURCE].funp == o_source) |
900 |
|
return; /* done already */ |
972 |
|
static char origdir[PATH_MAX]; |
973 |
|
static char curfn[PATH_MAX]; |
974 |
|
static int diffdir; |
975 |
< |
register char *fpath; |
975 |
> |
char *fpath; |
976 |
|
|
977 |
|
if (iname == NULL) { /* standard input */ |
978 |
|
if (mainfp == NULL) { |
979 |
< |
register int c; |
979 |
> |
int c; |
980 |
|
strcpy(mainfn, "standard input"); |
981 |
|
if (nrept <= 1) { |
982 |
|
mainfp = stdin; |
1020 |
|
/* record path name */ |
1021 |
|
strcpy(mainfn, fpath); |
1022 |
|
if (expand) { /* change to local directory */ |
1023 |
< |
register char *cp = fpath + strlen(fpath); /* get dir. */ |
1023 |
> |
char *cp = fpath + strlen(fpath); /* get dir. */ |
1024 |
|
while (cp > fpath) { |
1025 |
|
cp--; |
1026 |
|
if (ISDIRSEP(*cp)) { |