|
From: <kar...@us...> - 2006-04-05 22:04:00
|
Revision: 1198 Author: karstenw Date: 2006-04-05 15:03:52 -0700 (Wed, 05 Apr 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1198&view=rev Log Message: ----------- parameter unused & name conflict fixes Modified Paths: -------------- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacapps.c Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacasynch.c Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacdouble.c Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacnetwork.c Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacops.c Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacsysevents.c Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacapps.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacapps.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacapps.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -266,12 +266,12 @@ return true if Apple Events are available. */ - long gestaltAppleEventsPresent; + long lGestaltAppleEventsPresent; - if (Gestalt (gestaltAppleEventsAttr, &gestaltAppleEventsPresent) != noErr) + if (Gestalt (gestaltAppleEventsAttr, &lGestaltAppleEventsPresent) != noErr) return (false); - return (gestaltAppleEventsPresent != 0); + return (lGestaltAppleEventsPresent != 0); } /*IAChaveappleevents*/ Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacasynch.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacasynch.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacasynch.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -29,7 +29,7 @@ -static Boolean IACaddreplyhandler (tyAsynchCallback callback, long id) { +static Boolean IACaddreplyhandler (tyAsynchCallback pcallback, long id) { short i; @@ -39,7 +39,7 @@ replyhandlers [i].id = id; - replyhandlers [i].callback = callback; + replyhandlers [i].callback = pcallback; return (true); } @@ -50,7 +50,8 @@ static pascal OSErr IAChandleanswer (AppleEvent *event, AppleEvent *reply, long refcon) { - +#pragma unused(reply, refcon) + long replyid; short i; @@ -88,7 +89,7 @@ } /*IACasynchinitcheck*/ -Boolean IACsendasynch (AppleEvent *event, tyAsynchCallback callback) { +Boolean IACsendasynch (AppleEvent *event, tyAsynchCallback pcallback) { AppleEvent reply; OSErr ec; @@ -100,9 +101,9 @@ if (!IACgetlongattr (event, keyReturnIDAttr, typeLongInteger, &replyid)) return (false); - if (callback != nil) { /*DW 7/30/93*/ + if (pcallback != nil) { /*DW 7/30/93*/ - if (!IACaddreplyhandler (callback, replyid)) + if (!IACaddreplyhandler (pcallback, replyid)) return (false); } Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacdouble.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacdouble.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacdouble.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -197,10 +197,13 @@ ec = AECoercePtr (typeFloat, (Ptr)&val, sizeof (val), typeExtended, &valDesc); if (ec == noErr) + { + // 2006-04-02 kw --- inserted braces for ambiguity warning if ((*list).descriptorType == typeAERecord) ec = AEPutKeyDesc (list, n, &valDesc); else ec = AEPutDesc (list, n, &valDesc); + } IACglobals.errorcode = ec; Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacnetwork.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacnetwork.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacnetwork.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -212,6 +212,7 @@ #else static pascal Boolean string2networkaddress (ConstStr255Param bsadr, TargetID *target) { +#pragma unused(bsadr, target) /* 2004-10-21 aradke: Can't do this on Carbon, give up and return bogus error Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacops.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacops.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacops.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -99,7 +99,8 @@ pascal short IACwaitroutine (EventRecord *ev, long *sleep, RgnHandle *mousergn) { - +#pragma unused(sleep, mousergn) + /* called by the AppleEvent manager during AESend to give the user a chance to break out of a wait loop. Modified: Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacsysevents.c =================================================================== --- Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacsysevents.c 2006-04-05 22:01:22 UTC (rev 1197) +++ Frontier/trunk/FrontierSDK/Toolkits/IACTools/Source/iacsysevents.c 2006-04-05 22:03:52 UTC (rev 1198) @@ -144,6 +144,7 @@ Boolean IACremovesystemhandler (AEEventClass eventclass, AEEventID id, ProcPtr handler) { +#pragma unused(handler) hdlsystemhandler h = hfirstsystemhandler; hdlsystemhandler hprev = nil; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |