Selaa lähdekoodia

More keyword remapping

Hugh Sanderson 15 vuotta sitten
vanhempi
commit
7c4670297f
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      gencpp.ml

+ 5 - 3
gencpp.ml

@@ -229,14 +229,16 @@ let hash_iterate hash visitor =
 let keyword_remap name =
 	match name with
 	| "int"
-	| "asm" | "auto" | "char" | "const" | "delete" | "double" | "enum"
+	| "auto" | "char" | "const" | "delete" | "double" | "enum"
 	| "extern" | "float" | "friend" | "goto" | "long" | "operator" | "protected"
 	| "register" | "short" | "signed" | "sizeof" | "template" | "typedef"
 	| "union" | "unsigned" | "void" | "volatile" | "or" | "and" | "xor" | "or_eq"
 	| "and_eq" | "xor_eq" | "typeof" | "stdin" | "stdout" | "stderr"
-	| "BIG_ENDIAN" | "LITTLE_ENDIAN"
-	| "assert" | "NULL"
+	| "BIG_ENDIAN" | "LITTLE_ENDIAN" | "assert" | "NULL" | "wchar_t"
+	| "bool" | "const_cast" | "dynamic_cast" | "explicit" | "export" | "mutable" | "namespace"
+ 	| "reinterpret_cast" | "static_cast" | "typeid" | "typename" | "virtual"
 	| "struct" -> "_" ^ name
+	| "asm" -> "_asm_"
 	| x -> x
 
 (*