Go to the documentation of this file.
44 #ifndef LHOGHO_OPTIONS_H
45 #define LHOGHO_OPTIONS_H
56 #define OPTION_HELP option_turned_on[0]
57 #define OPTION_MAKE_EXECUTABLE option_turned_on[1]
58 #define OPTION_MAKE_EXECUTABLE_COMPILER option_turned_on[2]
59 #define OPTION_CASE_INSENSITIVE option_turned_on[3]
60 #define OPTION_TRADITIONAL option_turned_on[4]
62 #define OPTION_ASSEMBLER option_turned_on[5]
63 #define OPTION_MEMORY_STATISTICS option_turned_on[6]
64 #define OPTION_DETAILED_MEMORY_STATISTICS option_turned_on[7]
65 #define OPTION_RUNTIME option_turned_on[8]
66 #define OPTION_DUMP_AST option_turned_on[9]
67 #define OPTION_VARIABLES option_turned_on[10]
68 #define OPTION_USER_VARIABLES option_turned_on[11]
70 #define FIRST_BASIC_OPTION 0
71 #define LAST_BASIC_OPTION 4
73 #define FIRST_ADVANCED_OPTION 5
74 #define LAST_ADVANCED_OPTION 11
76 #define OPTIONS_COUNT (LAST_ADVANCED_OPTION-FIRST_BASIC_OPTION+1)
79 #define OPTIONS_SUPPORTED_COUNT OPTIONS_COUNT
81 #define OPTIONS_SUPPORTED_COUNT (LAST_BASIC_OPTION-FIRST_BASIC_OPTION+1)
91 #define EXE_EXT ".exe"
92 #define PATH_SLASH "\\"
93 #define PATH_DELIM ";"
96 #define PATH_SLASH "/"
97 #define PATH_DELIM ":"
99 #define EXE_EXT2 ".run"
161 #define ALLOC(size) alloc( size, \
166 #define REALLOC(ptr, size) reallocate(ptr, \
172 #define XALLOC(size) xalloc( size, \
177 #define DEALLOC(ptr) dealloc( ptr, \
183 extern void*
alloc(
int size,
const char* func,
const char* file,
const int line );
184 extern void*
reallocate(
void* ptr,
int size,
const char* func,
const char* file,
const int line );
185 extern void*
xalloc(
int size,
const char* func,
const char* file,
const int line );
186 extern void dealloc(
void* ptr,
const char* func,
const char* file,
const int line );
188 #define ALLOC(size) alloc(size)
189 #define REALLOC(ptr, size) reallocate(ptr, \
191 #define XALLOC(size) xalloc(size)
192 #define DEALLOC(ptr) dealloc(ptr)
194 extern void*
alloc(
int size );
195 extern void*
reallocate(
void* ptr,
int size);
196 extern void*
xalloc(
int size );
197 extern void dealloc(
void* ptr );
199 #endif //LHOGHO_OPTIONS_H
[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013