particle: we no longer count the attributes

Since the attribute lists are now NULL-terminated.
This commit is contained in:
Daniel Eklöf 2019-01-13 16:50:16 +01:00
parent 74b0722d2f
commit d35695e98a

View file

@ -17,7 +17,6 @@ struct particle_info {
struct particle *(*from_conf)( struct particle *(*from_conf)(
const struct yml_node *node, struct particle *common); const struct yml_node *node, struct particle *common);
#define PARTICLE_COMMON_ATTRS_COUNT 5
#define PARTICLE_COMMON_ATTRS \ #define PARTICLE_COMMON_ATTRS \
{"margin", false, &conf_verify_int}, \ {"margin", false, &conf_verify_int}, \
{"left-margin", false, &conf_verify_int}, \ {"left-margin", false, &conf_verify_int}, \