ftepp.cpp
/* Like in parser.c - files keep the previous state so we have one global
 * preprocessor. Except here we will want to warn about dangling #ifs.
 */
Like in parser.c - files keep the previous state so we have one global
preprocessor. Except here we will want to warn about dangling #ifs.
Like in parser . c - files keep the previous state so we have one global preprocessor . Except here we will want to warn about dangling #ifs .
static bool ftepp_preprocess_done(ftepp_t *ftepp)
{
    bool retval = true;
    if (vec_size(ftepp->conditions)) {
        if (ftepp_warn(ftepp, WARN_MULTIFILE_IF, "#if spanning multiple files, is this intended?"))
            retval = false;
    }
    lex_close(ftepp->lex);
    ftepp->lex = nullptr;
    if (ftepp->itemname) {
        mem_d(ftepp->itemname);
        ftepp->itemname = nullptr;
    }
    return retval;
}
static bool ftepp_preprocess_done ( ftepp_t * ftepp ) { bool retval = true ; if ( vec_size ( ftepp -> conditions ) ) { if ( ftepp_warn ( ftepp , WARN_MULTIFILE_IF , " " ) ) retval = false ; } lex_close ( ftepp -> lex ) ; ftepp -> lex = nullptr ; if ( ftepp -> itemname ) { mem_d ( ftepp -> itemname ) ; ftepp -> itemname = nullptr ; } return retval ; }
Like in parser.c - files keep the previous state so we have one global
 preprocessor.
Like in parser . c - files keep the previous state so we have one global preprocessor .