summaryrefslogtreecommitdiff
path: root/compiler_and_linker/CmdLine_Tools
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-15 12:14:05 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-15 12:14:05 +0000
commit35d488e972a9dd75ce3867c000405f128b79c615 (patch)
treee3319a23d9aa0d4725f88a99fdd5131488a334a9 /compiler_and_linker/CmdLine_Tools
parent8078e7f897aaae9b492b22475060052d68b9c547 (diff)
downloadMWCC-35d488e972a9dd75ce3867c000405f128b79c615.tar.gz
MWCC-35d488e972a9dd75ce3867c000405f128b79c615.zip
reorganise things a bit to align further with the actual names/structure
Diffstat (limited to '')
-rw-r--r--command_line/C++_Parser/Src/Library/StdTargetWarningHelpers-cc.c (renamed from compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetWarningHelpers-ppc-cc.c)3
-rw-r--r--compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c8
-rw-r--r--compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetOptimizer-ppc-mach.c (renamed from unsorted/TargetOptimizer-ppc-mach.c)0
-rw-r--r--compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c4
-rw-r--r--compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c4
-rw-r--r--compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c12
6 files changed, 14 insertions, 17 deletions
diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetWarningHelpers-ppc-cc.c b/command_line/C++_Parser/Src/Library/StdTargetWarningHelpers-cc.c
index db6165c..c1f378d 100644
--- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetWarningHelpers-ppc-cc.c
+++ b/command_line/C++_Parser/Src/Library/StdTargetWarningHelpers-cc.c
@@ -1,8 +1,5 @@
#include "parser.h"
-// I'm making assumptions about the name of this file
-// based on TargetWarningHelpers-ppc-ld.c existing in the linker
-
PExtraWarningC pExtraWarningC = {0};
Pragma warningPragmas[] = {
&pExtraWarningC.warn_largeargs, "warn_largeargs", 0,
diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c
index f605817..ba38b17 100644
--- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c
+++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c
@@ -58,7 +58,7 @@ static PrefDataPanel stPrefPanels[] = {
"CmdLine Linker Panel", &pCmdLineLinker, sizeof(pCmdLineLinker)
};
-static int PreParse() {
+static int PreParse(void) {
setLinkerOutputFilename = 0;
linkerOutputFilename[0] = 0;
definesHandle = NULL;
@@ -67,7 +67,7 @@ static int PreParse() {
return 1;
}
-static int MidParse() {
+static int MidParse(void) {
const char *match;
const char *env;
@@ -85,7 +85,7 @@ static int MidParse() {
return 1;
}
-static int PostParse() {
+static int PostParse(void) {
if (!SetupPragmas(irPragmas) || !SetupPragmas(warningPragmas))
return 0;
@@ -132,6 +132,6 @@ static ParserTool parser = {
&PostParse
};
-int RegisterStaticParserToolInfo() {
+int RegisterStaticParserToolInfo(void) {
return SetParserToolInfo(&parser);
}
diff --git a/unsorted/TargetOptimizer-ppc-mach.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetOptimizer-ppc-mach.c
index 6c86356..6c86356 100644
--- a/unsorted/TargetOptimizer-ppc-mach.c
+++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetOptimizer-ppc-mach.c
diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c
index 5965d11..912c21a 100644
--- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c
+++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c
@@ -246,7 +246,7 @@ static CompilerLinkerPluginCallbacks lk_cl_cb = {
NULL
};
-int RegisterStaticCompilerPlugin() {
+int RegisterStaticCompilerPlugin(void) {
return RegisterStaticCompilerLinkerPlugin(&plugin_cb, &plugin_cl_cb) && RegisterStaticCompilerLinkerPlugin(&lk_cb, &lk_cl_cb);
}
@@ -563,6 +563,6 @@ static const char *STR10100[] = {
NULL
};
-int RegisterCompilerResources() {
+int RegisterCompilerResources(void) {
return RegisterResource("Compiler Errors", 10000, STR10000) && RegisterResource("Compiler Strings", 10100, STR10100);
}
diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c
index 484db0f..4eb55d5 100644
--- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c
+++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c
@@ -135,12 +135,12 @@ static CompilerLinkerPluginCallbacks machlibimport_cl_cb = {
NULL
};
-int RegisterStaticLibImporterPlugin() {
+int RegisterStaticLibImporterPlugin(void) {
return RegisterStaticCompilerLinkerPlugin(&machlibimport_cb, &machlibimport_cl_cb);
}
#include "compiler_and_linker/Plugin_Tools/MacOS_PPC/Lib_Importer_Mach/Resources/Errors.r"
-int RegisterLibImporterResources() {
+int RegisterLibImporterResources(void) {
return RegisterResource("Mach-O Lib Importer Errors", 911, STR911);
}
diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c
index 25a9f49..95dabf6 100644
--- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c
+++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c
@@ -1,11 +1,11 @@
#include "cmdline.h"
// cc-mach-ppc.c
-extern int RegisterStaticCompilerPlugin();
-extern int RegisterCompilerResources();
+extern int RegisterStaticCompilerPlugin(void);
+extern int RegisterCompilerResources(void);
// libimp-mach-ppc.c
-extern int RegisterStaticLibImporterPlugin();
-extern int RegisterLibImporterResources();
+extern int RegisterStaticLibImporterPlugin(void);
+extern int RegisterLibImporterResources(void);
void GetStaticTarget(OSType *cpu, OSType *os) {
*cpu = targetCPUPowerPC;
@@ -21,11 +21,11 @@ void GetStaticParserPluginType(OSType *style) {
*style = CWFOURCHAR('S','e','e','p');
}
-int RegisterStaticTargetPlugins() {
+int RegisterStaticTargetPlugins(void) {
return RegisterStaticCompilerPlugin() && RegisterStaticLibImporterPlugin();
}
-int RegisterStaticTargetResources() {
+int RegisterStaticTargetResources(void) {
OS_UseMacResourceForkInfo(1);
return RegisterCompilerResources() && RegisterLibImporterResources();
}