projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix warning
[m6w6/ext-psi]
/
src
/
context.c
diff --git
a/src/context.c
b/src/context.c
index 449f98eef5699101aad1d4bb80eaadc52e612989..abe1ff64c79ade60197d11f26d34c2b462976f8f 100644
(file)
--- a/
src/context.c
+++ b/
src/context.c
@@
-168,8
+168,7
@@
zend_function_entry *psi_context_compile(struct psi_context *C)
{
zend_constant zc;
{
zend_constant zc;
- zc.flags = CONST_PERSISTENT|CONST_CS;
- zc.module_number = EG(current_module)->module_number;
+ ZEND_CONSTANT_SET_FLAGS(&zc, CONST_CS|CONST_PERSISTENT, EG(current_module)->module_number);
if (C->consts) {
size_t i = 0;
if (C->consts) {
size_t i = 0;
@@
-325,7
+324,6
@@
void psi_context_free(struct psi_context **C)
void psi_context_dump(struct psi_context *C, int fd)
{
size_t i;
void psi_context_dump(struct psi_context *C, int fd)
{
size_t i;
- struct psi_data *D;
dprintf(fd, "// psi.engine=%s\n// %lu files\n",
(char *) C->ops->query(C, PSI_CONTEXT_QUERY_SELF, NULL),
dprintf(fd, "// psi.engine=%s\n// %lu files\n",
(char *) C->ops->query(C, PSI_CONTEXT_QUERY_SELF, NULL),