aboutgitcodelistschat:MatrixIRC
path: root/cooker/cooker.h
diff options
context:
space:
mode:
Diffstat (limited to 'cooker/cooker.h')
-rw-r--r--cooker/cooker.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cooker/cooker.h b/cooker/cooker.h
index 24d8f7f..cd804d3 100644
--- a/cooker/cooker.h
+++ b/cooker/cooker.h
@@ -59,6 +59,8 @@ union value {
const char *v_str;
};
+#define NO_VALUE ((union value){ .v_num = 0 })
+
/**
* enum type - Types of values for arguments and fields within arguments
*/
@@ -116,6 +118,10 @@ enum flags {
((t) == USHORT || (t) == INT || (t) == U32 || \
(t) == U64 || (t) == LONG || \
(t) == GNU_DEV_MAJOR || (t) == GNU_DEV_MINOR)
+#define TYPE_IS_64BIT(t) \
+ ((t) == U64 || (t) == LONG || \
+ (t) == GNU_DEV_MAJOR || (t) == GNU_DEV_MINOR)
+
/**
* struct num - A numeric value and its label