From 3fe2e12bb57a7cb75317a414d3fd0c8d5cf3907e Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Thu, 3 Mar 2005 21:29:27 +0000 Subject: more complete list of C keywords --- libasn1compiler/asn1c_misc.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libasn1compiler') 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; -- cgit v1.2.3