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"
#include "call.h"
struct psi_set_stmt *psi_set_stmt_init(struct psi_set_exp *exp)
{
- struct psi_set_stmt *set = calloc(1, sizeof(*set));
+ struct psi_set_stmt *set = pecalloc(1, sizeof(*set), 1);
set->exp = exp;
return set;
}
}
}
-void psi_set_stmt_dump(int fd, struct psi_set_stmt *set)
+void psi_set_stmt_dump(struct psi_dump *dump, struct psi_set_stmt *set)
{
- dprintf(fd, "\tset ");
- psi_set_exp_dump(fd, set->exp, 1, 1);
- dprintf(fd, ";\n");
+ PSI_DUMP(dump, "\tset ");
+ psi_set_exp_dump(dump, set->exp, 1, 1);
+ PSI_DUMP(dump, ";\n");
}