diff options
author | bapt <bapt@FreeBSD.org> | 2016-04-17 21:30:40 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-04-17 21:30:40 +0000 |
commit | f1f86fc26ac7bb139234db8be5840e7fbb3ece3b (patch) | |
tree | 0f882185304d4ce271b3e3f95f25c20e20bdffea /contrib/libucl/utils/objdump.c | |
parent | eab6f9627ac3807e63427aae509529a6c39af635 (diff) | |
parent | 0a117fc9041121515084289fa2962638887aeca2 (diff) | |
download | FreeBSD-src-f1f86fc26ac7bb139234db8be5840e7fbb3ece3b.zip FreeBSD-src-f1f86fc26ac7bb139234db8be5840e7fbb3ece3b.tar.gz |
Import libucl 0.8.0
Diffstat (limited to 'contrib/libucl/utils/objdump.c')
-rw-r--r-- | contrib/libucl/utils/objdump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libucl/utils/objdump.c b/contrib/libucl/utils/objdump.c index 6fde2f4..3c60c55 100644 --- a/contrib/libucl/utils/objdump.c +++ b/contrib/libucl/utils/objdump.c @@ -41,7 +41,7 @@ ucl_obj_dump (const ucl_object_t *obj, unsigned int shift) tmp = obj; - while ((obj = ucl_iterate_object (tmp, &it, false))) { + while ((obj = ucl_object_iterate (tmp, &it, false))) { printf ("%sucl object address: %p\n", pre + 4, obj); if (obj->key != NULL) { printf ("%skey: \"%s\"\n", pre, ucl_object_key (obj)); @@ -54,7 +54,7 @@ ucl_obj_dump (const ucl_object_t *obj, unsigned int shift) printf ("%stype: UCL_OBJECT\n", pre); printf ("%svalue: %p\n", pre, obj->value.ov); it_obj = NULL; - while ((cur = ucl_iterate_object (obj, &it_obj, true))) { + while ((cur = ucl_object_iterate (obj, &it_obj, true))) { ucl_obj_dump (cur, shift + 2); } } @@ -62,7 +62,7 @@ ucl_obj_dump (const ucl_object_t *obj, unsigned int shift) printf ("%stype: UCL_ARRAY\n", pre); printf ("%svalue: %p\n", pre, obj->value.av); it_obj = NULL; - while ((cur = ucl_iterate_object (obj, &it_obj, true))) { + while ((cur = ucl_object_iterate (obj, &it_obj, true))) { ucl_obj_dump (cur, shift + 2); } } @@ -161,7 +161,7 @@ main(int argc, char **argv) if (argc > 2) { for (k = 2; k < argc; k++) { printf ("search for \"%s\"... ", argv[k]); - par = ucl_object_find_key (obj, argv[k]); + par = ucl_object_lookup (obj, argv[k]); printf ("%sfound\n", (par == NULL )?"not ":""); ucl_obj_dump (par, 0); } |