summaryrefslogtreecommitdiff
path: root/dist/Data-Dumper/Dumper.xs
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-05-14 11:09:56 +0000
committerNicholas Clark <nick@ccl4.org>2021-05-22 08:22:26 +0000
commit2eb6b7eb0d54e988419c74183534a9e6307f059a (patch)
tree90c14bbbbc77524b9b0825039468523feba4a7ce /dist/Data-Dumper/Dumper.xs
parent1f12e8812b8f5a0e640b447d829275a02c9bbfb4 (diff)
downloadperl-2eb6b7eb0d54e988419c74183534a9e6307f059a.tar.gz
Current ppport.h forcibly overrides older buggy versions of utf8_to_uvchr_buf
Hence we need to set NEED_utf8_to_uvchr_buf else we don't get *any* utf8_to_uvchr_buf. Oops. :-)
Diffstat (limited to 'dist/Data-Dumper/Dumper.xs')
-rw-r--r--dist/Data-Dumper/Dumper.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs
index 6aca9182b6..9e545fc27c 100644
--- a/dist/Data-Dumper/Dumper.xs
+++ b/dist/Data-Dumper/Dumper.xs
@@ -2,9 +2,14 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
+/* FIXME - we should go through the code and validate what we can remove.
+ Looks like we could elimiate much of our custom utf8_to_uvchr_buf games in
+ favour of ppport.h, and likewise if we replace my_sprintf with my_snprintf
+ some more complexity dies. */
#ifdef USE_PPPORT_H
# define NEED_my_snprintf
# define NEED_sv_2pv_flags
+# define NEED_utf8_to_uvchr_buf
# include "ppport.h"
#endif