summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-06 16:46:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-12 11:49:19 -0800
commit78139e4cfe37c56bb8e06a2574c7d476d9607af9 (patch)
tree7114a7c017fa72e1689bb5737ac2be8ca9e3a81c
parent2c49a8335a953206ce8603c5522153c59e1f7a0d (diff)
downloadxorg-util-makedepend-78139e4cfe37c56bb8e06a2574c7d476d9607af9.tar.gz
Remove register keyword from variable declarations
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--include.c10
-rw-r--r--parse.c28
-rw-r--r--pr.c6
3 files changed, 22 insertions, 22 deletions
diff --git a/include.c b/include.c
index 9cc97f8..08c0ee4 100644
--- a/include.c
+++ b/include.c
@@ -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) {
diff --git a/parse.c b/parse.c
index 9342dcf..2e4b369 100644
--- a/parse.c
+++ b/parse.c
@@ -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))) {
diff --git a/pr.c b/pr.c
index f3a09c2..32ad246 100644
--- a/pr.c
+++ b/pr.c
@@ -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];