summaryrefslogtreecommitdiff
path: root/cg.h
diff options
context:
space:
mode:
authorJohn van Groningen2003-07-11 13:47:24 +0000
committerJohn van Groningen2003-07-11 13:47:24 +0000
commit2255def3b1d52edce2b87c30ddff0a206abda7cd (patch)
tree406f668067c28094b4a64a59d6549554bcb54f51 /cg.h
parentfix bug in floating point subtract and divide (diff)
add .c and .h files
Diffstat (limited to 'cg.h')
-rw-r--r--cg.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/cg.h b/cg.h
new file mode 100644
index 0000000..32ab55d
--- /dev/null
+++ b/cg.h
@@ -0,0 +1,37 @@
+void *memory_allocate (int size);
+void memory_free (void *memory_block);
+void *allocate_memory_from_heap (int size);
+void *fast_memory_allocate (int size);
+void release_heap (VOID);
+
+#define memory_allocate_type(t) ((t*)memory_allocate(sizeof(t)))
+#define fast_memory_allocate_type(t) ((t*)fast_memory_allocate(sizeof(t)))
+#define allocate_memory_from_heap_type(t) ((t*)allocate_memory_from_heap(sizeof(t)))
+
+void warning (char *error_string);
+void warning_i (char *error_string,int integer);
+void warning_s (char *error_string,char *string);
+void warning_si (char *error_string,char *string,int i);
+void error (char *error_string);
+void error_i (char *error_string,int integer);
+void error_s (char *error_string,char *string);
+void error_si (char *error_string,char *string,int i);
+void internal_error (char *error_string);
+void internal_error_in_function (char *function_name);
+
+extern int list_flag;
+extern int check_stack;
+extern int assembly_flag;
+extern int sun_flag;
+extern int mc68000_flag;
+extern int mc68881_flag;
+extern int parallel_flag;
+extern int check_index_flag;
+extern int module_info_flag;
+extern int profile_table_flag;
+
+#ifdef G_POWER
+extern int fmadd_flag;
+#endif
+
+extern char *this_module_name;