summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-09 13:13:03 +0000
committerbde <bde@FreeBSD.org>2004-02-09 13:13:03 +0000
commit219a6c0a9cdd941b6d0c92e4efd2fb51cd07363f (patch)
treef6ecad5198481499e9353f1bd8f8c784939bafac /usr.bin
parent49286bb39a91c129be3fd1e7bfe591744a021056 (diff)
downloadFreeBSD-src-219a6c0a9cdd941b6d0c92e4efd2fb51cd07363f.zip
FreeBSD-src-219a6c0a9cdd941b6d0c92e4efd2fb51cd07363f.tar.gz
Expanded the size of the keyword table from 100 to 1000 entries so that
the number of typedef-names is not so limited. Same as in rev.1.4. Added the "const" and "volatile" to the keyword table. Rev.1.4 added these but they were misclassified so they were not formatted as types. indent still doesn't really understand them. E.g., it mangles "char * const *foo" and "char *const *foo". This change mainly stops it mangling "char const foo" to "char<declaration-indent>const foo".
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/lexi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c
index beceabd..d2d2c1c 100644
--- a/usr.bin/indent/lexi.c
+++ b/usr.bin/indent/lexi.c
@@ -64,7 +64,7 @@ struct templ {
int rwcode;
};
-struct templ specials[100] =
+struct templ specials[1000] =
{
{"switch", 1},
{"case", 2},
@@ -86,6 +86,8 @@ struct templ specials[100] =
{"global", 4},
{"extern", 4},
{"void", 4},
+ {"const", 4},
+ {"volatile", 4},
{"goto", 0},
{"return", 0},
{"if", 5},
OpenPOWER on IntegriCloud