update readme
[m6w6/ext-psi] / src / types / free_stmt.c
index 526f22d7826adebb48cdb638b4f397a6539d897a..de2676220897e94dcaca462fa8d9fcaaaf26e27a 100644 (file)
  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_free_stmt *psi_free_stmt_init(struct psi_plist *exps)
@@ -45,19 +49,19 @@ void psi_free_stmt_free(struct psi_free_stmt **f_ptr)
        }
 }
 
-void psi_free_stmt_dump(int fd, struct psi_free_stmt *fre)
+void psi_free_stmt_dump(struct psi_dump *dump, struct psi_free_stmt *fre)
 {
        size_t i;
        struct psi_free_exp *exp;
 
-       dprintf(fd, "\tfree ");
+       PSI_DUMP(dump, "\tfree ");
        for (i = 0; psi_plist_get(fre->exps, i, &exp); ++i) {
                if (i) {
-                       dprintf(fd, ", ");
+                       PSI_DUMP(dump, ", ");
                }
-               psi_free_exp_dump(fd, exp);
+               psi_free_exp_dump(dump, exp);
        }
-       dprintf(fd, ";\n");
+       PSI_DUMP(dump, ";\n");
 }
 
 bool psi_free_stmts_validate(struct psi_data *data, struct psi_validate_scope *scope)