Filter: cleanup macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Jul 2012 15:18:14 +0000 (11:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Jul 2012 15:18:14 +0000 (11:18 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-filter.c

index f9d512c955d571d63f5b8b6daa0b9488f214baac..fa306f0760ac64d62f6bce5d67539e2413f68bd8 100644 (file)
@@ -275,20 +275,20 @@ int lttng_filter_false(void *filter_data,
  * Fallback for compilers that do not support taking address of labels.
  */
 
-#define START_OP       \
-       start_pc = &bytecode->data[0]; \
-       for (pc = next_pc = start_pc; pc - start_pc < bytecode->len; \
-                       pc = next_pc) { \
-               dbg_printf("Executing op %s (%u)\n", \
+#define START_OP                                                       \
+       start_pc = &bytecode->data[0];                                  \
+       for (pc = next_pc = start_pc; pc - start_pc < bytecode->len;    \
+                       pc = next_pc) {                                 \
+               dbg_printf("Executing op %s (%u)\n",                    \
                        print_op((unsigned int) *(filter_opcode_t *) pc), \
-                       (unsigned int) *(filter_opcode_t *) pc); \
-               switch (*(filter_opcode_t *) pc) {
+                       (unsigned int) *(filter_opcode_t *) pc);        \
+               switch (*(filter_opcode_t *) pc)        {
 
 #define OP(name)       case name
 
 #define PO             break
 
-#define END_OP         } \
+#define END_OP         }                                               \
        }
 
 #else
@@ -297,18 +297,18 @@ int lttng_filter_false(void *filter_data,
  * Dispatch-table based interpreter.
  */
 
-#define START_OP                                       \
-       start_pc = &bytecode->data[0];                  \
-       pc = next_pc = start_pc;                        \
-       if (unlikely(pc - start_pc >= bytecode->len))   \
-               goto end;                               \
+#define START_OP                                                       \
+       start_pc = &bytecode->data[0];                                  \
+       pc = next_pc = start_pc;                                        \
+       if (unlikely(pc - start_pc >= bytecode->len))                   \
+               goto end;                                               \
        goto *dispatch[*(filter_opcode_t *) pc];
 
-#define OP(name)                                       \
+#define OP(name)                                                       \
 LABEL_##name
 
-#define PO                                             \
-               pc = next_pc;                           \
+#define PO                                                             \
+               pc = next_pc;                                           \
                goto *dispatch[*(filter_opcode_t *) pc];
 
 #define END_OP
This page took 0.026418 seconds and 4 git commands to generate.