aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.h
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-04-21 13:49:49 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-04-21 06:49:49 -0700
commit5423609c57f756be5db8981d4ebb11a80d44f6e9 (patch)
tree6a4397f5304c150cbe5d79eab70071c1fe5a446a /gcc/java/parse.h
parent9d9cf1661deded9d4030041ba8a4dc6a80df78c7 (diff)
downloadgcc-5423609c57f756be5db8981d4ebb11a80d44f6e9.zip
gcc-5423609c57f756be5db8981d4ebb11a80d44f6e9.tar.gz
gcc-5423609c57f756be5db8981d4ebb11a80d44f6e9.tar.bz2
decl.c (predef_filenames, [...]): New globals
Wed Apr 21 11:13:36 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * decl.c (predef_filenames, predef_filenames_size): New globals (init_decl_processing): predef_filenames and predef_filenames_size initialized. * java-tree.h (predef_filenames, predef_filenames_size): Declared extern. * jcf-parse.c (predefined_filename_p): New function. (yyparse): Check that files on the command line are specified only once and issue a warning otherwise. * parse.h (JPRIMITIVE_TYPE_OR_VOID_P): New macro. * parse.y (source_end_java_method): Nullify NOP method bodies, to avoid a gcc warning with -W -Wall turned on. (java_expand_classes): Abort if errors were encountered. (java_complete_lhs): If the cross reference flag is set, wrap field DECL node around a WFL when resolving expression name. From-SVN: r26578
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r--gcc/java/parse.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h
index 52d9917..fb489e0 100644
--- a/gcc/java/parse.h
+++ b/gcc/java/parse.h
@@ -177,6 +177,9 @@ extern tree stabilize_reference PROTO ((tree));
&& (JNUMERIC_TYPE_P ((TYPE)) \
|| TREE_CODE ((TYPE)) == BOOLEAN_TYPE))
+#define JPRIMITIVE_TYPE_OR_VOID_P(TYPE) \
+ (JPRIMITIVE_TYPE_P (TYPE) || ((TYPE) == void_type_node))
+
#define JBSC_TYPE_P(TYPE) ((TYPE) && (((TYPE) == byte_type_node) \
|| ((TYPE) == short_type_node) \
|| ((TYPE) == char_type_node)))