diff options
author | Lev Walkin <vlm@lionet.info> | 2005-03-03 21:29:27 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2005-03-03 21:29:27 +0000 |
commit | 3fe2e12bb57a7cb75317a414d3fd0c8d5cf3907e (patch) | |
tree | 8929f8a32c5926bf5e81d0a73191e190f78e23a0 /libasn1compiler | |
parent | 87da826673ca34dc65a130f63d5991c2b393de3d (diff) |
more complete list of C keywords
Diffstat (limited to 'libasn1compiler')
-rw-r--r-- | libasn1compiler/asn1c_misc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c index 51b9d94d..94e4a639 100644 --- a/libasn1compiler/asn1c_misc.c +++ b/libasn1compiler/asn1c_misc.c @@ -5,11 +5,18 @@ /* * Checks that the given string is not a reserved C/C++ keyword. + * ISO/IEC 9899:1999 (C99), A.1.2 */ static char *res_kwd[] = { - "char", "int", "long", - "float", "double", - "struct", "typedef", "class" }; + "const", "auto", "register", "volatile", "restrict", "extern", + "static", "inline", + "signed", "unsigned", + "void", "char", "short", "int", "long", "float", "double", + "enum", "union", "struct", "typedef", "class", + "switch", "case", "default", "break", "continue", + "if", "else", "do", "for", "while", "goto", + "sizeof", "return" +}; static int reserved_keyword(const char *str) { int i; |