diff options
author | Warner Losh <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
commit | 7669d0fc4f7d3869e27f94843ca120399a4825e9 (patch) | |
tree | 331e1d7f986e20bcd52361067fc4b66cab14b048 /bin/ed/undo.c | |
parent | f9bcb0beb529e74510077ff052839d7ad2817950 (diff) | |
download | src-7669d0fc4f7d3869e27f94843ca120399a4825e9.tar.gz src-7669d0fc4f7d3869e27f94843ca120399a4825e9.zip |
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)
Notes
Notes:
svn path=/head/; revision=90109
Diffstat (limited to 'bin/ed/undo.c')
-rw-r--r-- | bin/ed/undo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/ed/undo.c b/bin/ed/undo.c index 8feb38187e0f..73d488c9d5f0 100644 --- a/bin/ed/undo.c +++ b/bin/ed/undo.c @@ -40,10 +40,7 @@ long u_p = 0; /* undo stack pointer */ /* push_undo_stack: return pointer to initialized undo node */ undo_t * -push_undo_stack(type, from, to) - int type; - long from; - long to; +push_undo_stack(int type, long from, long to) { undo_t *t; @@ -87,7 +84,7 @@ long u_addr_last = -1; /* if >= 0, undo enabled */ /* pop_undo_stack: undo last change to the editor buffer */ int -pop_undo_stack() +pop_undo_stack(void) { long n; long o_current_addr = current_addr; @@ -136,7 +133,7 @@ pop_undo_stack() /* clear_undo_stack: clear the undo stack */ void -clear_undo_stack() +clear_undo_stack(void) { line_t *lp, *ep, *tl; |