diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-11 23:26:04 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-11 23:26:04 +0000 |
commit | 54bb1363a26b6a52cf1a8ecf1f16f76e9920956f (patch) | |
tree | 53644f3d0a9b24a10275ba723f6e7e43aee00ec9 /command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp | |
parent | 0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (diff) | |
download | MWCC-54bb1363a26b6a52cf1a8ecf1f16f76e9920956f.tar.gz MWCC-54bb1363a26b6a52cf1a8ecf1f16f76e9920956f.zip |
get it to compile with clang
Diffstat (limited to 'command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp')
-rw-r--r-- | command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp b/command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp index 070bc07..3804b93 100644 --- a/command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp +++ b/command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp @@ -52,10 +52,8 @@ CWResult UCBStoreObjectData(CWPluginContext context, SInt32 whichfile, CWObjectD UCBSecretAttachHandle(context, objecthand, &object->objectdata); UCBSecretAttachHandle(context, browsehand, &object->browsedata); } else { - if (filedata->outfileowner && filedata->outfileowner != CmdLineStageMask_Cg) { -#line 240 - DO_INTERNAL_ERROR("Cannot store object file spec for '%s'\n", filedata->srcfilename); - } + if (filedata->outfileowner && filedata->outfileowner != CmdLineStageMask_Cg) + DO_INTERNAL_ERROR(240, "Cannot store object file spec for '%s'\n", filedata->srcfilename); OS_FSSpec_To_OSSpec(object->objectfile, &filedata->outfss); filedata->wroteToDisk |= CmdLineStageMask_Cg; } @@ -134,8 +132,7 @@ CWResult UCBBeginSubCompile(CWPluginContext context, SInt32 whichfile, CWPluginC if (optsCmdLine.verbose > 3) CLPrint("Callback: %s\n", "UCBBeginSubCompile"); -#line 372 - DO_INTERNAL_ERROR("UCBBeginSubCompile not implemented"); + DO_INTERNAL_ERROR(372, "UCBBeginSubCompile not implemented"); return cwErrRequestFailed; } @@ -143,8 +140,7 @@ CWResult UCBEndSubCompile(CWPluginContext subContext) { if (optsCmdLine.verbose > 3) CLPrint("Callback: %s\n", "UCBEndSubCompile"); -#line 384 - DO_INTERNAL_ERROR("UCBEndSubCompile not implemented"); + DO_INTERNAL_ERROR(384, "UCBEndSubCompile not implemented"); return cwErrRequestFailed; } @@ -165,8 +161,7 @@ CWResult UCBGetPrecompiledHeaderSpec(CWPluginContext context, CWFileSpec *pchspe return cwErrInvalidCallback; file = Files_GetFile(&gTarg->files, c->whichfile); -#line 420 - OPTION_ASSERT(file != NULL); + OS_ASSERT(420, file != NULL); cof = Plugin_CL_GetObjectFlags(file->compiler); if (!file->outfilename[0]) { @@ -222,8 +217,7 @@ CWResult UCBGetResourceFile(CWPluginContext context, CWFileSpec *filespec) { if (optsCmdLine.verbose > 3) CLPrint("Callback: %s\n", "UCBGetResourceFile"); -#line 514 - DO_INTERNAL_ERROR("UCBGetResourceFile not implemented"); + DO_INTERNAL_ERROR(514, "UCBGetResourceFile not implemented"); return cwErrRequestFailed; } @@ -231,8 +225,7 @@ CWResult UCBPutResourceFile(CWPluginContext context, const char *prompt, const c if (optsCmdLine.verbose > 3) CLPrint("Callback: %s\n", "UCBPutResourceFile"); -#line 529 - DO_INTERNAL_ERROR("UCBPutResourceFile not implemented"); + DO_INTERNAL_ERROR(529, "UCBPutResourceFile not implemented"); return cwErrRequestFailed; } @@ -270,8 +263,7 @@ CWResult UCBLookUpUnit(CWPluginContext context, const char *name, Boolean isdepe return cwErrInvalidCallback; srcfile = Files_GetFile(&gTarg->files, c->whichfile); -#line 591 - OPTION_ASSERT(srcfile != NULL); + OS_ASSERT(591, srcfile != NULL); *unitdata = NULL; *unitdatalength = 0; @@ -403,8 +395,7 @@ CWResult UCBStoreUnit(CWPluginContext context, const char *inunitname, CWMemHand return cwErrInvalidCallback; srcfile = Files_GetFile(&gTarg->files, c->whichfile); -#line 791 - OPTION_ASSERT(srcfile != NULL); + OS_ASSERT(791, srcfile != NULL); if (optsCompiler.sbmPath[0]) { err = OS_MakeSpecWithPath(&clState.sbmPathSpec, unitname, 1, &sbmspec); @@ -510,8 +501,7 @@ CWResult UCBGetModifiedFiles(CWPluginContext context, SInt32 *modifiedFileCount, CLPrint("Callback: %s\n", "UCBGetModifiedFiles"); *modifiedFileCount = 0; -#line 949 - DO_INTERNAL_ERROR("CWGetModifiedFiles not implemented!\n"); + DO_INTERNAL_ERROR(949, "CWGetModifiedFiles not implemented!\n"); return cwNoErr; } @@ -538,8 +528,7 @@ CWResult UCBGetStoredObjectFileSpec(CWPluginContext context, SInt32 whichfile, C if (!(file = Files_GetFile(&gTarg->files, whichfile))) return cwErrUnknownFile; if (file->outfileowner != CmdLineStageMask_Cg) { -#line 993 - DO_INTERNAL_ERROR("Lost stored object file spec for '%s'\n", file->srcfilename); + DO_INTERNAL_ERROR(993, "Lost stored object file spec for '%s'\n", file->srcfilename); return cwErrRequestFailed; } else { OS_OSSpec_To_FSSpec(&file->outfss, fileSpec); |