summaryrefslogtreecommitdiff
path: root/lib/libedit/makelist
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /lib/libedit/makelist
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'lib/libedit/makelist')
-rw-r--r--lib/libedit/makelist10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist
index 2204cfc3583..51e7b2454c5 100644
--- a/lib/libedit/makelist
+++ b/lib/libedit/makelist
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: makelist,v 1.3 1997/03/14 05:12:53 millert Exp $
+# $OpenBSD: makelist,v 1.4 2002/02/16 21:27:26 millert Exp $
# $NetBSD: makelist,v 1.3 1997/01/11 06:48:00 lukem Exp $
#
# Copyright (c) 1992, 1993
@@ -67,7 +67,7 @@ case $FLAG in
pr = substr($2, 1, 2);
if (pr == "vi" || pr == "em" || pr == "ed") {
name = substr($2, 1, length($2) - 3);
- printf("protected el_action_t\t%-25.25s __P((EditLine *, int));\n", name);
+ printf("protected el_action_t\t%-25.25s(EditLine *, int);\n", name);
}
}
END {
@@ -122,7 +122,7 @@ case $FLAG in
BEGIN {
printf("/* Automatically generated file, do not edit */\n");
printf("#ifndef _h_help_c\n#define _h_help_c\n");
- printf("protected el_bindings_t *help__get\t__P((void));\n");
+ printf("protected el_bindings_t *help__get\t(void);\n");
printf("#endif /* _h_help_c */\n");
}' /dev/null;;
-fh)
@@ -139,8 +139,8 @@ case $FLAG in
END {
printf("#define\t%-30.30s\t%3d\n", "EL_NUM_FCNS", count);
- printf("typedef el_action_t (*el_func_t) __P((EditLine *, int));");
- printf("\nprotected el_func_t* func__get __P((void));\n");
+ printf("typedef el_action_t (*el_func_t)(EditLine *, int);");
+ printf("\nprotected el_func_t* func__get(void);\n");
printf("#endif /* _h_fcns_c */\n");
}';;
-fc)