Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit make array of functions and help array const
details: https://anonhg.NetBSD.org/src/rev/642713e4d14b
branches: trunk
changeset: 501951:642713e4d14b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Jan 09 19:22:31 2001 +0000
description:
make array of functions and help array const
diffstat:
lib/libedit/makelist | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (64 lines):
diff -r a5e87ae8ac74 -r 642713e4d14b lib/libedit/makelist
--- a/lib/libedit/makelist Tue Jan 09 19:01:57 2001 +0000
+++ b/lib/libedit/makelist Tue Jan 09 19:22:31 2001 +0000
@@ -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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
}
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");
}'
;;
Home |
Main Index |
Thread Index |
Old Index