summaryrefslogtreecommitdiff
path: root/lib/libedit/makelist
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2001-01-09 19:22:31 +0000
committerjdolecek <jdolecek@NetBSD.org>2001-01-09 19:22:31 +0000
commit7be4ef2ff0b9b58b2ff0597a7e3e8a369e0f07e8 (patch)
tree860f752a955b72b624c533e0786b3b1d8068d65b /lib/libedit/makelist
parentf6177aaaba06364cab19027946a2a10de23b1ddc (diff)
make array of functions and help array const
Diffstat (limited to 'lib/libedit/makelist')
-rw-r--r--lib/libedit/makelist14
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");
}'
;;
2002-09-27Allow passing of the ktrace file as the last argument without a -f.atatat 2002-06-20It's easy for ktrace can generate trace files that contain data fromatatat multiple processes, so let's add a "-p pid" option to kdump so that it can pull out the data for one process easily. 2001-12-01Whitespace cleanup.wiz 2001-02-04use 'trstr' for parameter to -t; both 'cenis' (SYNOPSIS) and 'cnis' ↵jdolecek (DESCRIPTION) were already out of date and we really don't want keep the info on two places 2000-04-10clarify -e usagejdolecek 1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled so we shouldn't override it with versions in the manpages. Many more to come.