mirror of
https://git.wuffs.org/MWCC
synced 2025-12-13 15:16:24 +00:00
let's commit all this before my VM blows up and nukes my work
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
#include "mwcc_decomp.h"
|
||||
#include "cmdline.h"
|
||||
|
||||
int main(int argc, const char **argv) {
|
||||
extern const char *CMDLINE_BUILD_TIME;
|
||||
extern const char *CMDLINE_BUILD_DATE;
|
||||
|
||||
// Glue functions
|
||||
extern int RegisterStaticParserPlugins();
|
||||
extern int RegisterStaticParserResources();
|
||||
|
||||
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();
|
||||
|
||||
extern int RegisterStaticParserToolInfo();
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
OSType cpu;
|
||||
OSType os;
|
||||
OSType lang;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "mwcc_decomp.h"
|
||||
#include "cmdline.h"
|
||||
|
||||
int RegisterResource(const char *name, SInt16 rsrcid, const char **list) {
|
||||
Handle h;
|
||||
@@ -42,7 +42,7 @@ void SetPluginType(OSType lang, OSType type) {
|
||||
clState.plugintype = type;
|
||||
}
|
||||
|
||||
int CmdLine_Initialize(int argc, const char **argv, const char *builddate, const char *buildtime) {
|
||||
int CmdLine_Initialize(int argc, char **argv, const char *builddate, const char *buildtime) {
|
||||
strncpy(cmdline_build_date, builddate, sizeof(cmdline_build_date));
|
||||
strncpy(cmdline_build_time, buildtime, sizeof(cmdline_build_time));
|
||||
return Main_Initialize(argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user