summaryrefslogtreecommitdiff
path: root/unsorted/Targets.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/Targets.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/Targets.c')
-rw-r--r--unsorted/Targets.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/unsorted/Targets.c b/unsorted/Targets.c
deleted file mode 100644
index 378b9d7..0000000
--- a/unsorted/Targets.c
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "parser.h"
-
-ParserTool *pTool;
-
-int SetParserToolInfo(ParserTool *tool) {
- pTool = tool;
-
- OS_ASSERT(16, pTool->toolInfo && (parseopts.toolVersion || pTool->copyright));
-
- return 1;
-}
-
-Boolean ParserToolMatchesPlugin(OSType type, OSType lang, OSType cpu, OSType os) {
- if (!pTool) {
- CLPFatalError("No options loaded for command line\n");
- return 0;
- }
-
- if (
- (type == CWDROPINANYTYPE || pTool->TYPE == CWDROPINANYTYPE || pTool->TYPE == type) &&
- (lang == Lang_Any || pTool->LANG == Lang_Any || pTool->LANG == lang) &&
- (cpu == targetCPUAny || pTool->CPU == targetCPUAny || pTool->CPU == cpu) &&
- (os == targetOSAny || pTool->OS == targetOSAny || pTool->OS == os)
- )
- {
- return 1;
- } else {
- return 0;
- }
-}
-
-Boolean ParserToolHandlesPanels(int numPanels, const char **panelNames) {
- int idx;
- int scan;
-
- if (!pTool)
- CLPFatalError("No options loaded for command line\n");
-
- for (idx = 0; idx < numPanels; idx++) {
- for (scan = 0; scan < pTool->numPrefPanels; scan++) {
- if (!ustrcmp(pTool->prefPanels[scan], panelNames[idx]))
- break;
- }
-
- if (scan >= pTool->numPrefPanels)
- break;
- }
-
- if (idx >= numPanels)
- return 1;
- else
- return 0;
-}
-
-Boolean SetupParserToolOptions(void) {
- int idx;
-
- Options_Init();
- for (idx = 0; idx < pTool->numOptionLists; idx++) {
- Options_AddList(pTool->optionLists[idx]);
- }
- Options_SortOptions();
-
- return 1;
-}