projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
build administrativa
[m6w6/ext-psi]
/
src
/
types
/
const.c
diff --git
a/src/types/const.c
b/src/types/const.c
index b839d5f701897aa952fd2e7b6a24585942e63b05..6d44d7741602d304cb1ab90ba71d3bbfc197fdb6 100644
(file)
--- a/
src/types/const.c
+++ b/
src/types/const.c
@@
-23,7
+23,11
@@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
-#include "php_psi_stdinc.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "php_config.h"
+#endif
#include "data.h"
struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name,
#include "data.h"
struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name,
@@
-55,15
+59,15
@@
void psi_const_free(struct psi_const **constant_ptr)
}
}
}
}
-void psi_const_dump(
int fd
, struct psi_const *cnst)
+void psi_const_dump(
struct psi_dump *dump
, struct psi_const *cnst)
{
{
-
dprintf(fd
, "const ");
+
PSI_DUMP(dump
, "const ");
if (cnst->type) {
if (cnst->type) {
- psi_impl_type_dump(
fd
, cnst->type);
+ psi_impl_type_dump(
dump
, cnst->type);
}
}
-
dprintf(fd
, " %s = ", cnst->name->val);
- psi_impl_def_val_dump(
fd
, cnst->val);
-
dprintf(fd
, ";");
+
PSI_DUMP(dump
, " %s = ", cnst->name->val);
+ psi_impl_def_val_dump(
dump
, cnst->val);
+
PSI_DUMP(dump
, ";");
}
bool psi_const_validate(struct psi_data *data, struct psi_const *c,
}
bool psi_const_validate(struct psi_data *data, struct psi_const *c,