OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [java/] [parse.h] - Blame information for rev 715

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 715 jeremybenn
/* Language parser definitions for the GNU compiler for the Java(TM) language.
2
   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3
   2005, 2006, 2007, 2010 Free Software Foundation, Inc.
4
   Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 3, or (at your option)
11
any later version.
12
 
13
GCC is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.
21
 
22
Java and all Java-based marks are trademarks or registered trademarks
23
of Sun Microsystems, Inc. in the United States and other countries.
24
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
25
 
26
#ifndef GCC_JAVA_PARSE_H
27
#define GCC_JAVA_PARSE_H
28
 
29
/* Extern global variable declarations */
30
extern struct obstack temporary_obstack;
31
 
32
#ifdef VERBOSE_SKELETON
33
#undef SOURCE_FRONTEND_DEBUG
34
#define SOURCE_FRONTEND_DEBUG(X)                                \
35
  {if (!quiet_flag) {printf ("* "); printf X; putchar ('\n');} }
36
#else
37
#define SOURCE_FRONTEND_DEBUG(X)
38
#endif
39
 
40
/* Types classification, according to the JLS, section 4.2 */
41
#define JFLOAT_TYPE_P(TYPE)      (TYPE && TREE_CODE ((TYPE)) == REAL_TYPE)
42
#define JINTEGRAL_TYPE_P(TYPE)   ((TYPE)                                   \
43
                                  && (TREE_CODE ((TYPE)) == INTEGER_TYPE))
44
#define JNUMERIC_TYPE_P(TYPE)    ((TYPE)                                \
45
                                  && (JFLOAT_TYPE_P ((TYPE))            \
46
                                      || JINTEGRAL_TYPE_P ((TYPE))))
47
#define JPRIMITIVE_TYPE_P(TYPE)  ((TYPE)                                  \
48
                                  && (JNUMERIC_TYPE_P ((TYPE))            \
49
                                  || TREE_CODE ((TYPE)) == BOOLEAN_TYPE))
50
 
51
/* Not defined in the LRM */
52
#define JSTRING_TYPE_P(TYPE) ((TYPE)                                       \
53
                              && ((TYPE) == string_type_node ||            \
54
                                  (TREE_CODE (TYPE) == POINTER_TYPE &&     \
55
                                   TREE_TYPE (TYPE) == string_type_node)))
56
#define JREFERENCE_TYPE_P(TYPE) ((TYPE)                                       \
57
                                 && (TREE_CODE (TYPE) == RECORD_TYPE          \
58
                                     || (TREE_CODE (TYPE) == POINTER_TYPE     \
59
                                         &&  TREE_CODE (TREE_TYPE (TYPE)) ==  \
60
                                         RECORD_TYPE)))
61
 
62
int java_report_errors (void);
63
extern tree do_resolve_class (tree, tree, tree, tree, tree);
64
 
65
/* Always in use, no matter what you compile */
66
void java_push_parser_context (void);
67
void java_pop_parser_context (int);
68
extern void java_parser_context_save_global (void);
69
extern void java_parser_context_restore_global (void);
70
 
71
#endif /* ! GCC_JAVA_PARSE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.