aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal/erl_printf_format.h
diff options
context:
space:
mode:
authorR. Blaine Whittle <[email protected]>2013-02-19 16:59:48 +0100
committerSverker Eriksson <[email protected]>2013-02-21 18:44:06 +0100
commit944fca78d202712848e317ec666647e8db78bcb4 (patch)
tree2acd1f8688bfd644557b18358f59faceb52b416b /erts/include/internal/erl_printf_format.h
parentd78e430de1f22ed122d58ad49984ff88a8171b8f (diff)
downloadotp-944fca78d202712848e317ec666647e8db78bcb4.tar.gz
otp-944fca78d202712848e317ec666647e8db78bcb4.tar.bz2
otp-944fca78d202712848e317ec666647e8db78bcb4.zip
erts: Correct term type for printf %T
Diffstat (limited to 'erts/include/internal/erl_printf_format.h')
-rw-r--r--erts/include/internal/erl_printf_format.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/erts/include/internal/erl_printf_format.h b/erts/include/internal/erl_printf_format.h
index 6fe4af8fbb..0f35c41044 100644
--- a/erts/include/internal/erl_printf_format.h
+++ b/erts/include/internal/erl_printf_format.h
@@ -56,7 +56,16 @@ extern int erts_printf_uword(fmtfn_t, void*, char, int, int, ErlPfUWord);
extern int erts_printf_sword(fmtfn_t, void*, char, int, int, ErlPfSWord);
extern int erts_printf_double(fmtfn_t, void *, char, int, int, double);
-extern int (*erts_printf_eterm_func)(fmtfn_t, void*, unsigned long, long, unsigned long*);
+#ifdef HALFWORD_HEAP_EMULATOR
+# if SIZEOF_INT != 4
+# error Unsupported integer size for HALFWORD_HEAP_EMULATOR
+# endif
+typedef unsigned int ErlPfEterm;
+#else
+typedef ErlPfUWord ErlPfEterm;
+#endif
+
+extern int (*erts_printf_eterm_func)(fmtfn_t, void*, ErlPfEterm, long, ErlPfEterm*);
#endif /* ERL_PRINTF_FORMAT_H__ */