diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-05-03 11:36:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-05-03 11:36:18 +0000 |
commit | 2a199f6e62406a31625e8dc85346926d169ae681 (patch) | |
tree | b56c5018307ba2c957b7c5d57be1424dfe086b7a /lib/libedit/makelist | |
parent | 8a9c2f057528fd59d2e4af4583d08c98221f0197 (diff) |
Combine help.h and help.c into a simplified help.h
and include it only in the one file needing it, map.c.
Also delete makelist -bc.
OK martijn@, also proofread by Christian Heckendorf <mbie at ulmus dot me>
Diffstat (limited to 'lib/libedit/makelist')
-rw-r--r-- | lib/libedit/makelist | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist index 18794df6460..6fcaf26e6cb 100644 --- a/lib/libedit/makelist +++ b/lib/libedit/makelist @@ -36,7 +36,7 @@ # makelist.sh: Automatically generate header files... AWK=awk -USAGE="Usage: $0 -h|-fc|-fh|-bc|-bh <filenames>" +USAGE="Usage: $0 -h|-fc|-fh|-bh <filenames>" if [ "x$1" = "x" ] then @@ -76,14 +76,12 @@ case $FLAG in }' ;; -# generate help.c from various .c files +# generate help.h from various .c files # --bc) +-bh) cat $FILES | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); - printf("#include \"config.h\"\n#include \"el.h\"\n"); - printf("#include \"help.h\"\n"); printf("static const struct el_bindings_t el_func_help[] = {\n"); low = "abcdefghijklmnopqrstuvwxyz_"; high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"; @@ -119,23 +117,9 @@ case $FLAG in } END { printf("};\n"); - printf("\nprotected const el_bindings_t* help__get()"); - printf("{ return el_func_help; }\n"); }' ;; -# generate help.h from various .c files -# --bh) - $AWK ' - BEGIN { - printf("/* Automatically generated file, do not edit */\n"); - printf("#ifndef _h_help_c\n#define _h_help_c\n"); - printf("protected const el_bindings_t *help__get(void);\n"); - printf("#endif /* _h_help_c */\n"); - }' /dev/null - ;; - # generate fcns.h from various .h files # -fh) |