0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Filter refactoring: indentation fix

This commit is contained in:
Maria Matejka 2018-12-18 17:10:05 +01:00
parent fc8df41ec6
commit a8740d6c09

View File

@ -652,10 +652,12 @@ interpret(struct filter_state *fs, struct f_inst *what)
#define ARG_ANY(n) INTERPRET(what->a##n.p, n) #define ARG_ANY(n) INTERPRET(what->a##n.p, n)
#define ARG(n,t) ARG_ANY(n); \ #define ARG(n,t) do { \
ARG_ANY(n); \
if (v##n.type != t) \ if (v##n.type != t) \
runtime("Argument %d of instruction %s must be of type %02x, got %02x", \ runtime("Argument %d of instruction %s must be of type %02x, got %02x", \
n, f_instruction_name(what->fi_code), t, v##n.type); n, f_instruction_name(what->fi_code), t, v##n.type); \
} while (0)
#define INTERPRET(what_, n) do { \ #define INTERPRET(what_, n) do { \
fs->stack_ptr += n; \ fs->stack_ptr += n; \
@ -667,11 +669,9 @@ interpret(struct filter_state *fs, struct f_inst *what)
return fret; \ return fret; \
} while (0) } while (0)
#define ACCESS_RTE \ #define ACCESS_RTE do { if (!fs->rte) runtime("No route to access"); } while (0)
do { if (!fs->rte) runtime("No route to access"); } while (0)
#define ACCESS_EATTRS \ #define ACCESS_EATTRS do { if (!fs->eattrs) f_cache_eattrs(fs); } while (0)
do { if (!fs->eattrs) f_cache_eattrs(fs); } while (0)
#define BITFIELD_MASK(what_) (1u << EA_BIT_GET(what_->a2.i)) #define BITFIELD_MASK(what_) (1u << EA_BIT_GET(what_->a2.i))
@ -684,7 +684,8 @@ interpret(struct filter_state *fs, struct f_inst *what)
#undef INTERPRET #undef INTERPRET
#undef ACCESS_RTE #undef ACCESS_RTE
#undef ACCESS_EATTRS #undef ACCESS_EATTRS
}} }
}
return F_NOP; return F_NOP;
} }