diff options
| author | 2023-02-07 11:43:04 +0100 | |
|---|---|---|
| committer | 2023-02-07 11:43:04 +0100 | |
| commit | fe1b22723868b038c4d0b84d9582edcdd888af97 (patch) | |
| tree | 7db408f97a23c3283eebf1e02caec03bfab9c614 /src/oplist.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/oplist.c')
| -rw-r--r-- | src/oplist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/oplist.c b/src/oplist.c index 287d5a2..1781962 100644 --- a/src/oplist.c +++ b/src/oplist.c | |||
| @@ -63,6 +63,11 @@ void plist_ostep_deinit(void) | |||
| 63 | /* deinit OpenStep plist stuff */ | 63 | /* deinit OpenStep plist stuff */ |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void plist_ostep_set_debug(int debug) | ||
| 67 | { | ||
| 68 | plist_ostep_debug = debug; | ||
| 69 | } | ||
| 70 | |||
| 66 | #ifndef HAVE_STRNDUP | 71 | #ifndef HAVE_STRNDUP |
| 67 | static char* strndup(const char* str, size_t len) | 72 | static char* strndup(const char* str, size_t len) |
| 68 | { | 73 | { |
