-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconfig.h
More file actions
30 lines (25 loc) · 789 Bytes
/
Copy pathconfig.h
File metadata and controls
30 lines (25 loc) · 789 Bytes
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
#ifndef _CONFIG__H
#define _CONFIG__H
#ifdef DEBUG
#define DEBUG_PRINT printf
#else
#define DEBUG_PRINT //
#endif
enum reconstructor_functions
{
RECONSTRUCTOR_INTERNAL,
RECONSTRUCTOR_NUCLEUS
};
struct config
{
int reconstruct_symbols; // rebuild the symbol table
int reconstructor; // function to use for symbol reconstruction (see RECONSTRUCTOR_)
int verbose; // print extra information at runtime
int symbol_per_file; // write one symbol in each file - this is really useful
// when planning to make modifications before relinking.
linked_list *ignore_list; // List of symbols to ignore
char *entry_name; // name of the entry point function
};
// make the config globally accessible
extern struct config config;
#endif // _CONFIG__H