engine/source/preprocessorlib/pp_parser.c
/**
 * Initializes a preprocessor parser (pp_parser) object.
 * @param self the object
 * @param ctx the shared context used by this parser
 * @param filename the name of the file to parse
 * @param sourceCode the source code to parse, in string form
 */
Initializes a preprocessor parser (pp_parser) object.
@param self the object
@param ctx the shared context used by this parser
@param filename the name of the file to parse
@param sourceCode the source code to parse, in string form
Initializes a preprocessor parser ( pp_parser ) object . @param self the object @param ctx the shared context used by this parser @param filename the name of the file to parse @param sourceCode the source code to parse in string form
void pp_parser_init(pp_parser *self, pp_context *ctx, const char *filename, char *sourceCode, TEXTPOS initialPosition)
{
    pp_lexer_Init(&self->lexer, sourceCode, initialPosition);
    self->ctx = ctx;
    self->filename = filename;
    self->sourceCode = sourceCode;
    self->type = PP_ROOT;
    self->freeFilename = false;
    self->freeSourceCode = false;
    self->parent = NULL;
    self->child = NULL;
    self->numParams = 0;
    self->params = NULL;
    self->macroName = NULL;
    self->newline = true;
    self->overread = false;
}
void pp_parser_init ( pp_parser * self , pp_context * ctx , const char * filename , char * sourceCode , TEXTPOS initialPosition ) { pp_lexer_Init ( & self -> lexer , sourceCode , initialPosition ) ; self -> ctx = ctx ; self -> filename = filename ; self -> sourceCode = sourceCode ; self -> type = PP_ROOT ; self -> freeFilename = false ; self -> freeSourceCode = false ; self -> parent = NULL ; self -> child = NULL ; self -> numParams = 0 ; self -> params = NULL ; self -> macroName = NULL ; self -> newline = true ; self -> overread = false ; }
Initializes a preprocessor parser (pp_parser) object.
Initializes a preprocessor parser ( pp_parser ) object .