X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fcpp_macro_call.c;h=2764200715628e0d3b8c8e5dedaa3ff0aedcd132;hb=698841dfdd4d70d24e0b7af25ac7100bc2cb26a4;hp=e1277ca9640f9215e212d525a95422f38b2ed193;hpb=a7ac1c0a3c855321f21682c127a4b707de33a303;p=m6w6%2Fext-psi diff --git a/src/types/cpp_macro_call.c b/src/types/cpp_macro_call.c index e1277ca..2764200 100644 --- a/src/types/cpp_macro_call.c +++ b/src/types/cpp_macro_call.c @@ -23,7 +23,11 @@ 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 "cpp.h" #include "data.h" @@ -68,17 +72,17 @@ void psi_cpp_macro_call_free(struct psi_cpp_macro_call **call_ptr) } } -void psi_cpp_macro_call_dump(int fd, struct psi_cpp_macro_call *call) +void psi_cpp_macro_call_dump(struct psi_dump *dump, struct psi_cpp_macro_call *call) { size_t i = 0; struct psi_num_exp *num; - dprintf(fd, "%s(", call->name->val); + PSI_DUMP(dump, "%s(", call->name->val); while (psi_plist_get(call->args, i++, &num)) { if (i > 1) { - dprintf(fd, ", "); + PSI_DUMP(dump, ", "); } - psi_num_exp_dump(fd, num); + psi_num_exp_dump(dump, num); } - dprintf(fd, ")"); + PSI_DUMP(dump, ")"); }