summaryrefslogtreecommitdiff
path: root/cg.h
blob: 32ab55dc3084ace7f43397907413afd176b8274f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;