* codegen_ncode_increase: Typo.
[cacao.git] / src / cacao / cacao.h
index c37ceac785e3531a5bc78ba3c5936ac9f5b72586..cf13b4f12021b203807e3ae83d04fb436af5311e 100644 (file)
@@ -1,10 +1,9 @@
-/* main.c - main header, contains global variables
+/* cacao/cacao.h - main header, contains global variables
 
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-   Institut f. Computersprachen, TU Wien
-   R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
-   S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
-   J. Wenninger
+   Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+   Institut f. Computersprachen - TU Wien
 
    This file is part of CACAO.
 
 
    Authors: Christian Thalinger
 
-   $Id: cacao.h 895 2004-01-19 13:53:43Z edwin $
+   $Id: cacao.h 4004 2005-12-22 16:08:57Z twisti $
 
 */
 
 
-#ifndef _MAIN_H
-#define _MAIN_H
+#ifndef _CACAO_H
+#define _CACAO_H
 
-#include "global.h"
+#include "native/jni.h"
+#include "vm/global.h"
 
-/* global variables */
 
-extern bool compileall;
-extern bool verbose;
-extern bool runverbose;
-extern bool collectverbose;
+/* global variables ***********************************************************/
 
-extern bool loadverbose;         /* Print debug messages during loading */
-extern bool linkverbose;
-extern bool initverbose;         /* Log class initialization */ 
+extern u1 *intrp_main_stack;
 
-extern bool opt_rt;
-extern bool opt_xta;
-extern bool opt_vta;
+extern bool cacao_exiting;
 
-extern bool opt_liberalutf;      /* Don't check overlong UTF-8 sequences */
+extern JavaVM *jvm;
+extern JNIEnv *env;
 
-extern bool showmethods;
-extern bool showconstantpool;
-extern bool showutf;
+extern char *mainstring;    /* class.method with main method */
 
-extern bool compileverbose;
-extern bool showstack;
-extern bool showdisassemble;
-extern bool showddatasegment;
-extern bool showintermediate;
 
-extern bool useinlining;
-extern bool inlinevirtuals;
-extern bool inlineexceptions;
-extern bool inlineparamopt;
-extern bool inlineoutsiders;
+/* function prototypes ********************************************************/
 
-extern bool checkbounds;
-extern bool checknull;
-extern bool opt_noieee;
-extern bool checksync;
-extern bool opt_loops;
+void cacao_exit(s4 status);
+void cacao_shutdown(s4 status);
 
-extern bool makeinitializations;
-
-extern bool getloadingtime;
-extern s8 loadingtime;
-
-extern bool getcompilingtime;
-extern s8 compilingtime;
-
-extern int has_ext_instr_set;
-
-extern bool statistics;
-
-#endif /* _MAIN_H */
+#endif /* _CACAO_H */
 
 
 /*