Cleanup: public type macros coding style
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Mar 2021 20:17:26 +0000 (16:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Mar 2021 20:17:26 +0000 (16:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I6732b20d1e2975f2a00678e00dc84c4ac6f7be67

include/lttng/ust-events.h

index 059589f34853eedabf1ae0be447da55d733011d6..0e9d4875eb2132bfcc5f996c7a40f58487f77ca7 100644 (file)
@@ -105,19 +105,17 @@ struct lttng_ust_enum_entry {
        /* End of base ABI. Fields below should be used after checking struct_size. */
 };
 
-#define __type_integer(_type, _byte_order, _base, _encoding)   \
-       {                                                       \
-         .atype = atype_integer,                               \
-         .u =                                                  \
-               {                                               \
-                 .integer =                                    \
-                       {                                       \
-                         .size = sizeof(_type) * CHAR_BIT,     \
-                         .alignment = lttng_alignof(_type) * CHAR_BIT, \
-                         .signedness = lttng_is_signed_type(_type), \
-                         .reverse_byte_order = _byte_order != BYTE_ORDER, \
-                         .base = _base,                        \
-                         .encoding = lttng_encode_##_encoding, \
+#define __type_integer(_type, _byte_order, _base, _encoding)           \
+       {                                                               \
+               .atype = atype_integer,                                 \
+               .u = {                                                  \
+                       .integer = {                                    \
+                               .size = sizeof(_type) * CHAR_BIT,       \
+                               .alignment = lttng_alignof(_type) * CHAR_BIT, \
+                               .signedness = lttng_is_signed_type(_type), \
+                               .reverse_byte_order = _byte_order != BYTE_ORDER, \
+                               .base = _base,                  \
+                               .encoding = lttng_encode_##_encoding, \
                        }                                       \
                },                                              \
        }                                                       \
@@ -142,21 +140,19 @@ struct lttng_integer_type {
                : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG       \
                : 0))
 
-#define __type_float(_type)                                    \
-       {                                                       \
-         .atype = atype_float,                                 \
-         .u =                                                  \
-               {                                               \
-                 ._float =                                     \
-                       {                                       \
-                         .exp_dig = sizeof(_type) * CHAR_BIT   \
-                                         - _float_mant_dig(_type), \
-                         .mant_dig = _float_mant_dig(_type),   \
-                         .alignment = lttng_alignof(_type) * CHAR_BIT, \
-                         .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER, \
-                       }                                       \
-               }                                               \
-       }                                                       \
+#define __type_float(_type)                                            \
+       {                                                               \
+               .atype = atype_float,                                   \
+               .u = {                                                  \
+                       ._float = {                                     \
+                               .exp_dig = sizeof(_type) * CHAR_BIT     \
+                                       - _float_mant_dig(_type),       \
+                               .mant_dig = _float_mant_dig(_type),     \
+                               .alignment = lttng_alignof(_type) * CHAR_BIT, \
+                               .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER,   \
+                       }                                               \
+               }                                                       \
+       }                                                               \
 
 #define LTTNG_UST_FLOAT_TYPE_PADDING   24
 struct lttng_float_type {
This page took 0.025507 seconds and 4 git commands to generate.