summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-24 21:06:36 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-24 21:45:22 -0700
commit5aaab254c02795622bdf42e348ad8473aa1fc643 (patch)
tree341c84b4a4867c96c3bcd4a63d34c244356054ce /x2p
parenta8bd0d47f960000fee81e97d55dd5e8bac15e034 (diff)
downloadperl-5aaab254c02795622bdf42e348ad8473aa1fc643.tar.gz
Remove "register" declarations
This finishes the removal of register declarations started by eb578fdb5569b91c28466a4d1939e381ff6ceaf4. It neglected the ones in function parameter declarations, and didn't include things in dist, ext, and lib, which this does include
Diffstat (limited to 'x2p')
-rw-r--r--x2p/a2py.c10
-rw-r--r--x2p/hash.c6
-rw-r--r--x2p/str.c22
-rw-r--r--x2p/util.c4
-rw-r--r--x2p/walk.c16
5 files changed, 29 insertions, 29 deletions
diff --git a/x2p/a2py.c b/x2p/a2py.c
index aa48daa60c..ca5958b513 100644
--- a/x2p/a2py.c
+++ b/x2p/a2py.c
@@ -31,10 +31,10 @@ int oper2(int type, int arg1, int arg2);
int oper3(int type, int arg1, int arg2, int arg3);
int oper4(int type, int arg1, int arg2, int arg3, int arg4);
int oper5(int type, int arg1, int arg2, int arg3, int arg4, int arg5);
-STR *walk(int useval, int level, register int node, int *numericptr, int minprec);
+STR *walk(int useval, int level, int node, int *numericptr, int minprec);
#ifdef NETWARE
char *savestr(char *str);
-char *cpy2(register char *to, register char *from, register int delim);
+char *cpy2(char *to, char *from, int delim);
#endif
#if defined(OS2) || defined(WIN32) || defined(NETWARE)
@@ -61,7 +61,7 @@ usage()
#endif
int
-main(register int argc, register const char **argv, register const char **env)
+main(int argc, const char **argv, const char **env)
{
STR *str;
int i;
@@ -824,7 +824,7 @@ yylex(void)
}
char *
-scanpat(register char *s)
+scanpat(char *s)
{
char *d;
@@ -876,7 +876,7 @@ yyerror(const char *s)
}
char *
-scannum(register char *s)
+scannum(char *s)
{
char *d;
diff --git a/x2p/hash.c b/x2p/hash.c
index 1620175584..7d9c5ece85 100644
--- a/x2p/hash.c
+++ b/x2p/hash.c
@@ -17,7 +17,7 @@ char *savestr(char *str);
#endif
STR *
-hfetch(register HASH *tb, char *key)
+hfetch(HASH *tb, char *key)
{
char *s;
int i;
@@ -43,7 +43,7 @@ hfetch(register HASH *tb, char *key)
}
bool
-hstore(register HASH *tb, char *key, STR *val)
+hstore(HASH *tb, char *key, STR *val)
{
char *s;
int i;
@@ -141,7 +141,7 @@ hnew(void)
}
int
-hiterinit(register HASH *tb)
+hiterinit(HASH *tb)
{
tb->tbl_riter = -1;
tb->tbl_eiter = (HENT*)NULL;
diff --git a/x2p/str.c b/x2p/str.c
index c10e974374..86127a0f3a 100644
--- a/x2p/str.c
+++ b/x2p/str.c
@@ -12,7 +12,7 @@
#include "util.h"
void
-str_numset(register STR *str, double num)
+str_numset(STR *str, double num)
{
str->str_nval = num;
str->str_pok = 0; /* invalidate pointer */
@@ -20,7 +20,7 @@ str_numset(register STR *str, double num)
}
char *
-str_2ptr(register STR *str)
+str_2ptr(STR *str)
{
char *s;
@@ -43,7 +43,7 @@ str_2ptr(register STR *str)
}
void
-str_sset(STR *dstr, register STR *sstr)
+str_sset(STR *dstr, STR *sstr)
{
if (!sstr)
str_nset(dstr,No,0);
@@ -56,7 +56,7 @@ str_sset(STR *dstr, register STR *sstr)
}
void
-str_nset(register STR *str, register const char *ptr, register int len)
+str_nset(STR *str, const char *ptr, int len)
{
GROWSTR(&(str->str_ptr), &(str->str_len), len + 1);
memcpy(str->str_ptr,ptr,len);
@@ -67,7 +67,7 @@ str_nset(register STR *str, register const char *ptr, register int len)
}
void
-str_set(register STR *str, register const char *ptr)
+str_set(STR *str, const char *ptr)
{
int len;
@@ -82,7 +82,7 @@ str_set(register STR *str, register const char *ptr)
}
void
-str_ncat(register STR *str, register const char *ptr, register int len)
+str_ncat(STR *str, const char *ptr, int len)
{
if (!(str->str_pok))
str_2ptr(str);
@@ -95,7 +95,7 @@ str_ncat(register STR *str, register const char *ptr, register int len)
}
void
-str_scat(STR *dstr, register STR *sstr)
+str_scat(STR *dstr, STR *sstr)
{
if (!(sstr->str_pok))
str_2ptr(sstr);
@@ -104,7 +104,7 @@ str_scat(STR *dstr, register STR *sstr)
}
void
-str_cat(register STR *str, register const char *ptr)
+str_cat(STR *str, const char *ptr)
{
int len;
@@ -141,7 +141,7 @@ str_new(int len)
/* make str point to what nstr did */
void
-str_free(register STR *str)
+str_free(STR *str)
{
if (!str)
return;
@@ -155,7 +155,7 @@ str_free(register STR *str)
}
int
-str_len(register STR *str)
+str_len(STR *str)
{
if (!str)
return 0;
@@ -168,7 +168,7 @@ str_len(register STR *str)
}
char *
-str_gets(register STR *str, register FILE *fp)
+str_gets(STR *str, FILE *fp)
{
#if defined(USE_STDIO_PTR) && defined(STDIO_PTR_LVALUE) && defined(STDIO_CNT_LVALUE)
/* Here is some breathtakingly efficient cheating */
diff --git a/x2p/util.c b/x2p/util.c
index da17c862df..113c3818ff 100644
--- a/x2p/util.c
+++ b/x2p/util.c
@@ -82,7 +82,7 @@ safefree(Malloc_t where)
/* copy a string up to some (non-backslashed) delimiter, if any */
char *
-cpytill(register char *to, register char *from, register int delim)
+cpytill(char *to, char *from, int delim)
{
for (; *from; from++,to++) {
if (*from == '\\') {
@@ -101,7 +101,7 @@ cpytill(register char *to, register char *from, register int delim)
char *
-cpy2(register char *to, register char *from, register int delim)
+cpy2(char *to, char *from, int delim)
{
for (; *from; from++,to++) {
if (*from == '\\')
diff --git a/x2p/walk.c b/x2p/walk.c
index a92808f432..422fcd7afa 100644
--- a/x2p/walk.c
+++ b/x2p/walk.c
@@ -35,12 +35,12 @@ int prewalk ( int numit, int level, int node, int *numericptr );
STR * walk ( int useval, int level, int node, int *numericptr, int minprec );
#ifdef NETWARE
char *savestr(char *str);
-char *cpytill(register char *to, register char *from, register int delim);
+char *cpytill(char *to, char *from, int delim);
char *instr(char *big, const char *little);
#endif
STR *
-walk(int useval, int level, register int node, int *numericptr, int minprec)
+walk(int useval, int level, int node, int *numericptr, int minprec)
{
int len;
STR *str;
@@ -1546,7 +1546,7 @@ sub Pick {\n\
}
static void
-tab(register STR *str, register int lvl)
+tab(STR *str, int lvl)
{
while (lvl > 1) {
str_cat(str,"\t");
@@ -1557,7 +1557,7 @@ tab(register STR *str, register int lvl)
}
static void
-fixtab(register STR *str, register int lvl)
+fixtab(STR *str, int lvl)
{
char *s;
@@ -1575,7 +1575,7 @@ fixtab(register STR *str, register int lvl)
}
static void
-addsemi(register STR *str)
+addsemi(STR *str)
{
char *s;
@@ -1587,7 +1587,7 @@ addsemi(register STR *str)
}
static void
-emit_split(register STR *str, int level)
+emit_split(STR *str, int level)
{
int i;
@@ -1620,7 +1620,7 @@ emit_split(register STR *str, int level)
}
int
-prewalk(int numit, int level, register int node, int *numericptr)
+prewalk(int numit, int level, int node, int *numericptr)
{
int len;
int type;
@@ -2037,7 +2037,7 @@ prewalk(int numit, int level, register int node, int *numericptr)
}
static void
-numericize(register int node)
+numericize(int node)
{
int len;
int type;