Exemple #1
0
ReadLiner *
ReadLine_New ( int32 type )
{
    ReadLiner * rl = ( ReadLiner * ) _Mem_Allocate ( sizeof (ReadLiner ), type ) ;
    rl->TabCompletionInfo0 = TabCompletionInfo_New ( type ) ;
    rl->TciNamespaceStack = Stack_New ( 64, SESSION ) ;
    //rl->TciDownStack = Stack_New ( 32, SESSION ) ;
    ReadLine_Init ( rl, _CfrTil_GetC, type ) ;
    return rl ;
}
Exemple #2
0
void
_ReadLine_Copy ( ReadLiner * rl, ReadLiner * rl0, int32 type )
{
    memcpy ( rl, rl0, sizeof (ReadLiner ) ) ;
    rl->TabCompletionInfo0 = TabCompletionInfo_New ( type ) ;
    rl->TciNamespaceStack = Stack_New ( 64, SESSION ) ;
    //rl->TciDownStack = Stack_New ( 32, SESSION ) ;
    ReadLine_Init ( rl, rl0->Key, type ) ; //_CfrTil_GetC ) ;
    strcpy ( rl->InputLine, rl0->InputLine ) ;
    rl->InputStringOriginal = rl0->InputStringOriginal ;
    rl->State = rl0->State ;
}
Exemple #3
0
void
ReadTable_Zero ( ReadLiner * rl ) // eof
{
    if ( _Q_->OVT_LC && GetState ( _Q_->OVT_LC, LC_REPL ) )
    {
        ReadLine_Init ( _Context_->ReadLiner0, _CfrTil_GetC, SESSION ) ;
    }
    else
    {
        _ReadLine_NullDelimitInputBuffer ( rl ) ;
        ReadLiner_Done ( rl ) ;
        SetState ( rl, END_OF_STRING, true ) ;
    }
}