diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2001-01-09 19:22:31 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2001-01-09 19:22:31 +0000 |
| commit | 7be4ef2ff0b9b58b2ff0597a7e3e8a369e0f07e8 (patch) | |
| tree | 860f752a955b72b624c533e0786b3b1d8068d65b /lib/libedit/makelist | |
| parent | f6177aaaba06364cab19027946a2a10de23b1ddc (diff) | |
make array of functions and help array const
Diffstat (limited to 'lib/libedit/makelist')
| -rw-r--r-- | lib/libedit/makelist | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist index c31b8aa4500..8e9835309d6 100644 --- a/lib/libedit/makelist +++ b/lib/libedit/makelist @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: makelist,v 1.6 2000/09/04 23:45:18 lukem Exp $ +# $NetBSD: makelist,v 1.7 2001/01/09 19:22:31 jdolecek Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. @@ -88,7 +88,7 @@ case $FLAG in BEGIN { printf("/* Automatically generated file, do not edit */\n"); printf("#include \"sys.h\"\n#include \"el.h\"\n"); - printf("private struct el_bindings_t el_func_help[] = {\n"); + printf("private const struct el_bindings_t el_func_help[] = {\n"); low = "abcdefghijklmnopqrstuvwxyz_"; high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"; for (i = 1; i <= length(low); i++) @@ -124,7 +124,7 @@ case $FLAG in END { printf(" { NULL, 0, NULL }\n"); printf("};\n"); - printf("\nprotected el_bindings_t* help__get()"); + printf("\nprotected const el_bindings_t* help__get()"); printf("{ return el_func_help; }\n"); }' ;; @@ -136,7 +136,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(void);\n"); + printf("protected const el_bindings_t *help__get(void);\n"); printf("#endif /* _h_help_c */\n"); }' /dev/null ;; @@ -158,7 +158,7 @@ case $FLAG in printf("#define\t%-30.30s\t%3d\n", "EL_NUM_FCNS", count); printf("typedef el_action_t (*el_func_t)(EditLine *, int);"); - printf("\nprotected el_func_t* func__get(void);\n"); + printf("\nprotected const el_func_t* func__get(void);\n"); printf("#endif /* _h_fcns_c */\n"); }' ;; @@ -170,7 +170,7 @@ case $FLAG in BEGIN { printf("/* Automatically generated file, do not edit */\n"); printf("#include \"sys.h\"\n#include \"el.h\"\n"); - printf("private el_func_t el_func[] = {"); + printf("private const el_func_t el_func[] = {"); maxlen = 80; needn = 1; len = 0; @@ -190,7 +190,7 @@ case $FLAG in } END { printf("\n};\n"); - printf("\nprotected el_func_t* func__get() { return el_func; }\n"); + printf("\nprotected const el_func_t* func__get() { return el_func; }\n"); }' ;; |
