summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-06-02 04:47:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-06-02 04:47:10 +0000
commit20ce7b12268a3d32b5b246928de5084322e709cf (patch)
tree395ce45dee07dabd92553cbcdad9b91e37e8ae49 /x2p
parent0221c164222f9d91820826506118f46ffa08dd46 (diff)
downloadperl-20ce7b12268a3d32b5b246928de5084322e709cf.tar.gz
remove _() non-ansism
p4raw-id: //depot/perl@3518
Diffstat (limited to 'x2p')
-rw-r--r--x2p/a2p.c2
-rw-r--r--x2p/a2p.h50
-rw-r--r--x2p/a2p.y2
-rw-r--r--x2p/hash.h18
-rw-r--r--x2p/str.h44
-rw-r--r--x2p/util.h28
-rw-r--r--x2p/walk.c14
7 files changed, 79 insertions, 79 deletions
diff --git a/x2p/a2p.c b/x2p/a2p.c
index 0baa5b7776..b512cf94ad 100644
--- a/x2p/a2p.c
+++ b/x2p/a2p.c
@@ -2074,7 +2074,7 @@ YYSTYPE yyvs[YYSTACKSIZE];
#define yystacksize YYSTACKSIZE
#line 401 "a2p.y"
-int yyparse _((void));
+int yyparse (void);
#include "a2py.c"
#line 2081 "y.tab.c"
diff --git a/x2p/a2p.h b/x2p/a2p.h
index 392e9e66a2..290b4b980f 100644
--- a/x2p/a2p.h
+++ b/x2p/a2p.h
@@ -76,10 +76,10 @@
#ifdef STANDARD_C
# include <stdlib.h>
#else
- Malloc_t malloc _((MEM_SIZE nbytes));
- Malloc_t calloc _((MEM_SIZE elements, MEM_SIZE size));
- Malloc_t realloc _((Malloc_t where, MEM_SIZE nbytes));
- Free_t free _((Malloc_t where));
+ Malloc_t malloc (MEM_SIZE nbytes);
+ Malloc_t calloc (MEM_SIZE elements, MEM_SIZE size);
+ Malloc_t realloc (Malloc_t where, MEM_SIZE nbytes);
+ Free_t free (Malloc_t where);
#endif
#if defined(I_STRING) || defined(__cplusplus)
@@ -379,27 +379,27 @@ EXT STR *Str;
#define GROWSTR(pp,lp,len) if (*(lp) < (len)) growstr(pp,lp,len)
/* Prototypes for things in a2p.c */
-int aryrefarg _(( int arg ));
-int bl _(( int arg, int maybe ));
-void dump _(( int branch ));
-int fixfargs _(( int name, int arg, int prevargs ));
-int fixrargs _(( char *name, int arg, int prevargs ));
-void fixup _(( STR *str ));
-int numary _(( int arg ));
-int oper0 _(( int type ));
-int oper1 _(( int type, int arg1 ));
-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 ));
-void putlines _(( STR *str ));
-void putone _(( void ));
-int rememberargs _(( int arg ));
-char * scannum _(( char *s ));
-char * scanpat _(( char *s ));
-int string _(( char *ptr, int len ));
-void yyerror _(( char *s ));
-int yylex _(( void ));
+int aryrefarg ( int arg );
+int bl ( int arg, int maybe );
+void dump ( int branch );
+int fixfargs ( int name, int arg, int prevargs );
+int fixrargs ( char *name, int arg, int prevargs );
+void fixup ( STR *str );
+int numary ( int arg );
+int oper0 ( int type );
+int oper1 ( int type, int arg1 );
+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 );
+void putlines ( STR *str );
+void putone ( void );
+int rememberargs ( int arg );
+char * scannum ( char *s );
+char * scanpat ( char *s );
+int string ( char *ptr, int len );
+void yyerror ( char *s );
+int yylex ( void );
EXT int line INIT(0);
diff --git a/x2p/a2p.y b/x2p/a2p.y
index 3bb4e0998a..da9b6288ef 100644
--- a/x2p/a2p.y
+++ b/x2p/a2p.y
@@ -399,6 +399,6 @@ compound
%%
-int yyparse _((void));
+int yyparse (void);
#include "a2py.c"
diff --git a/x2p/hash.h b/x2p/hash.h
index 9dc64a1dcd..377bfd2db0 100644
--- a/x2p/hash.h
+++ b/x2p/hash.h
@@ -41,12 +41,12 @@ struct htbl {
HENT *tbl_eiter; /* current entry of iterator */
};
-bool hdelete _((HASH *tb, char *key));
-STR * hfetch _(( HASH *tb, char *key ));
-int hiterinit _(( HASH *tb ));
-char * hiterkey _(( HENT *entry ));
-HENT * hiternext _(( HASH *tb ));
-STR * hiterval _(( HENT *entry ));
-HASH * hnew _(( void ));
-void hsplit _(( HASH *tb ));
-bool hstore _(( HASH *tb, char *key, STR *val ));
+bool hdelete (HASH *tb, char *key);
+STR * hfetch ( HASH *tb, char *key );
+int hiterinit ( HASH *tb );
+char * hiterkey ( HENT *entry );
+HENT * hiternext ( HASH *tb );
+STR * hiterval ( HENT *entry );
+HASH * hnew ( void );
+void hsplit ( HASH *tb );
+bool hstore ( HASH *tb, char *key, STR *val );
diff --git a/x2p/str.h b/x2p/str.h
index 3deaaec76f..a7eec88ff1 100644
--- a/x2p/str.h
+++ b/x2p/str.h
@@ -29,25 +29,25 @@ struct string {
EXT STR **tmps_list;
EXT long tmps_max INIT(-1);
-double str_2num _(( STR *str ));
-char * str_2ptr _(( STR *str ));
-char * str_append_till _(( STR *str, char *from, int delim, char *keeplist ));
-void str_cat _(( STR *str, char *ptr ));
-void str_chop _(( STR *str, char *ptr ));
-void str_dec _(( STR *str ));
-void str_free _(( STR *str ));
-char * str_gets _(( STR *str, FILE *fp ));
-void str_grow _(( STR *str, int len ));
-void str_inc _(( STR *str ));
-int str_len _(( STR *str ));
-STR * str_make _(( char *s ));
-STR * str_mortal _(( STR *oldstr ));
-void str_ncat _(( STR *str, char *ptr, int len ));
-STR * str_new _(( int len ));
-STR * str_nmake _(( double n ));
-void str_nset _(( STR *str, char *ptr, int len ));
-void str_numset _(( STR *str, double num ));
-void str_replace _(( STR *str, STR *nstr ));
-void str_scat _(( STR *dstr, STR *sstr ));
-void str_set _(( STR *str, char *ptr ));
-void str_sset _(( STR *dstr, STR *sstr ));
+double str_2num ( STR *str );
+char * str_2ptr ( STR *str );
+char * str_append_till ( STR *str, char *from, int delim, char *keeplist );
+void str_cat ( STR *str, char *ptr );
+void str_chop ( STR *str, char *ptr );
+void str_dec ( STR *str );
+void str_free ( STR *str );
+char * str_gets ( STR *str, FILE *fp );
+void str_grow ( STR *str, int len );
+void str_inc ( STR *str );
+int str_len ( STR *str );
+STR * str_make ( char *s );
+STR * str_mortal ( STR *oldstr );
+void str_ncat ( STR *str, char *ptr, int len );
+STR * str_new ( int len );
+STR * str_nmake ( double n );
+void str_nset ( STR *str, char *ptr, int len );
+void str_numset ( STR *str, double num );
+void str_replace ( STR *str, STR *nstr );
+void str_scat ( STR *dstr, STR *sstr );
+void str_set ( STR *str, char *ptr );
+void str_sset ( STR *dstr, STR *sstr );
diff --git a/x2p/util.h b/x2p/util.h
index aa31bea217..34138c7da1 100644
--- a/x2p/util.h
+++ b/x2p/util.h
@@ -22,18 +22,18 @@
char *getwd();
int makedir();
-char * cpy2 _(( char *to, char *from, int delim ));
-char * cpytill _(( char *to, char *from, int delim ));
-void growstr _(( char **strptr, int *curlen, int newlen ));
-char * instr _(( char *big, char *little ));
-char * safecpy _(( char *to, char *from, int len ));
-char * savestr _(( char *str ));
-void croak _(( char *pat, ... ));
-void fatal _(( char *pat, ... ));
-void warn _(( char *pat, ... ));
-int prewalk _(( int numit, int level, int node, int *numericptr ));
+char * cpy2 ( char *to, char *from, int delim );
+char * cpytill ( char *to, char *from, int delim );
+void growstr ( char **strptr, int *curlen, int newlen );
+char * instr ( char *big, char *little );
+char * safecpy ( char *to, char *from, int len );
+char * savestr ( char *str );
+void croak ( char *pat, ... );
+void fatal ( char *pat, ... );
+void warn ( char *pat, ... );
+int prewalk ( int numit, int level, int node, int *numericptr );
-Malloc_t safemalloc _((MEM_SIZE nbytes));
-Malloc_t safecalloc _((MEM_SIZE elements, MEM_SIZE size));
-Malloc_t saferealloc _((Malloc_t where, MEM_SIZE nbytes));
-Free_t safefree _((Malloc_t where));
+Malloc_t safemalloc (MEM_SIZE nbytes);
+Malloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size);
+Malloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes);
+Free_t safefree (Malloc_t where);
diff --git a/x2p/walk.c b/x2p/walk.c
index ab76fbef74..34361abc0c 100644
--- a/x2p/walk.c
+++ b/x2p/walk.c
@@ -26,14 +26,14 @@ char *limit;
STR *subs;
STR *curargs = Nullstr;
-static void addsemi _(( STR *str ));
-static void emit_split _(( STR *str, int level ));
-static void fixtab _(( STR *str, int lvl ));
-static void numericize _(( int node ));
-static void tab _(( STR *str, int lvl ));
+static void addsemi ( STR *str );
+static void emit_split ( STR *str, int level );
+static void fixtab ( STR *str, int lvl );
+static void numericize ( int node );
+static void tab ( STR *str, int lvl );
-int prewalk _(( int numit, int level, int node, int *numericptr ));
-STR * walk _(( int useval, int level, int node, int *numericptr, int minprec ));
+int prewalk ( int numit, int level, int node, int *numericptr );
+STR * walk ( int useval, int level, int node, int *numericptr, int minprec );
STR *