projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
administrativa
[m6w6/ext-psi]
/
src
/
cpp.c
diff --git
a/src/cpp.c
b/src/cpp.c
index 05efac150ebaed144a05750338f6b49119e2b7e9..0f048b4209d0cfd01c554a1d61e9feffe098af30 100644
(file)
--- 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;
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;
}
if (!psi_parser_init(&parser, NULL, 0)) {
return FAILURE;
}