summaryrefslogtreecommitdiff
path: root/unsorted/ToolHelpers-cc.c
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 /unsorted/ToolHelpers-cc.c
parent8078e7f897aaae9b492b22475060052d68b9c547 (diff)
downloadMWCC-35d488e972a9dd75ce3867c000405f128b79c615.tar.gz
MWCC-35d488e972a9dd75ce3867c000405f128b79c615.zip
reorganise things a bit to align further with the actual names/structure
Diffstat (limited to 'unsorted/ToolHelpers-cc.c')
-rw-r--r--unsorted/ToolHelpers-cc.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/unsorted/ToolHelpers-cc.c b/unsorted/ToolHelpers-cc.c
deleted file mode 100644
index b58f188..0000000
--- a/unsorted/ToolHelpers-cc.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "parser.h"
-#include "cmdline.h"
-
-int Opt_DummyLinkerRoutine(const char *opt, void *, const char *, int) {
- CLPFatalError("Calling linker option '%s'\n", opt);
- return 0;
-}
-
-int Opt_DummyLinkerSettingRoutine(const char *var, const char *val) {
- CLPFatalError("Calling linker settings option '%s'='%s'\n", var, val ? val : "");
- return 0;
-}
-
-void FinishCompilerTool(void) {
- SInt32 numfiles;
-
- if (parseopts.lastoutputname[0]) {
- numfiles = GetFileCount();
-
- if (pCmdLine.stages == CmdLineStageMask_Dp) {
- strcpy(pCmdLineCompiler.outMakefile, parseopts.lastoutputname);
- } else if (outputOrdering == OutputOrdering2) {
- if (parseopts.possibleFiles > 0 || parseopts.userSpecifiedFiles > 0)
- CLPReportError(41, parseopts.lastoutputname);
- else
- CLPReportError(42, parseopts.lastoutputname);
- } else {
- SetFileOutputName(numfiles - 1, lastStage, parseopts.lastoutputname);
- }
-
- parseopts.lastoutputname[0] = 0;
- }
-
- if (setOutputDirectory)
- pCmdLineCompiler.relPathInOutputDir = 0;
-}