mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-25 03:25:38 +02:00
config: conf_verify_dict() now assumes attr list is NULL-terminated
This commit is contained in:
parent
2df419efc2
commit
71515e4079
21 changed files with 22 additions and 34 deletions
|
@ -50,7 +50,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 0,
|
||||
.attrs = {
|
||||
PARTICLE_COMMON_ATTRS,
|
||||
},
|
||||
|
|
|
@ -200,7 +200,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 4,
|
||||
.attrs = {
|
||||
{"items", true, &conf_verify_particle_list_items},
|
||||
{"spacing", false, &conf_verify_int},
|
||||
|
|
|
@ -230,7 +230,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 3,
|
||||
.attrs = {
|
||||
{"tag", true, &conf_verify_string},
|
||||
{"values", true, &verify_map_values},
|
||||
|
|
|
@ -259,7 +259,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 7,
|
||||
.attrs = {
|
||||
{"tag", true, &conf_verify_string},
|
||||
{"length", true, &conf_verify_int},
|
||||
|
|
|
@ -180,7 +180,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 2,
|
||||
.attrs = {
|
||||
{"tag", true, &conf_verify_string},
|
||||
{"items", true, &conf_verify_particle_list_items},
|
||||
|
|
|
@ -173,7 +173,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font,
|
|||
|
||||
const struct particle_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = PARTICLE_COMMON_ATTRS_COUNT + 4,
|
||||
.attrs = {
|
||||
{"text", true, &conf_verify_string},
|
||||
{"max", false, &conf_verify_int},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue