mirror of
https://git.wuffs.org/MWCC
synced 2025-12-12 14:46:09 +00:00
getting closer
This commit is contained in:
@@ -273,11 +273,11 @@ int Deps_ChangeSpecialAccessPath(OSSpec *srcfss, Boolean initialize) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Path *Deps_GetSpecialAccessPath() {
|
||||
Path *Deps_GetSpecialAccessPath(void) {
|
||||
return specialAccessPath;
|
||||
}
|
||||
|
||||
static void SetSpecialAccessPathFromIncludeStackTOS() {
|
||||
static void SetSpecialAccessPathFromIncludeStackTOS(void) {
|
||||
// does not match, some registers are in the wrong order
|
||||
OSSpec spec;
|
||||
SInt16 index;
|
||||
|
||||
@@ -460,7 +460,7 @@ static int CompileEntry(File *file, Boolean *compiled) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void DumpFileAndPathInfo() {
|
||||
static void DumpFileAndPathInfo(void) {
|
||||
int i;
|
||||
int n;
|
||||
|
||||
@@ -583,7 +583,7 @@ static void DumpFileAndPathInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
int CompileFilesInProject() {
|
||||
int CompileFilesInProject(void) {
|
||||
struct BuildInfo *tinfo;
|
||||
SInt32 index;
|
||||
SInt32 startTime;
|
||||
@@ -679,7 +679,7 @@ int CompileFilesInProject() {
|
||||
return CheckForUserBreak() ? Result_Cancelled : Result_Success;
|
||||
}
|
||||
|
||||
static int PostLinkFilesInProject() {
|
||||
static int PostLinkFilesInProject(void) {
|
||||
SInt32 index;
|
||||
SInt32 startTime;
|
||||
SInt32 endTime;
|
||||
@@ -709,7 +709,7 @@ static int PostLinkFilesInProject() {
|
||||
return CheckForUserBreak() ? Result_Cancelled : Result_Success;
|
||||
}
|
||||
|
||||
int LinkProject() {
|
||||
int LinkProject(void) {
|
||||
SInt32 startTime;
|
||||
SInt32 endTime;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ static CacheEntry *cachelist;
|
||||
static CacheEntry *freelist;
|
||||
static UInt32 availablecache;
|
||||
|
||||
static CacheEntry *makecacheentry() {
|
||||
static CacheEntry *makecacheentry(void) {
|
||||
CacheEntry *c = freelist;
|
||||
if (c) {
|
||||
freelist = c->next;
|
||||
@@ -46,13 +46,13 @@ static void deletecacheentry(CacheEntry *c) {
|
||||
cachelist = c->next;
|
||||
}
|
||||
|
||||
void InitializeIncludeCache() {
|
||||
void InitializeIncludeCache(void) {
|
||||
freelist = NULL;
|
||||
cachelist = NULL;
|
||||
availablecache = CACHE_SIZE;
|
||||
}
|
||||
|
||||
void CleanupIncludeCache() {
|
||||
void CleanupIncludeCache(void) {
|
||||
CacheEntry *c;
|
||||
CacheEntry *c1;
|
||||
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
#include "cmdline.h"
|
||||
|
||||
void License_Initialize() {
|
||||
void License_Initialize(void) {
|
||||
}
|
||||
|
||||
void License_Terminate() {
|
||||
void License_Terminate(void) {
|
||||
}
|
||||
|
||||
SInt32 License_Checkout() {
|
||||
SInt32 License_Checkout(void) {
|
||||
return 0xD0AD0A;
|
||||
}
|
||||
|
||||
void License_Refresh() {
|
||||
|
||||
// unknown args
|
||||
}
|
||||
|
||||
void License_Checkin() {
|
||||
|
||||
// unknown args
|
||||
}
|
||||
|
||||
void License_AutoCheckin() {
|
||||
|
||||
void License_AutoCheckin(void) {
|
||||
}
|
||||
|
||||
@@ -117,13 +117,13 @@ static BasePluginCallbacks clcb = {
|
||||
CLT_GetFileTypeMappings
|
||||
};
|
||||
|
||||
static int RegisterStaticCmdLinePlugin() {
|
||||
static int RegisterStaticCmdLinePlugin(void) {
|
||||
return RegisterStaticPlugin(&clcb);
|
||||
}
|
||||
|
||||
#include "command_line/CmdLine/Project/Resources/CLErrors.r"
|
||||
|
||||
static int RegisterCmdLineResources() {
|
||||
static int RegisterCmdLineResources(void) {
|
||||
return RegisterResource("Command-line strings", 12000, STR12000);
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ int Main_Terminate(int exitcode) {
|
||||
return exitcode;
|
||||
}
|
||||
|
||||
static int Main_ParseCommandLine() {
|
||||
static int Main_ParseCommandLine(void) {
|
||||
Plugin *parser;
|
||||
CWCommandLineArgs myargs;
|
||||
int x, y;
|
||||
@@ -337,7 +337,7 @@ static int Main_ParseCommandLine() {
|
||||
return Result_Success;
|
||||
}
|
||||
|
||||
static int Main_SetupParamBlock() {
|
||||
static int Main_SetupParamBlock(void) {
|
||||
PrefPanelsChangedCallback(0);
|
||||
|
||||
if (optsCompiler.outMakefile[0]) {
|
||||
@@ -362,7 +362,7 @@ static int Main_SetupParamBlock() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Main_ResolveProject() {
|
||||
static int Main_ResolveProject(void) {
|
||||
SInt32 startTime;
|
||||
SInt32 endTime;
|
||||
int err;
|
||||
@@ -562,7 +562,7 @@ static int UpdatePrefPanels(const char *name) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int SetupCmdLinePrefPanels() {
|
||||
static int SetupCmdLinePrefPanels(void) {
|
||||
int ret;
|
||||
|
||||
PrefPanelsChangedCallback = UpdatePrefPanels;
|
||||
@@ -578,7 +578,7 @@ static int SetupCmdLinePrefPanels() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int Main_SetupContext() {
|
||||
static int Main_SetupContext(void) {
|
||||
gTarg = Target_New("default", clState.cpu, clState.os, clState.language);
|
||||
Target_Add(&gProj->targets, gTarg);
|
||||
|
||||
@@ -622,7 +622,7 @@ static int Main_SetupContext() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int Main_Driver() {
|
||||
int Main_Driver(void) {
|
||||
volatile int result;
|
||||
|
||||
result = setjmp(exit_program);
|
||||
|
||||
@@ -78,11 +78,11 @@ int PrefPanel_PutHandle(PrefPanel *panel, Handle data) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
void Prefs_Initialize() {
|
||||
void Prefs_Initialize(void) {
|
||||
panellist = NULL;
|
||||
}
|
||||
|
||||
void Prefs_Terminate() {
|
||||
void Prefs_Terminate(void) {
|
||||
PrefPanel *scan;
|
||||
PrefPanel *next;
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ static int SetupLinkerCommandLine(SInt32 dropinflags, File *file, CWCommandLineA
|
||||
return 1;
|
||||
}
|
||||
|
||||
int SetupTemporaries() {
|
||||
int SetupTemporaries(void) {
|
||||
SInt32 idx;
|
||||
File *file;
|
||||
|
||||
@@ -117,7 +117,7 @@ int SetupTemporaries() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int DeleteTemporaries() {
|
||||
int DeleteTemporaries(void) {
|
||||
SInt32 idx;
|
||||
File *file;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ int CmdLine_Initialize(int argc, char **argv, const char *builddate, const char
|
||||
return Main_Initialize(argc, argv);
|
||||
}
|
||||
|
||||
int CmdLine_Driver() {
|
||||
int CmdLine_Driver(void) {
|
||||
return Main_Driver();
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ static void catchinterrupt() {
|
||||
clState.userBreak = 1;
|
||||
}
|
||||
|
||||
static void SetupConsoleInfo() {
|
||||
static void SetupConsoleInfo(void) {
|
||||
struct winsize ws;
|
||||
struct stat st;
|
||||
|
||||
@@ -57,11 +57,11 @@ static void Crash() {
|
||||
*((unsigned char *) NULL) = 0;
|
||||
}
|
||||
|
||||
void SetupDebuggingTraps() {
|
||||
void SetupDebuggingTraps(void) {
|
||||
signal(SIGABRT, Crash);
|
||||
}
|
||||
|
||||
Boolean IO_Initialize() {
|
||||
Boolean IO_Initialize(void) {
|
||||
ioPiping = 0;
|
||||
ioInHelp = 0;
|
||||
ioLineNum = 0;
|
||||
@@ -79,19 +79,19 @@ Boolean IO_Initialize() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Boolean IO_Terminate() {
|
||||
Boolean IO_Terminate(void) {
|
||||
if (ioInHelp)
|
||||
IO_HelpTerminate();
|
||||
TermWorking();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Boolean IO_HelpInitialize() {
|
||||
Boolean IO_HelpInitialize(void) {
|
||||
ioInHelp = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Boolean IO_HelpTerminate() {
|
||||
Boolean IO_HelpTerminate(void) {
|
||||
ioInHelp = 0;
|
||||
return 1;
|
||||
}
|
||||
@@ -229,13 +229,13 @@ Boolean AppendHandleToFile(OSSpec *spec, Handle text, UInt32 size, CWDataType ma
|
||||
return 1;
|
||||
}
|
||||
|
||||
void InitWorking() {
|
||||
void InitWorking(void) {
|
||||
}
|
||||
|
||||
void ShowWorking(int x) {
|
||||
}
|
||||
|
||||
void TermWorking() {
|
||||
void TermWorking(void) {
|
||||
}
|
||||
|
||||
static void ProgressFunction(const char *functionname) {
|
||||
@@ -243,7 +243,7 @@ static void ProgressFunction(const char *functionname) {
|
||||
CLReport(7, functionname);
|
||||
}
|
||||
|
||||
Boolean CheckForUserBreak() {
|
||||
Boolean CheckForUserBreak(void) {
|
||||
ShowWorking(4);
|
||||
return clState.userBreak;
|
||||
}
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
static OSErr memErr;
|
||||
|
||||
UInt32 LMGetTicks() {
|
||||
UInt32 LMGetTicks(void) {
|
||||
return (OS_GetMilliseconds() * 60) / 1000;
|
||||
}
|
||||
|
||||
UInt32 LMGetTime() {
|
||||
UInt32 LMGetTime(void) {
|
||||
return OS_GetMilliseconds() / 1000;
|
||||
}
|
||||
|
||||
OSErr LMGetMemErr() {
|
||||
OSErr LMGetMemErr(void) {
|
||||
return memErr;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ void OS_DestroyMacHandle(Handle h, OSHandle *ret) {
|
||||
free(h);
|
||||
}
|
||||
|
||||
OSErr MemError() {
|
||||
OSErr MemError(void) {
|
||||
return memError;
|
||||
}
|
||||
|
||||
@@ -257,10 +257,10 @@ void DebugStr(ConstStringPtr str) {
|
||||
fprintf(stderr, "%*.*s", str[0], str[0], &str[1]);
|
||||
}
|
||||
|
||||
struct Zone *HandleZone() {
|
||||
return 0;
|
||||
struct Zone *HandleZone(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct Zone *ApplicationZone() {
|
||||
return 0;
|
||||
struct Zone *ApplicationZone(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ typedef struct {
|
||||
|
||||
static Res rlist[16];
|
||||
|
||||
void Res_Initialize() {
|
||||
void Res_Initialize(void) {
|
||||
memset(rlist, 0, sizeof(rlist));
|
||||
}
|
||||
|
||||
@@ -64,5 +64,5 @@ const char *Res_GetResource(SInt16 rsrcid, SInt16 index) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Res_Cleanup() {
|
||||
void Res_Cleanup(void) {
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ static Boolean UseResourceForkInfo;
|
||||
// Forward declarations
|
||||
static void ReadResourceFork(SInt16 ref, SInt8 permission, void *file_data, SInt32 file_size);
|
||||
|
||||
Boolean OS_UsingMacResourceForkInfo() {
|
||||
Boolean OS_UsingMacResourceForkInfo(void) {
|
||||
return UseResourceForkInfo;
|
||||
}
|
||||
|
||||
@@ -1186,7 +1186,7 @@ OSErr HOpenRF(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8 permi
|
||||
}
|
||||
}
|
||||
|
||||
OSErr InitResources() {
|
||||
OSErr InitResources(void) {
|
||||
MemRsrcMap *map;
|
||||
|
||||
map = maplist;
|
||||
@@ -1201,7 +1201,7 @@ OSErr InitResources() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
OSErr ResError() {
|
||||
OSErr ResError(void) {
|
||||
return resError;
|
||||
}
|
||||
|
||||
@@ -1289,7 +1289,7 @@ OSErr HOpenResFile(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8
|
||||
return FSpOpenResFile(&fss, permission);
|
||||
}
|
||||
|
||||
SInt16 CurResFile() {
|
||||
SInt16 CurResFile(void) {
|
||||
return cur_res_file;
|
||||
}
|
||||
|
||||
@@ -1570,7 +1570,7 @@ Handle Get1IndResource(OSType theType, SInt16 index) {
|
||||
}
|
||||
}
|
||||
|
||||
SInt16 Count1Types() {
|
||||
SInt16 Count1Types(void) {
|
||||
MemRsrcMap *rm;
|
||||
MemRsrcTypeList *rtl;
|
||||
SInt16 count;
|
||||
@@ -1667,6 +1667,6 @@ SInt16 GetResFileAttrs(SInt16) {
|
||||
}
|
||||
}
|
||||
|
||||
Boolean LMGetResLoad() {
|
||||
Boolean LMGetResLoad(void) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ SInt16 CharacterByteType(Ptr textBuf, SInt16 textOffset, ScriptCode script) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
SInt16 CharByte() {
|
||||
SInt16 CharByte(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ int OS_InitProgram(int *pArgc, char ***pArgv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int OS_TermProgram() {
|
||||
int OS_TermProgram(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -767,7 +767,7 @@ int OS_CloseDir(OSOpenedDir *ref) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
UInt32 OS_GetMilliseconds() {
|
||||
UInt32 OS_GetMilliseconds(void) {
|
||||
struct tms tms;
|
||||
return times(&tms) * 1000 / CLOCKS_PER_SEC;
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@ static ToolVersionInfo toolVersionInfo;
|
||||
static VersionInfo toolVersion;
|
||||
static Boolean useToolVersion;
|
||||
|
||||
static void GetToolVersionInfo() {
|
||||
static void GetToolVersionInfo(void) {
|
||||
useToolVersion = 0;
|
||||
}
|
||||
|
||||
const ToolVersionInfo *Plugin_GetToolVersionInfo() {
|
||||
const ToolVersionInfo *Plugin_GetToolVersionInfo(void) {
|
||||
return useToolVersion ? &toolVersionInfo : 0;
|
||||
}
|
||||
|
||||
@@ -480,12 +480,12 @@ Boolean Plugin_VerifyPanels(Plugin *pl) {
|
||||
}
|
||||
}
|
||||
|
||||
void Plugins_Init() {
|
||||
void Plugins_Init(void) {
|
||||
pluginlist = NULL;
|
||||
GetToolVersionInfo();
|
||||
}
|
||||
|
||||
void Plugins_Term() {
|
||||
void Plugins_Term(void) {
|
||||
Plugin *scan;
|
||||
Plugin *next;
|
||||
|
||||
|
||||
@@ -451,7 +451,7 @@ int Frameworks_AddFramework(const char *name, const char *version, Boolean hidde
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Framework_GetEnvInfo() {
|
||||
void Framework_GetEnvInfo(void) {
|
||||
char path[256];
|
||||
char *env;
|
||||
char *ptr;
|
||||
@@ -513,7 +513,7 @@ void Framework_GetEnvInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
int Frameworks_GetCount() {
|
||||
int Frameworks_GetCount(void) {
|
||||
return FrameworkInfo.fwsCount;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "cmdline.h"
|
||||
|
||||
File *File_New() {
|
||||
File *File_New(void) {
|
||||
File *file;
|
||||
file = xmalloc(NULL, sizeof(File));
|
||||
if (!file) {
|
||||
|
||||
Reference in New Issue
Block a user