From 3d2f1da7c8062a4932ea29a0d37a769991764cc5 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 25 Jan 2023 18:31:17 +0000 Subject: note updates --- command_line/CmdLine/Src/CLMain.c | 4 ++++ includes/cmdline.h | 2 +- notes | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/command_line/CmdLine/Src/CLMain.c b/command_line/CmdLine/Src/CLMain.c index ef55b55..57df9fb 100644 --- a/command_line/CmdLine/Src/CLMain.c +++ b/command_line/CmdLine/Src/CLMain.c @@ -153,6 +153,8 @@ static Boolean special_stdout_base(Boolean pre, char *) { } } +// TODO: special function goes here for license file + struct SpecialOption { const char *optname; char **argp; @@ -239,6 +241,8 @@ int Main_Initialize(int argc, char **argv) { Main_PreParse(&argc, &argv); clState.argc = argc; clState.argv = argv; + + // TODO: this changes on windows strcpyn(exename, argv[0], strlen(argv[0]), 256); exename[255] = 0; diff --git a/includes/cmdline.h b/includes/cmdline.h index d25e70b..45f052e 100644 --- a/includes/cmdline.h +++ b/includes/cmdline.h @@ -216,7 +216,7 @@ enum { // "Changing primary user access path to '%s'" CLStr105 = 105, // "The linker does not expect duplicate files; ignoring repeated '%s'" - CLStr106 = 106, + CLStr106 = 106 }; #define DO_INTERNAL_ERROR(line, ...) CLInternalError(__FILE__, line, __VA_ARGS__) diff --git a/notes b/notes index f33568c..1dc7adc 100644 --- a/notes +++ b/notes @@ -7,7 +7,7 @@ wine ../reversing/v7_0_mwcppc.exe -g -DCW_TARGET_MACH -opt l=4,speed -enum min - OS 9 mpw-emu setup: export MWCIncludes=":msl_c_pro7:MSL_Common:Include,:msl_c_pro7:MSL_MacOS:Include" -mpw-emu mwcppc_v7 -g -DCW_TARGET_MACH -opt l=4,speed,nopeephole,noschedule -enum min -convertpaths -Iincludes -Isdk_hdrs -w all,nounused,notinlined -wchar_t on -bool off -Cpp_exceptions off -maxwarnings 10 +mpw-emu mwcppc_v7 -g -DCW_TARGET_MACH -DCW_HOST_MAC_CLASSIC -opt l=4,speed,nopeephole,noschedule -enum min -convertpaths -Iincludes -Isdk_hdrs -w all,nounused,notinlined -wchar_t on -bool off -Cpp_exceptions off -maxwarnings 10 * - has issues -- cgit v1.2.3