diff options
author | imp <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
commit | 3fc8df52e3856eeac730574d5ae122806dd1e1ef (patch) | |
tree | 331e1d7f986e20bcd52361067fc4b66cab14b048 /bin/ed/re.c | |
parent | 5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf (diff) | |
download | FreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.zip FreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.tar.gz |
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o gc some #ifdef sun ... #endif code
Approved by: arch@, new style(9)
Diffstat (limited to 'bin/ed/re.c')
-rw-r--r-- | bin/ed/re.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c index 52dacdc..5cd43fa 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -41,7 +41,7 @@ const char *errmsg = ""; /* get_compiled_pattern: return pointer to compiled pattern from command buffer */ pattern_t * -get_compiled_pattern() +get_compiled_pattern(void) { static pattern_t *exp = NULL; static char error[1024]; @@ -81,8 +81,7 @@ get_compiled_pattern() /* extract_pattern: copy a pattern string from the command buffer; return pointer to the copy */ char * -extract_pattern(delimiter) - int delimiter; +extract_pattern(int delimiter) { static char *lhbuf = NULL; /* buffer */ static int lhbufsz = 0; /* buffer size */ @@ -118,8 +117,7 @@ extract_pattern(delimiter) /* parse_char_class: expand a POSIX character class */ char * -parse_char_class(s) - char *s; +parse_char_class(char *s) { int c, d; |