diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 16:46:15 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-12 11:49:19 -0800 |
commit | 78139e4cfe37c56bb8e06a2574c7d476d9607af9 (patch) | |
tree | 7114a7c017fa72e1689bb5737ac2be8ca9e3a81c /parse.c | |
parent | 2c49a8335a953206ce8603c5522153c59e1f7a0d (diff) | |
download | xorg-util-makedepend-78139e4cfe37c56bb8e06a2574c7d476d9607af9.tar.gz |
Remove register keyword from variable declarations
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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))) { |