Exemple #1
0
int TPpContext::InitScanner()
{
    // Add various atoms needed by the CPP line scanner:
    if (!InitCPP())
        return 0;

    previous_token = '\n';

    return 1;
}
Exemple #2
0
int InitScanner(CPPStruct *cpp)
{
    // Add various atoms needed by the CPP line scanner:
    if (!InitCPP())
        return 0;

    cpp->currentInput = &eof_inputsrc;
    cpp->previous_token = '\n';

    return 1;
} // InitScanner
Exemple #3
0
int InitScanner(CPPStruct *cpp)
{
    // Add various atoms needed by the CPP line scanner:
    if (!InitCPP())
        return 0;

    cpp->mostRecentToken = 0;
    cpp->tokenLoc = &cpp->ltokenLoc;

    cpp->ltokenLoc.file = 0;
    cpp->ltokenLoc.line = 0;

    cpp->currentInput = &eof_inputsrc;
    cpp->previous_token = '\n';
    cpp->pastFirstStatement = 0;

    return 1;
} // InitScanner
Exemple #4
0
int InitScanner(CgStruct *Cg)
{
    // Add various atoms needed by the CPP line scanner:
    if (!InitCPP())
        return 0;

    Cg->mostRecentToken = 0;
    Cg->tokenLoc = &Cg->ltokenLoc;

    Cg->ltokenLoc.file = 0;
    Cg->ltokenLoc.line = 0;
    Cg->errorCount = 0;
    Cg->warningCount = 0;
    Cg->lineCount = 0;
    Cg->AllowSemanticParseErrors = 0;

    Cg->currentInput = &eof_inputsrc;

    return 1;
} // InitScanner