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 clang build
[m6w6/ext-psi]
/
src
/
types
/
cpp_macro_call.c
diff --git
a/src/types/cpp_macro_call.c
b/src/types/cpp_macro_call.c
index fb32bc0dccd5e4c611ada58b9a9293b596f1d439..04e0ea40547cc474446b59a65ec681d2b466dbf9 100644
(file)
--- a/
src/types/cpp_macro_call.c
+++ b/
src/types/cpp_macro_call.c
@@
-47,7
+47,7
@@
struct psi_cpp_macro_call *psi_cpp_macro_call_copy(
}
if (call->args) {
copy->args = psi_plist_copy(call->args,
}
if (call->args) {
copy->args = psi_plist_copy(call->args,
- (void (*)(void*)) psi_
token
_copy_ctor);
+ (void (*)(void*)) psi_
num_exp
_copy_ctor);
}
return copy;
}
}
return copy;
}
@@
-68,17
+68,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;
{
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) {
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
, ")");
}
}