aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-31 21:55:12 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-31 21:55:12 +0200
commit4de1fbb77e587c2d6ebca54cbe6d8bf9020c8480 (patch)
tree2302d6f7123b3eb68375b5f2b1847dc8c369166f /com32/hdt
parent51746bf2ae212397f97ac964f6bd671bf8b43e4e (diff)
downloadsyslinux-4de1fbb77e587c2d6ebca54cbe6d8bf9020c8480.tar.gz
syslinux-4de1fbb77e587c2d6ebca54cbe6d8bf9020c8480.tar.xz
syslinux-4de1fbb77e587c2d6ebca54cbe6d8bf9020c8480.zip
hdt: Moving define for more coherency
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/hdt/hdt-dump.h b/com32/hdt/hdt-dump.h
index a99be91c..d286562b 100644
--- a/com32/hdt/hdt-dump.h
+++ b/com32/hdt/hdt-dump.h
@@ -46,12 +46,12 @@
#define END_OF_APPEND NULL)); *item=temp_array;
// Macros to manipulate objects
-
#define CREATE_NEW_OBJECT *item = zzjson_create_object(config, NULL);
+#define FLUSH_OBJECT zzjson_print(config, *item); zzjson_free(config, *item);
+
// Macros to manipulate integers as objects
#define add_i(name,value) *item = zzjson_object_append(config, *item, name, zzjson_create_number_i(config, value))
#define add_hi(value) add_i(#value,hardware->value)
-#define FLUSH_OBJECT zzjson_print(config, *item); zzjson_free(config, *item);
// Macros to manipulate strings as objects
#define add_s(name,value) *item = zzjson_object_append(config, *item, name, zzjson_create_string(config, value))