diff options
| author | 2023-02-07 11:43:04 +0100 | |
|---|---|---|
| committer | 2023-02-07 11:43:04 +0100 | |
| commit | fe1b22723868b038c4d0b84d9582edcdd888af97 (patch) | |
| tree | 7db408f97a23c3283eebf1e02caec03bfab9c614 /src/jplist.c | |
| parent | 6390abcd1c94f4c29291c81322726d6946fd345f (diff) | |
| download | libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.gz libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.bz2 | |
Add function to interface to allow enabling/disabling error/debug output for the format parses
This makes the `-d` option work in plistutil that wasn't doing anything
Diffstat (limited to 'src/jplist.c')
| -rw-r--r-- | src/jplist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jplist.c b/src/jplist.c index 99a8877..8ed7398 100644 --- a/src/jplist.c +++ b/src/jplist.c | |||
| @@ -64,6 +64,11 @@ void plist_json_deinit(void) | |||
| 64 | /* deinit JSON stuff */ | 64 | /* deinit JSON stuff */ |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void plist_json_set_debug(int debug) | ||
| 68 | { | ||
| 69 | plist_json_debug = debug; | ||
| 70 | } | ||
| 71 | |||
| 67 | #ifndef HAVE_STRNDUP | 72 | #ifndef HAVE_STRNDUP |
| 68 | static char* strndup(const char* str, size_t len) | 73 | static char* strndup(const char* str, size_t len) |
| 69 | { | 74 | { |
