Go to the source code of this file.
|
#define | EXE_EXT "" |
| default extension for executable files More...
|
|
#define | PATH_SLASH "/" |
| default slash in paths More...
|
|
#define | PATH_DELIM ":" |
| default delimiter in paths in environment variables (like PATH) More...
|
|
#define | EXE_EXT2 ".run" |
| alternative extension for executable files used to avoid overwriting the source file More...
|
|
#define FIRST_BASIC_OPTION 0 |
#define LAST_BASIC_OPTION 4 |
#define FIRST_ADVANCED_OPTION 5 |
#define LAST_ADVANCED_OPTION 11 |
#define ALLOC |
( |
|
size) | |
alloc(size) |
#define REALLOC |
( |
|
ptr, |
|
|
|
size |
|
) |
| |
#define XALLOC |
( |
|
size) | |
xalloc(size) |
#define DEALLOC |
( |
|
ptr) | |
dealloc(ptr) |
Initalizes options with their default values.
Dumps statistics if -Zm option was switched on
Definition at line 207 of file options.c.
211 for( j = 0; j<4; j++ )
236 stats_used +=
stats[i].allocs-
stats[i].deallocs;
void set_options |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
- Parameters
-
argc | argc parameter from the main function |
argv | argv parameter from the main function |
Reads options from the argv
array and sets appropriate parameters.
Definition at line 392 of file options.c.
412 for( argc--,argv++; argc--; argv++ )
420 for( argc--,argv++; argc--; argv++ )
457 if( found )
continue;
void output_compiler_name |
( |
int |
show_help) | |
|
- Parameters
-
show_help | if set also output commandline options |
Outputs the name of the compiler, its language, its platform and build date. If show_help
is not zero, output a list of command-line options
Definition at line 255 of file options.c.
284 for( ; len<6; len++ )
outter(
TEXT(
" "), -1 );
297 for( ; len<30; len++ )
outter(
TEXT(
" "), -1 );
Dumps statistics of memory usage
Definition at line 173 of file options.c.
181 if(
stats[i].allocs )
183 PRINT(
" %10s %8d %8d %8d %8d\n",
191 PRINT(
" %39s\n",
"----------------");
192 PRINT(
" %30s %8d\n",
"Used",stats_used);
194 PRINT(
" %39s\n",
"----------------");
- Parameters
-
size | size of memory (in bytes) to allocate |
- Returns
- pointer to allocated memory
This function is used to allocate memory. Depending on the existence of DEBUG_HEAP symbol it either just allocates memory or allocates and dump on the screen allocation data.
Definition at line 556 of file options.c.
void* reallocate |
( |
void * |
ptr, |
|
|
int |
size |
|
) |
| |
- Parameters
-
ptr | pointer to the memory to deallocate |
This function is used to deallocate memory. Depending on the existence of DEBUG_HEAP symbol it either just deallocates memory or deallocates and dumps on the screen deallocation data.
Definition at line 592 of file options.c.
int option_make_executable |
int option_make_executable_compiler |
int option_case_insensitive |
int option_memory_statistics |
int option_detailed_memory_statistics |
int option_user_variables |
char* option_compiler_filename |
chars_t option_compiler_filename_chars |
char* option_source_filename |
chars_t option_source_filename_chars |