diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-29 19:20:12 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-29 19:20:12 +0000 |
commit | 87f5a8f04fd20c60e094db712305f34e98d5e910 (patch) | |
tree | 1c34ec0e365e1329b42826cdc0b676a4c07b9707 /gcc/cpplib.c | |
parent | 5289891523e9eb51b90642e0f6f67249d7ec5489 (diff) | |
download | gcc-87f5a8f04fd20c60e094db712305f34e98d5e910.tar.gz |
* cpplib.c (T_BAD_DIRECTIVE): Remove.
(_cpp_init_stacks): Loop from 0 to N_DIRECTIVES - 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39334 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 9577d7235ac..5c422f563c8 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -161,7 +161,6 @@ DIRECTIVE_TABLE #define D(n, tag, o, f) tag, enum { - T_BAD_DIRECTIVE, DIRECTIVE_TABLE N_DIRECTIVES }; @@ -1870,17 +1869,17 @@ void _cpp_init_stacks (pfile) cpp_reader *pfile; { - int i; + unsigned int i; cpp_hashnode *node; pfile->buffer_ob = xnew (struct obstack); obstack_init (pfile->buffer_ob); /* Register the directives. */ - for (i = 1; i < N_DIRECTIVES; i++) + for (i = 0; i < N_DIRECTIVES; i++) { - node = cpp_lookup (pfile, dtable[i - 1].name, dtable[i - 1].length); - node->directive_index = i; + node = cpp_lookup (pfile, dtable[i].name, dtable[i].length); + node->directive_index = i + 1; } } |