diff options
author | Nikias Bassen | 2023-01-08 05:29:22 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-01-08 05:29:22 +0100 |
commit | 60d291941fadb72b66d11502710add5899e21a2d (patch) | |
tree | a7ecccf74cd8fb7e2596fd3531fd9cccefa39dcd /test/plist_cmp.c | |
parent | 3f9360e33c13c22648036da42e36f8668e29fb60 (diff) | |
download | libplist-60d291941fadb72b66d11502710add5899e21a2d.tar.gz libplist-60d291941fadb72b66d11502710add5899e21a2d.tar.bz2 |
Add support for OpenStep plist format
Diffstat (limited to 'test/plist_cmp.c')
-rw-r--r-- | test/plist_cmp.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index 2af3f63..1b4a36a 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c @@ -127,19 +127,8 @@ int main(int argc, char *argv[]) plist_1[size_in1] = '\0'; plist_2[size_in2] = '\0'; - if (memcmp(plist_1, "bplist00", 8) == 0) - plist_from_bin(plist_1, size_in1, &root_node1); - else if (plist_1[0] == '[' || plist_1[0] == '{') - plist_from_json(plist_1, size_in1, &root_node1); - else - plist_from_xml(plist_1, size_in1, &root_node1); - - if (memcmp(plist_2, "bplist00", 8) == 0) - plist_from_bin(plist_2, size_in2, &root_node2); - else if (plist_2[0] == '[' || plist_2[0] == '{') - plist_from_json(plist_2, size_in2, &root_node2); - else - plist_from_xml(plist_2, size_in2, &root_node2); + plist_from_memory(plist_1, size_in1, &root_node1); + plist_from_memory(plist_2, size_in2, &root_node2); if (!root_node1 || !root_node2) { |