diff options
| author | christos <christos@NetBSD.org> | 2016-02-16 15:53:48 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-02-16 15:53:48 +0000 |
| commit | af0ffa531c48e0833e330607caa18360fc09fc9a (patch) | |
| tree | 2be65e167191442b9c5a367fa99555f4d9b4fc09 /lib/libedit/makelist | |
| parent | 7a82ed4a7d78cfb213d3da53cafd833ea5a38040 (diff) | |
From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times. That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...
Diffstat (limited to 'lib/libedit/makelist')
| -rw-r--r-- | lib/libedit/makelist | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist index 56de2167d03..f299f0a9ddb 100644 --- a/lib/libedit/makelist +++ b/lib/libedit/makelist @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: makelist,v 1.21 2016/02/16 14:08:25 christos Exp $ +# $NetBSD: makelist,v 1.22 2016/02/16 15:53:48 christos Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. @@ -93,10 +93,7 @@ _EOF cat $FILES | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); - printf("#include \"config.h\"\n"); - printf("#include \"histedit.h\"\n"); - printf("#include \"chartype.h\"\n"); - printf("#include \"el.h\"\n"); + printf("#include \"config.h\"\n#include \"el.h\"\n"); printf("private const struct el_bindings_t el_func_help[] = {\n"); low = "abcdefghijklmnopqrstuvwxyz_"; high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"; @@ -177,10 +174,7 @@ _EOF cat $FILES | $AWK '/el_action_t/ { print $3 }' | sort | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); - printf("#include \"config.h\"\n"); - printf("#include \"histedit.h\"\n"); - printf("#include \"chartype.h\"\n"); - printf("#include \"el.h\"\n"); + printf("#include \"config.h\"\n#include \"el.h\"\n"); printf("private const el_func_t el_func[] = {"); maxlen = 80; needn = 1; |
