X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcpp.c;h=0f048b4209d0cfd01c554a1d61e9feffe098af30;hp=05efac150ebaed144a05750338f6b49119e2b7e9;hb=09529efcde471127419e141807b83b37077003a0;hpb=c0873cbbe9e5a83305adbc2bbd94aede5437f33d diff --git a/src/cpp.c b/src/cpp.c index 05efac1..0f048b4 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -43,6 +43,9 @@ PHP_MINIT_FUNCTION(psi_cpp) struct psi_parser parser; struct psi_parser_input *predef; + PSI_G(search_path) = pemalloc(strlen(PSI_G(directory)) + strlen(psi_cpp_search) + 1 + 1, 1); + sprintf(PSI_G(search_path), "%s:%s", PSI_G(directory), psi_cpp_search); + if (!psi_parser_init(&parser, NULL, 0)) { return FAILURE; }