From 31d7cc5370f37cc6b9ecc4e26256e74634554343 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 5 Feb 2017 06:01:11 +0100 Subject: bplist: Add error/debug logging (only if configured with --enable-debug) This commit adds proper debug/error messages being printed if the binary plist parser encounters anything abnormal. To enable debug logging, libplist must be configured with --enable-debug, and the environment variable PLIST_BIN_DEBUG must be set to "1". --- src/plist.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plist.c') diff --git a/src/plist.c b/src/plist.c index 8c2866d..3314378 100644 --- a/src/plist.c +++ b/src/plist.c @@ -41,14 +41,18 @@ extern void plist_xml_init(void); extern void plist_xml_deinit(void); +extern void plist_bin_init(void); +extern void plist_bin_deinit(void); static void internal_plist_init(void) { + plist_bin_init(); plist_xml_init(); } static void internal_plist_deinit(void) { + plist_bin_deinit(); plist_xml_deinit(); } -- cgit v1.1-32-gdbae