Does anybody know why the starter code for CodeWarrior contains a PilotMain
that just passes all of its arguments to StarterPalmMain, instead of just
putting the startup code in PilotMain and dispensing with StarterPalmMain?

Starter.c has:

UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags )
{
    return StarterPalmMain(cmd, cmdPBP, launchFlags);
}
static UInt32 StarterPalmMain( UInt16 cmd, MemPtr /*cmdPBP*/, UInt16
launchFlags )
{
    // startup code goes here
}

Why not just have:

UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags )
{
    // startup code goes here
}

Also, why is cmdPBP commented out of the declaration for StarterPalmMain?

Richard Burmeister
[EMAIL PROTECTED]



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to