Authors: Reinhard Grafl EMAIL: cacao@complang.tuwien.ac.at
Changes: Mark Probst EMAIL: cacao@complang.tuwien.ac.at
+ Philipp Tomsich EMAIL: cacao@complang.tuwien.ac.at
- Last Change: 1997/05/23
+ Last Change: $Id: headers.c 115 1999-01-20 01:52:45Z phil $
*******************************************************************************/
+#include "config.h" /* phil */
+
#include "global.h"
#include "tables.h"
void removecompilerstub (u1 *stub) {}
void removenativestub (u1 *stub) {}
-void perform_alpha_threadswitch (u1 **from, u1 **to) {}
-u1* initialize_thread_stack (void *func, u1 *stack) { return NULL; }
+void asm_perform_threadswitch (u1 **from, u1 **to) {}
+u1* asm_initialize_thread_stack (void *func, u1 *stack) { return NULL; }
void asm_switchstackandcall () { }
java_objectheader *native_new_and_init (void *p) { return NULL; }
/********** interne (nur fuer main relevante Optionen) **************/
char classpath[500] = "";
+ char offsets_filename[1024] = ""; /* phil */
u4 heapsize = 100000;
/*********** Optionen, damit wirklich nur headers generiert werden ***/
log_init (NULL);
log_text ("Java - header-generator started");
- file = fopen("sysdep/offsets.h", "w");
- if (file == NULL)
- panic ("Can not open file 'sysdep/offsets.h' for write");
+ sprintf(offsets_filename, "%s/offsets.h", SYSDEP_DIR); /* phil */
+ file = fopen(offsets_filename, "w");
+ if (file == NULL) {
+ fprintf (stderr, "Can not open file '%s' for write", offsets_filename);
+ exit(-1);
+ }
fprintf (file, "/* This file is machine generated, don't edit it !*/\n\n");