Commit 30ae27b6 authored by Lev Walkin's avatar Lev Walkin

C++ keywords added to a no-no list

parent 0e90aa04
...@@ -9,14 +9,20 @@ ...@@ -9,14 +9,20 @@
* ISO/IEC 9899:1999 (C99), A.1.2 * ISO/IEC 9899:1999 (C99), A.1.2
*/ */
static char *res_kwd[] = { static char *res_kwd[] = {
"const", "auto", "register", "volatile", "restrict", "extern", "auto", "break", "case", "char", "const", "continue", "default",
"static", "inline", "do", "double", "else", "enum", "extern", "float", "for", "goto",
"signed", "unsigned", "if", "inline", "int", "long", "register", "restrict", "return",
"void", "char", "short", "int", "long", "float", "double", "short", "signed", "sizeof", "static", "struct", "switch", "typedef",
"enum", "union", "struct", "typedef", "class", "union", "unsigned", "void", "volatile", "while",
"switch", "case", "default", "break", "continue", "_Bool", "_Complex", "_Imaginary",
"if", "else", "do", "for", "while", "goto", /* C++ */
"sizeof", "return" "explicit", "bool", "mutable",
"template", "typeid", "typename", "and", "and_eq",
"or", "or_eq", "xor", "xor_eq", "not", "not_eq",
"bitor", "compl", "bitand",
"const_cast", "dynamic_cast", "reinterpret_cast",
"static_cast", "true", "false", "namespace", "using",
"throw", "try", "catch"
}; };
static int static int
reserved_keyword(const char *str) { reserved_keyword(const char *str) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment