This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: C++ patch: Add support for calling Java interfaces
Jason Merrill wrote:
> BTW, 'typenameopt' is not a C++ keyword. And there seem to be several
> missing from the list in gjavah; see reswords in cp/lex.c for a complete
> list.
Here's a patch. OK, Tom?
regards
[ bryce ]
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
* gjavah.c (cxx_keywords): Update from the definitive list in
cp/lex.h.
Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.68.4.1
diff -u -r1.68.4.1 gjavah.c
--- gjavah.c 2001/03/23 00:46:06 1.68.4.1
+++ gjavah.c 2001/03/23 04:33:24
@@ -392,37 +392,110 @@
static const char *cxx_keywords[] =
{
+ "_Complex",
+ "__alignof",
+ "__alignof__",
+ "__asm",
+ "__asm__",
+ "__attribute",
+ "__attribute__",
+ "__builtin_va_arg",
+ "__complex",
+ "__complex__",
+ "__const",
+ "__const__",
+ "__extension__",
+ "__imag",
+ "__imag__",
+ "__inline",
+ "__inline__",
+ "__label__",
+ "__null",
+ "__real",
+ "__real__",
+ "__restrict",
+ "__restrict__",
+ "__signed",
+ "__signed__",
+ "__typeof",
+ "__typeof__",
+ "__volatile",
+ "__volatile__",
"asm",
+ "and",
+ "and_eq",
"auto",
+ "bitand",
+ "bitor",
"bool",
+ "break",
+ "case",
+ "catch",
+ "char",
+ "class",
+ "compl",
+ "const",
"const_cast",
+ "continue",
+ "default",
"delete",
+ "do",
+ "double",
"dynamic_cast",
+ "else",
"enum",
"explicit",
+ "export",
"extern",
+ "false",
+ "float",
+ "for",
"friend",
+ "goto",
+ "if",
"inline",
+ "int",
+ "long",
"mutable",
"namespace",
- "overload",
+ "new",
+ "not",
+ "not_eq",
+ "operator",
+ "or",
+ "or_eq",
+ "private",
+ "protected",
+ "public",
"register",
"reinterpret_cast",
+ "return",
+ "short",
"signed",
"sizeof",
+ "static",
"static_cast",
"struct",
+ "switch",
"template",
+ "this",
+ "throw",
+ "true",
+ "try",
"typedef",
- "typeid",
"typename",
- "typenameopt",
+ "typeid",
+ "typeof",
"union",
"unsigned",
"using",
"virtual",
+ "void",
"volatile",
- "wchar_t"
+ "wchar_t",
+ "while",
+ "xor",
+ "xor_eq"
};