diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-10-31 23:54:01 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-10-31 23:54:01 +0000 |
commit | f0f333f45536802923a359d930d1dcfd5b4589ea (patch) | |
tree | 6f746f4b9cda56e2432754d6816467676c601820 /x2p/walk.c | |
parent | 8ac853655d9b744749adcb9687c13d99cdd6e9fb (diff) | |
download | perl-f0f333f45536802923a359d930d1dcfd5b4589ea.tar.gz |
Further ANSI changes now builds and passes (most) tests
with gcc -x c++.
p4raw-id: //depot/ansiperl@196
Diffstat (limited to 'x2p/walk.c')
-rw-r--r-- | x2p/walk.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/x2p/walk.c b/x2p/walk.c index cb40073b22..0b4065586b 100644 --- a/x2p/walk.c +++ b/x2p/walk.c @@ -37,12 +37,12 @@ STR * walk _(( int useval, int level, int node, int *numericptr, int minprec )); STR * -walk(useval,level,node,numericptr,minprec) -int useval; -int level; -register int node; -int *numericptr; -int minprec; /* minimum precedence without parens */ +walk(int useval, int level, register int node, int *numericptr, int minprec) + + + + + /* minimum precedence without parens */ { register int len; register STR *str; @@ -1556,9 +1556,7 @@ sub Pick {\n\ } static void -tab(str,lvl) -register STR *str; -register int lvl; +tab(register STR *str, register int lvl) { while (lvl > 1) { str_cat(str,"\t"); @@ -1569,9 +1567,7 @@ register int lvl; } static void -fixtab(str,lvl) -register STR *str; -register int lvl; +fixtab(register STR *str, register int lvl) { register char *s; @@ -1589,8 +1585,7 @@ register int lvl; } static void -addsemi(str) -register STR *str; +addsemi(register STR *str) { register char *s; @@ -1602,9 +1597,7 @@ register STR *str; } static void -emit_split(str,level) -register STR *str; -int level; +emit_split(register STR *str, int level) { register int i; @@ -1637,11 +1630,7 @@ int level; } int -prewalk(numit,level,node,numericptr) -int numit; -int level; -register int node; -int *numericptr; +prewalk(int numit, int level, register int node, int *numericptr) { register int len; register int type; @@ -2058,8 +2047,7 @@ int *numericptr; } static void -numericize(node) -register int node; +numericize(register int node) { register int len; register int type; |