mirror of https://git.wuffs.org/MWCC
more fixing
This commit is contained in:
parent
54bb1363a2
commit
3a6db389b2
|
@ -161,7 +161,7 @@ const OSFileTypeMappingList *Plugin_GetFileTypeMappingList(Plugin *pl) {
|
|||
}
|
||||
|
||||
const CWObjectFlags *Plugin_CL_GetObjectFlags(Plugin *pl) {
|
||||
static CWObjectFlags fake = {
|
||||
static const CWObjectFlags fake = {
|
||||
2, 0,
|
||||
"", "", "", "", "", "",
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
|
|
|
@ -75,7 +75,7 @@ static int MidParse() {
|
|||
pCmdLine.state = OptsCmdLineState_2;
|
||||
|
||||
if (parseopts.possibleFiles > 0 && useDefaultIncludes) {
|
||||
if ((env = GetEnvVar("MWCMachPPCIncludes", 1, &match))) {
|
||||
if ((env = GetEnvVar("MWCMachPPCIncludes\0MWCIncludes\0", 1, &match))) {
|
||||
// FIXME can probably get rid of this cast later
|
||||
if (!AddAccessPathList(env, ':', ',', 1, (char *) match, 1, -1, 0))
|
||||
return 0;
|
||||
|
|
|
@ -8,7 +8,7 @@ CWPLUGIN_ENTRY (PPCLibImport_GetDropInFlags)(const DropInFlags **flags, SInt32 *
|
|||
kCurrentDropInFlagsVersion,
|
||||
CWDROPINCOMPILERTYPE,
|
||||
DROPINCOMPILERLINKERAPIVERSION_8,
|
||||
kGeneratescode | kCanpreprocess | kCanprecompile | kCompAllowDupFileNames | kCompMultiTargAware,
|
||||
kGeneratescode | kCompAllowDupFileNames | kCompMultiTargAware,
|
||||
Lang_MISC,
|
||||
DROPINCOMPILERLINKERAPIVERSION_12
|
||||
};
|
||||
|
|
|
@ -1217,7 +1217,7 @@ Boolean CodeGen_ReInitRuntimeObjects(Boolean is_precompiler) {
|
|||
rt_cvt_dbl_usll->name = GetHashNameNodeExport("__cvt_dbl_usll");
|
||||
|
||||
CMach_ReInitRuntimeObjects();
|
||||
Intrinsics_ReInitRuntimeObjects(is_precompiler);
|
||||
return Intrinsics_ReInitRuntimeObjects(is_precompiler);
|
||||
}
|
||||
|
||||
Boolean CodeGen_IsPublicRuntimeObject(Object *obj) {
|
||||
|
|
|
@ -82,13 +82,12 @@ int Args_StackSize(void) {
|
|||
|
||||
void Args_Push(short flags, void *first, void *second) {
|
||||
OS_ASSERT(104, oStackPtr<MAXSTACK);
|
||||
if (oStackPtr > 0)
|
||||
{
|
||||
if (oStackPtr > 0) {
|
||||
short prev =
|
||||
(flags & ARGFLAG_1) ? ARGFLAG_2 :
|
||||
(flags & ARGFLAG_2) ? ARGFLAG_1 :
|
||||
(flags & ARGFLAG_4) ? ARGFLAG_2 : -1;
|
||||
OPTION_ASSERT(oStack[oStackPtr-1].flags & prev);
|
||||
OS_ASSERT(111, oStack[oStackPtr-1].flags & prev);
|
||||
}
|
||||
|
||||
oStack[oStackPtr].e.v.first = first;
|
||||
|
@ -97,11 +96,10 @@ void Args_Push(short flags, void *first, void *second) {
|
|||
oStackPtr++;
|
||||
}
|
||||
|
||||
Opt48 *Args_Pop(short flags)
|
||||
{
|
||||
OPTION_ASSERT(oStackPtr>0);
|
||||
Opt48 *Args_Pop(short flags) {
|
||||
OS_ASSERT(122, oStackPtr>0);
|
||||
--oStackPtr;
|
||||
OPTION_ASSERT(oStack[oStackPtr].flags & flags);
|
||||
OS_ASSERT(124, oStack[oStackPtr].flags & flags);
|
||||
return &oStack[oStackPtr];
|
||||
}
|
||||
|
||||
|
@ -374,7 +372,13 @@ static Boolean Option_ContinuesThisLevel(int level, ArgToken *tok) {
|
|||
}
|
||||
}
|
||||
|
||||
static short endingStack[5][3];
|
||||
static short endingStack[5][3] = {
|
||||
ATK_END, ATK_END, ATK_END,
|
||||
ATK_ARG_END, ATK_COMMA, ATK_OPTION,
|
||||
ATK_COMMA, ATK_END, ATK_END,
|
||||
ATK_EQUALS, ATK_END, ATK_END,
|
||||
ATK_END, ATK_END, ATK_END
|
||||
};
|
||||
static Boolean Option_IsEndingThisLevel(int level, ArgToken *tok) {
|
||||
ArgToken *tmp;
|
||||
|
||||
|
|
Loading…
Reference in New Issue