void InitModInfo( // INITIALIZE MODULE INFORMATION void ) { PackAmount = TARGET_PACKING; GblPackAmount = PackAmount; SrcFileSetTab( DEF_TAB_WIDTH ); RingNameInit( &undef_names ); PragToggle.check_stack = true; PragToggle.unreferenced = true; DataThreshold = 32767; OptSize = 50; WholeFName = NULL; ObjectFileName = NULL; ModuleName = NULL; ErrorFileName = strsave( "*" ); ErrLimit = 20; WngLevel = WLEVEL_DEFAULT; /* set CompFlags defaults */ CompFlags.extensions_enabled = true; CompFlags.oldmacros_enabled = true; CompFlags.emit_library_names = true; CompFlags.emit_dependencies = true; CompFlags.emit_targimp_symbols = true; CompFlags.check_truncated_fnames = true; CompFlags.inline_functions = true; SetAuxWatcallInfo(); HeadPacks = NULL; HeadEnums = NULL; FreePrags = NULL; CgBackSetInlineDepth( DEFAULT_INLINE_DEPTH ); CgBackSetOeSize( 0 ); CgBackSetInlineRecursion( false ); }
void InitModInfo( void ) { GenSwitches = 0; TargetSwitches = 0; Toggles = TOGGLE_CHECK_STACK | TOGGLE_UNREFERENCED | TOGGLE_REUSE_DUPLICATE_STRINGS; DataThreshold = 32767; OptSize = 50; UndefNames = NULL; WholeFName = NULL; ObjectFileName = NULL; ErrorFileName = CStrSave( "*" ); DependFileName = NULL; DependForceSlash = 0; ModuleName = NULL; ErrLimit = 20; WngLevel = 1; #if _CPU == 8086 PackAmount = TARGET_INT; /* pack structs on word boundaries */ #elif _CPU == 386 PackAmount = 8; #else CompFlags.make_enums_an_int = 1; // make enums ints CompFlags.original_enum_setting = 1; PackAmount = 8; #endif PreProcChar = '#'; CompFlags.check_syntax = 0; CompFlags.signed_char = 0; CompFlags.use_full_codegen_od = 0; CompFlags.inline_functions = 0; CompFlags.dump_prototypes = 0; CompFlags.generate_prototypes = 0; CompFlags.bss_segment_used = 0; CompFlags.undefine_all_macros = 0; CompFlags.extensions_enabled = 1; CompFlags.oldmacros_enabled = 1; CompFlags.unix_ext = 0; CompFlags.slack_byte_warning = 0; CompFlags.errfile_written = 0; CompFlags.zu_switch_used = 0; CompFlags.register_conventions = 0; CompFlags.pragma_library = 0; CompFlags.emit_all_default_libs = 0; CompFlags.emit_library_names = 1; CompFlags.emit_dependencies = 1; CompFlags.emit_targimp_symbols = 1; CompFlags.use_unicode = 1; CompFlags.no_debug_type_names = 0; CompFlags.auto_agg_inits = 0; CompFlags.no_check_inits = 0; CompFlags.no_check_qualifiers = 0; CompFlags.ignore_default_dirs = 0; CompFlags.use_stdcall_at_number = 1; CompFlags.rent = 0; SetAuxWatcallInfo(); }