diff options
author | imp <imp@FreeBSD.org> | 2002-03-22 01:42:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-22 01:42:45 +0000 |
commit | 0b20191705a346bc322deac818912bd4eab96a1b (patch) | |
tree | f17746dd42b66c7b55fe407e00b5fc176ebe67a5 /usr.bin/sed | |
parent | 1698cb216e2d4ca62662103eba0191f134923698 (diff) | |
download | FreeBSD-src-0b20191705a346bc322deac818912bd4eab96a1b.zip FreeBSD-src-0b20191705a346bc322deac818912bd4eab96a1b.tar.gz |
remove __P
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/compile.c | 28 | ||||
-rw-r--r-- | usr.bin/sed/extern.h | 14 | ||||
-rw-r--r-- | usr.bin/sed/main.c | 6 | ||||
-rw-r--r-- | usr.bin/sed/process.c | 12 |
4 files changed, 30 insertions, 30 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index f88e2b4..d26df56 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -66,22 +66,22 @@ static struct labhash { int lh_ref; } *labels[LHSZ]; -static char *compile_addr __P((char *, struct s_addr *)); -static char *compile_ccl __P((char **, char *)); -static char *compile_delimited __P((char *, char *)); -static char *compile_flags __P((char *, struct s_subst *)); -static char *compile_re __P((char *, regex_t **)); -static char *compile_subst __P((char *, struct s_subst *)); -static char *compile_text __P((void)); -static char *compile_tr __P((char *, char **)); +static char *compile_addr(char *, struct s_addr *); +static char *compile_ccl(char **, char *); +static char *compile_delimited(char *, char *); +static char *compile_flags(char *, struct s_subst *); +static char *compile_re(char *, regex_t **); +static char *compile_subst(char *, struct s_subst *); +static char *compile_text(void); +static char *compile_tr(char *, char **); static struct s_command - **compile_stream __P((struct s_command **)); -static char *duptoeol __P((char *, const char *)); -static void enterlabel __P((struct s_command *)); + **compile_stream(struct s_command **); +static char *duptoeol(char *, const char *); +static void enterlabel(struct s_command *); static struct s_command - *findlabel __P((char *)); -static void fixuplabel __P((struct s_command *, struct s_command *)); -static void uselabel __P((void)); + *findlabel(char *); +static void fixuplabel(struct s_command *, struct s_command *); +static void uselabel(void); /* * Command specification. This is used to drive the command parser. diff --git a/usr.bin/sed/extern.h b/usr.bin/sed/extern.h index 0d13631..a0ad39b 100644 --- a/usr.bin/sed/extern.h +++ b/usr.bin/sed/extern.h @@ -49,10 +49,10 @@ extern int aflag, eflag, nflag; extern const char *fname; extern int rflags; /* regex flags to use */ -void cfclose __P((struct s_command *, struct s_command *)); -void compile __P((void)); -void cspace __P((SPACE *, char *, size_t, enum e_spflag)); -char *cu_fgets __P((char *, int, int *)); -int mf_fgets __P((SPACE *, enum e_spflag)); -void process __P((void)); -char *strregerror __P((int, regex_t *)); +void cfclose(struct s_command *, struct s_command *); +void compile(void); +void cspace(SPACE *, char *, size_t, enum e_spflag); +char *cu_fgets(char *, int, int *); +int mf_fgets(SPACE *, enum e_spflag); +void process(void); +char *strregerror(int, regex_t *); diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 5ba910c..6e5b4b7 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -104,9 +104,9 @@ const char *fname; /* File name. */ u_long linenum; int lastline; /* TRUE on the last line of the last file */ -static void add_compunit __P((enum e_cut, char *)); -static void add_file __P((char *)); -static void usage __P((void)); +static void add_compunit(enum e_cut, char *); +static void add_file(char *); +static void usage(void); int main(argc, argv) diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index dd8646f..bffa108 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -68,12 +68,12 @@ static SPACE HS, PS, SS; #define hs HS.space #define hsl HS.len -static inline int applies __P((struct s_command *)); -static void flush_appends __P((void)); -static void lputs __P((char *)); -static inline int regexec_e __P((regex_t *, const char *, int, int, size_t)); -static void regsub __P((SPACE *, char *, char *)); -static int substitute __P((struct s_command *)); +static inline int applies(struct s_command *); +static void flush_appends(void); +static void lputs(char *); +static inline int regexec_e(regex_t *, const char *, int, int, size_t); +static void regsub(SPACE *, char *, char *); +static int substitute(struct s_command *); struct s_appends *appends; /* Array of pointers to strings to append. */ static int appendx; /* Index into appends array. */ |