2022-10-11 02:18:42 +00:00
|
|
|
#pragma once
|
2022-10-12 02:03:57 +00:00
|
|
|
#include "common.h"
|
|
|
|
#include "oslib.h"
|
|
|
|
#include "macemul.h"
|
2022-10-14 22:15:32 +00:00
|
|
|
#include "plugin.h"
|
|
|
|
|
|
|
|
#define OPTION_ASSERT(cond) do { if (!!(cond) == 0) { printf("%s:%u: failed assertion\n", __FILE__, __LINE__); abort(); } } while(0)
|
2022-10-11 02:18:42 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* command_line/CmdLine/Src/Clients/CLStaticMain.c */
|
|
|
|
extern int main(int argc, const char **argv);
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* ??? */
|
|
|
|
extern int AddFileTypeMappingList(void *a, void *b); // TODO sig
|
|
|
|
extern void UseFileTypeMappings(void *a); // TODO sig
|
|
|
|
extern OSErr SetMacFileType(const FSSpec *fss, void *a); // TODO sig
|
|
|
|
extern OSErr GetMacFileType(const FSSpec *fss, void *a); // TODO sig
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* Might be cc-mach-ppc-mw.c? */
|
|
|
|
extern void GetStaticTarget(OSType *cpu, OSType *os);
|
|
|
|
extern void GetStaticPluginType(OSType *language, OSType *plugintype);
|
|
|
|
extern void GetStaticParserPluginType(OSType *style);
|
|
|
|
extern int RegisterStaticTargetResources();
|
|
|
|
extern int RegisterStaticTargetPlugins();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* Might be ParserGlue-mach-ppc-cc.c? */
|
|
|
|
extern int RegisterStaticParserToolInfo();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* Might be cc-mach-ppc.c? */
|
|
|
|
extern int RegisterStaticCompilerPlugin();
|
|
|
|
extern int RegisterCompilerResources();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* libimp-mach-ppc.c */
|
|
|
|
// some statics here
|
|
|
|
extern int RegisterStaticLibImporterPlugin();
|
|
|
|
extern int RegisterLibImporterResources();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* TargetOptimizer-ppc-mach.c */
|
|
|
|
extern int TargetSetOptFlags(SInt16 val, Boolean set);
|
|
|
|
extern void TargetDisplayOptimizationOptions(Handle txt);
|
|
|
|
extern void TargetSetPragmaOptimizationsToUnspecified();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* OptimizerHelpers.c */
|
|
|
|
extern int SetPragmaOptimizationsToUnspecified();
|
|
|
|
extern int SetOptFlags(char *opt, void *str, ...); // two unknown args
|
|
|
|
extern int DisplayOptimizationOptions();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* Unk name lol */
|
|
|
|
extern int TargetSetWarningFlags(SInt16 val, Boolean set);
|
|
|
|
extern int TargetDisplayWarningOptions(Handle txt);
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* WarningHelpers.c */
|
|
|
|
extern int SetWarningFlags(char *opt, void *str, ...); // two unknown args
|
|
|
|
extern int DisplayWarningOptions();
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* CCompiler.c */
|
2022-10-19 20:16:13 +00:00
|
|
|
extern CWPLUGIN_ENTRY(MWC_main)(CWPluginContext context);
|
2022-10-11 02:18:42 +00:00
|
|
|
|
|
|
|
// LOTS OF STUFF
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* StaticParserGlue.c */
|
|
|
|
extern int RegisterStaticParserPlugins();
|
2022-10-14 22:15:32 +00:00
|
|
|
extern int RegisterStaticParserResources();
|
2022-10-11 02:18:42 +00:00
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* CmdLineBuildDate.c */
|
|
|
|
extern char CMDLINE_BUILD_DATE[];
|
|
|
|
extern char CMDLINE_BUILD_TIME[];
|
|
|
|
|
|
|
|
|
|
|
|
/********************************/
|
|
|
|
/* MISC */
|
|
|
|
extern char cmdline_build_date[32];
|
|
|
|
extern char cmdline_build_time[32];
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|