Example #1
0
void
ReadTable_EOF ( ReadLiner * rl ) // eof
{

    _ReadLine_AppendCharacter_Actual ( rl ) ;
    ReadLiner_Done ( rl ) ;
    SetState ( rl, END_OF_FILE, true ) ;
}
Example #2
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 ) ;
    }
}
Example #3
0
void
ReadTable_Newline ( ReadLiner * rl ) // '\n'
{
    if ( GetState ( _Context_->System0, ADD_READLINE_TO_HISTORY ) || GetState ( rl, ADD_TO_HISTORY ) )
    {
        _OpenVmTil_AddStringToHistoryList ( rl->InputLine ) ;
    }
    rl->LineNumber ++ ;
    //if ( ! GetState ( _Debugger_, DBG_COMMAND_LINE ) )
    {
        _ReadLine_AppendCharacter_Actual ( rl ) ;
        ReadLine_ShowCharacter ( rl ) ;
    }
    ReadLiner_Done ( rl ) ;
}
Example #4
0
void
ReadLiner_CommentToEndOfLine ( ReadLiner * rl )
{
    rl->ReadIndex = BUFFER_SIZE ; // cf. _ReadLine_GetNextChar
    ReadLiner_Done ( rl ) ;
}