Joseph Wenninger
Christian Thalinger
- $Id: global.h 5461 2006-09-11 00:33:32Z edwin $
+ $Id: global.h 5721 2006-10-08 11:39:41Z edwin $
*/
typedef struct java_objectarray java_objectarray;
-/* define some CACAO paths ****************************************************/
-
-#define CLASSPATH_LIBRARY_PATH CLASSPATH_LIBDIR "/classpath"
-
-
#define MAX_ALIGN 8 /* most generic alignment for JavaVM values */
void compiler_unlock();
#endif
+
+/* global constants related to the verifier ***********************************/
+
+/* The verifier needs additional variables in the variable array. Since these */
+/* must be reserved and set by parse.c and stack.c, we define these numbers */
+/* here to avoid mysterious hard-coded constants. */
+/* stack.c needs an extra variable if the verifier is disabled. */
+
+#if defined(ENABLE_VERIFIER)
+# define VERIFIER_EXTRA_LOCALS 1
+# define VERIFIER_EXTRA_VARS 1
+# define STACK_EXTRA_VARS 0
+#else
+# define VERIFIER_EXTRA_LOCALS 0
+# define VERIFIER_EXTRA_VARS 0
+# define STACK_EXTRA_VARS 1
+#endif
+
#endif /* _GLOBAL_H */