aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2013-03-19 17:15:28 -0700
committerLev Walkin <vlm@lionet.info>2013-03-19 17:15:28 -0700
commit30ae27b6b16f67879a958a2460b14f489e06c86d (patch)
tree7fb750166d6aa768e3f2c418b240581fb254e2c7 /libasn1compiler
parent0e90aa040c0708ea50bdd9ae5d2f5c98088007e8 (diff)
C++ keywords added to a no-no list
Diffstat (limited to 'libasn1compiler')
-rw-r--r--libasn1compiler/asn1c_misc.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c
index f98ccb04..dcda8a91 100644
--- a/libasn1compiler/asn1c_misc.c
+++ b/libasn1compiler/asn1c_misc.c
@@ -9,14 +9,20 @@
* ISO/IEC 9899:1999 (C99), A.1.2
*/
static char *res_kwd[] = {
- "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"
+ "auto", "break", "case", "char", "const", "continue", "default",
+ "do", "double", "else", "enum", "extern", "float", "for", "goto",
+ "if", "inline", "int", "long", "register", "restrict", "return",
+ "short", "signed", "sizeof", "static", "struct", "switch", "typedef",
+ "union", "unsigned", "void", "volatile", "while",
+ "_Bool", "_Complex", "_Imaginary",
+ /* C++ */
+ "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
reserved_keyword(const char *str) {