aboutsummaryrefslogtreecommitdiff
path: root/utils/objdump.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-04-17 21:25:53 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-04-17 21:25:53 +0000
commit94f2b741289f8532938513e8379d6eed5077b687 (patch)
treef8c605ecc03d848a1aff2296e3de9ba8aa8a5aff /utils/objdump.c
parent4e2fa78ea36ec2cf6583bc025b4127c5ea238fd2 (diff)
downloadsrc-94f2b741289f8532938513e8379d6eed5077b687.tar.gz
src-94f2b741289f8532938513e8379d6eed5077b687.zip
Import libucl 0.8.0vendor/libucl/libucl-0.8.0
Notes
Notes: svn path=/vendor/libucl/dist/; revision=298162 svn path=/vendor/libucl/libucl-0.8.0/; revision=298163; tag=vendor/libucl/libucl-0.8.0
Diffstat (limited to 'utils/objdump.c')
-rw-r--r--utils/objdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/objdump.c b/utils/objdump.c
index 6fde2f4c890e..3c60c5569231 100644
--- a/utils/objdump.c
+++ b/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);
}