diff options
-rw-r--r-- | include.c | 10 | ||||
-rw-r--r-- | parse.c | 28 | ||||
-rw-r--r-- | pr.c | 6 |
3 files changed, 22 insertions, 22 deletions
@@ -71,7 +71,7 @@ issymbolic(const char *dir, const char *component) static void remove_dotdot(char *path) { - register char *end, *from, *to, **cp; + char *end, *from, *to, **cp; char *components[MAXFILES], newpath[BUFSIZ]; boolean component_copied; @@ -142,7 +142,7 @@ remove_dotdot(char *path) struct inclist * newinclude(const char *newfile, const char *incstring) { - register struct inclist *ip; + struct inclist *ip; /* * First, put this file on the global list of include files. @@ -164,7 +164,7 @@ newinclude(const char *newfile, const char *incstring) void included_by(struct inclist *ip, struct inclist *newfile) { - register int i; + int i; if (ip == NULL) return; @@ -210,7 +210,7 @@ included_by(struct inclist *ip, struct inclist *newfile) void inc_clean(void) { - register struct inclist *ip; + struct inclist *ip; for (ip = inclist; ip < inclistp; ip++) { ip->i_flags &= ~MARKED; @@ -225,7 +225,7 @@ static const char * find_full_inc_path(const char *file, const char *include, int type) { static char path[BUFSIZ]; - register const char **pp, *p; + const char **pp, *p; struct stat st; if (inclistnext == inclist) { @@ -95,9 +95,9 @@ static int deftype(char *line, struct filepointer *filep, struct inclist *file_red, struct inclist *file, int parse_it) { - register char *p; + char *p; char *directive, savechar, *q; - register int ret; + int ret; /* * Parse the directive... @@ -310,7 +310,7 @@ void define2(const char *name, const char *val, struct inclist *file) { int first, last, below; - register struct symtab **sp = NULL, **dest; + struct symtab **sp = NULL, **dest; struct symtab *stab; /* Make space if it's needed */ @@ -330,9 +330,9 @@ define2(const char *name, const char *val, struct inclist *file) last = file->i_ndefs - 1; while (last >= first) { /* Fast inline binary search */ - register const char *s1; - register const char *s2; - register int middle = (first + last) / 2; + const char *s1; + const char *s2; + int middle = (first + last) / 2; /* Fast inline strchr() */ s1 = name; @@ -407,8 +407,8 @@ define(char *def, struct inclist *file) struct symtab ** slookup(const char *symbol, struct inclist *file) { - register int first = 0; - register int last; + int first = 0; + int last; if (file == NULL) return NULL; @@ -417,9 +417,9 @@ slookup(const char *symbol, struct inclist *file) while (last >= first) { /* Fast inline binary search */ - register const char *s1; - register const char *s2; - register int middle = (first + last) / 2; + const char *s1; + const char *s2; + int middle = (first + last) / 2; /* Fast inline strchr() */ s1 = symbol; @@ -510,7 +510,7 @@ merge2defines(struct inclist *file1, struct inclist *file2) void undefine(const char *symbol, struct inclist *file) { - register struct symtab **ptr; + struct symtab **ptr; struct inclist *srcfile; while ((ptr = isdefined(symbol, file, &srcfile)) != NULL) { @@ -526,8 +526,8 @@ find_includes(struct filepointer *filep, struct inclist *file, { struct inclist *inclistp; const char **includedirsp; - register char *line; - register int type; + char *line; + int type; boolean recfailOK; while ((line = getnextline(filep))) { @@ -31,8 +31,8 @@ add_include(struct filepointer *filep, struct inclist *file, struct inclist *file_red, const char *include, int type, boolean failOK) { - register struct inclist *newfile; - register struct filepointer *content; + struct inclist *newfile; + struct filepointer *content; /* * First decide what the pathname of this include file really is. @@ -106,7 +106,7 @@ pr(struct inclist *ip, const char *file, const char *base) { static const char *lastfile; static int current_len; - register int len, i; + int len, i; const char *quoted; char quotebuf[BUFSIZ]; |