Exemplo n.º 1
0
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 );
    }
}
Exemplo n.º 2
0
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;
    }
}
Exemplo n.º 3
0
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;
    }
}
Exemplo n.º 4
0
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 );
}