trap_version TRAPENTRY TrapInit( const char *parms, char *error, bool remote ) { trap_version ver; remote = remote; ver.remote = false; ver.major = TRAP_MAJOR_VERSION; ver.minor = TRAP_MINOR_VERSION; if( !remote && DPMIVersion() == 90 && !DOSEMUCheck() ) { strcpy( error, TRP_ERR_bad_dpmi ); return( ver ); } _DBG_EnterFunc( "TrapInit()" ); InitPSP(); LoadError = NULL; error[0] = '\0'; strcpy( LinkParms, parms ); // save trap parameters TaskLoaded = false; _DBG_ExitFunc( "TrapInit()" ); return( ver ); }
trap_version TRAPENTRY TrapInit( char *parm, char *error, bool remote ) #pragma on(unreferenced); { trap_version ver; extern void InitPSP( void ); ver.remote = FALSE; ver.major = TRAP_MAJOR_VERSION; ver.minor = TRAP_MINOR_VERSION; if( !remote && DPMIVersion() == 90 && !DOSEMUCheck() ) { strcpy( error, TRP_ERR_bad_dpmi ); return( ver ); } _DBG_EnterFunc( "TrapInit()" ); InitPSP(); LoadError = NULL; error[0] = '\0'; strcpy( LinkParm, parm ); TaskLoaded = FALSE; _DBG_ExitFunc( "TrapInit()" ); return( ver ); }