X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.c;h=9475ff9bf029f65eed38221be97ad4e150dc34a8;hp=e747ed269babd32eb53b8da7d949b30700c76f40;hb=a0f437f26cd0f121ee911a55327a68a3544bf15f;hpb=a7ac1c0a3c855321f21682c127a4b707de33a303 diff --git a/src/parser.c b/src/parser.c index e747ed2..9475ff9 100644 --- a/src/parser.c +++ b/src/parser.c @@ -145,7 +145,7 @@ static inline zend_string *macro_to_constant(struct psi_parser *parser, size_t i = 0; struct psi_token *tok; - smart_str_append_printf(&str, "\nconst psi\\%s = ", name->val); + smart_str_append_printf(&str, "const psi\\%s = ", name->val); if (scope->macro->exp) { impl_val res = {0}; token_t typ = psi_num_exp_exec(scope->macro->exp, &res, NULL, scope->cpp); @@ -179,7 +179,7 @@ void psi_parser_postprocess(struct psi_parser *P) scope.cpp = P->preproc; flags = P->flags; - //P->flags |= PSI_SILENT; + P->flags |= PSI_SILENT; ZEND_HASH_FOREACH_STR_KEY_PTR(&P->preproc->defs, name, scope.macro) {