summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-05 06:01:11 +0100
committerGravatar Nikias Bassen2017-02-05 06:01:11 +0100
commit31d7cc5370f37cc6b9ecc4e26256e74634554343 (patch)
tree85d35012ca641e012c1d9c8acd2fd76c5dfb81a8 /src/plist.c
parent67eb54ab73f07560ae72058ed6ab6b47936be695 (diff)
downloadlibplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.gz
libplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.bz2
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".
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c4
1 files changed, 4 insertions, 0 deletions
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 @@
41 41
42extern void plist_xml_init(void); 42extern void plist_xml_init(void);
43extern void plist_xml_deinit(void); 43extern void plist_xml_deinit(void);
44extern void plist_bin_init(void);
45extern void plist_bin_deinit(void);
44 46
45static void internal_plist_init(void) 47static void internal_plist_init(void)
46{ 48{
49 plist_bin_init();
47 plist_xml_init(); 50 plist_xml_init();
48} 51}
49 52
50static void internal_plist_deinit(void) 53static void internal_plist_deinit(void)
51{ 54{
55 plist_bin_deinit();
52 plist_xml_deinit(); 56 plist_xml_deinit();
53} 57}
54 58