X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=src%2Fparser.c;h=434554ee584d7923039c07b10fc35d8cf665ef44;hb=b1d875d13e5a8f7600d3df6b44c75e8613cfe509;hp=947eea7bb21a29334657c60b1e366fb72c323009;hpb=ba906e039ffe9e57842ce5135aa43efa00b8a4c6;p=m6w6%2Fext-psi diff --git a/src/parser.c b/src/parser.c index 947eea7..434554e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.16 on Tue Mar 28 16:36:22 2017 */ +/* Generated by re2c 0.16 on Tue Mar 28 19:45:29 2017 */ #line 1 "src/parser.re" /******************************************************************************* Copyright (c) 2016, Michael Wallner . @@ -183,10 +183,10 @@ static void psi_parser_register_constants(struct psi_parser *P) } #endif -struct psi_plist *psi_parser_preprocess(struct psi_parser *P, struct psi_plist *tokens) +struct psi_plist *psi_parser_preprocess(struct psi_parser *P, struct psi_plist **tokens) { - if (psi_cpp_process(P->preproc, &tokens)) { - return tokens; + if (psi_cpp_process(P->preproc, tokens)) { + return *tokens; } return NULL; } @@ -208,7 +208,7 @@ bool psi_parser_parse(struct psi_parser *P, struct psi_parser_input *I) return false; } - if (!(preproc = psi_parser_preprocess(P, scanned))) { + if (!(preproc = psi_parser_preprocess(P, &scanned))) { psi_plist_free(scanned); return false; }