summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-11-04 12:15:20 +0000
committerdes <des@FreeBSD.org>2003-11-04 12:15:20 +0000
commitb91f0f90098b58510256c011dd9c94bdafdf1c93 (patch)
treec02afdeabaa33ba118bd0228ecc163810ec41319 /usr.bin/sed/process.c
parent12bd424bdff20ebb0fe66992ca9bf4afccef3127 (diff)
downloadFreeBSD-src-b91f0f90098b58510256c011dd9c94bdafdf1c93.zip
FreeBSD-src-b91f0f90098b58510256c011dd9c94bdafdf1c93.tar.gz
ANSIfy
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r--usr.bin/sed/process.c33
1 files changed, 10 insertions, 23 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 93019b4..bbad994 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -89,7 +89,7 @@ regmatch_t *match;
#define OUT(s) { fwrite(s, sizeof(u_char), psl, stdout); putchar('\n'); }
void
-process()
+process(void)
{
struct s_command *cp;
SPACE tspace;
@@ -276,8 +276,7 @@ new: if (!nflag && !pd)
* flag to process ranges. Interprets the non-select (``!'') flag.
*/
static __inline int
-applies(cp)
- struct s_command *cp;
+applies(struct s_command *cp)
{
int r;
@@ -318,8 +317,7 @@ applies(cp)
* and then swap them.
*/
static int
-substitute(cp)
- struct s_command *cp;
+substitute(struct s_command *cp)
{
SPACE tspace;
regex_t *re;
@@ -430,7 +428,7 @@ substitute(cp)
* therefore it also resets the substitution done (sdone) flag.
*/
static void
-flush_appends()
+flush_appends(void)
{
FILE *f;
int count, i;
@@ -464,8 +462,7 @@ flush_appends()
}
static void
-lputs(s)
- char *s;
+lputs(char *s)
{
int count;
const char *escapes;
@@ -514,11 +511,8 @@ lputs(s)
}
static __inline int
-regexec_e(preg, string, eflags, nomatch, slen)
- regex_t *preg;
- const char *string;
- int eflags, nomatch;
- size_t slen;
+regexec_e(regex_t *preg, const char *string, int eflags, int nomatch,
+ size_t slen)
{
int eval;
@@ -549,9 +543,7 @@ regexec_e(preg, string, eflags, nomatch, slen)
* Based on a routine by Henry Spencer
*/
static void
-regsub(sp, string, src)
- SPACE *sp;
- char *string, *src;
+regsub(SPACE *sp, char *string, char *src)
{
int len, no;
char c, *dst;
@@ -598,11 +590,7 @@ regsub(sp, string, src)
* space as necessary.
*/
void
-cspace(sp, p, len, spflag)
- SPACE *sp;
- const char *p;
- size_t len;
- enum e_spflag spflag;
+cspace(SPACE *sp, const char *p, size_t len, enum e_spflag spflag)
{
size_t tlen;
@@ -627,8 +615,7 @@ cspace(sp, p, len, spflag)
* Close all cached opened files and report any errors
*/
void
-cfclose(cp, end)
- struct s_command *cp, *end;
+cfclose(struct s_command *cp, struct s_command *end)
{
for (; cp != end; cp = cp->next)
OpenPOWER on IntegriCloud