static void GetInitCmd( int pass ) { char cmd[CMD_LEN]; WantEquals(); SkipSpaces(); GetRawItem( cmd ); if( pass == 2 ) { _Free( InitCmdList ); _Alloc( InitCmdList, strlen( cmd ) + 1 ); StrCopy( cmd, InitCmdList ); } }
static void GetTrapParm( int pass ) { char *start; char parm[TRP_LEN]; start = parm; SkipSpaces(); *start++ = TRAP_PARM_SEPARATOR; GetRawItem( start ); if( pass == 2 ) { _Alloc( start, strlen( parm ) + strlen( TrapParms ) + 1 ); StrCopy( parm, StrCopy( TrapParms, start ) ); _Free( TrapParms ); TrapParms = start; } }
static void GetTrapParm( int pass ) { char *start; char parm[TRP_LEN]; start = parm; SkipSpaces(); *start++ = ';'; GetRawItem( start ); if( pass == 2 ) { _Alloc( start, strlen( parm ) + strlen( TrpFile ) + 1 ); StrCopy( parm, StrCopy( TrpFile, start ) ); _Free( TrpFile ); TrpFile = start; } }
bool ScreenOption( const char *start, unsigned len, int pass ) { char *p; switch( Lookup( SysOptNameTab, start, len ) ) { case OPT_CONSOLE: _Free( DbgTerminal ); DbgTerminal = GetFileName( pass ); break; case OPT_XCONFIG: WantEquals(); p = XConfig + strlen( XConfig ); *p++ = ' '; GetRawItem( p ); if( pass == 1 ) XConfig[0] = NULLCHAR; break; default: return( false ); } return( true ); }