diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-18 20:55:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-18 20:55:53 +0000 |
commit | 62c19679be069ef2770e79fb05fdbc3a9749c612 (patch) | |
tree | bbdc0d9152836bab35763618d41fe24d089c34d0 /bin/ksh/emacs-gen.sh | |
parent | 220f5907de5bdc773b687af762aa5d835e26025c (diff) |
Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.
First step in making the ksh code easier to read. From Matthias Kilian
Diffstat (limited to 'bin/ksh/emacs-gen.sh')
-rw-r--r-- | bin/ksh/emacs-gen.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/emacs-gen.sh b/bin/ksh/emacs-gen.sh index 97449de8fa4..34429d01b36 100644 --- a/bin/ksh/emacs-gen.sh +++ b/bin/ksh/emacs-gen.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: emacs-gen.sh,v 1.1 1996/08/14 06:19:10 downsj Exp $ +# $OpenBSD: emacs-gen.sh,v 1.2 2004/12/18 20:55:52 millert Exp $ case $# in 1) file=$1;; @@ -36,7 +36,7 @@ sed -e '1,/@START-FUNC-TAB@/d' -e '/@END-FUNC-TAB@/,$d' < $file | fname = substr(fname, 1, length(fname) - 1); if (fname != "0") { printf "#define XFUNC_%s %d\n", substr(fname, 3, length(fname) - 2), nfunc; - printf "static int %s ARGS((int c));\n", fname; + printf "static int %s (int c);\n", fname; nfunc++; } }' || exit 1 |