version 1.193, 2019/04/23 20:36:55 |
version 1.194, 2019/04/23 20:40:03 |
|
|
size_t slen = strlen(s), valuelen; |
size_t slen = strlen(s), valuelen; |
struct options_entry *o; |
struct options_entry *o; |
struct options_array_item *a; |
struct options_array_item *a; |
|
union options_value *ov; |
const char *layouts[] = { |
const char *layouts[] = { |
"even-horizontal", "even-vertical", "main-horizontal", |
"even-horizontal", "even-vertical", "main-horizontal", |
"main-vertical", "tiled", NULL |
"main-vertical", "tiled", NULL |
|
|
if (o != NULL) { |
if (o != NULL) { |
a = options_array_first(o); |
a = options_array_first(o); |
while (a != NULL) { |
while (a != NULL) { |
value = options_array_item_value(a);; |
ov = options_array_item_value(a); |
if (value == NULL || (cp = strchr(value, '=')) == NULL) |
if (ov == NULL) |
goto next; |
goto next; |
|
|
|
value = ov->string; |
|
if ((cp = strchr(value, '=')) == NULL) |
|
goto next; |
valuelen = cp - value; |
valuelen = cp - value; |
if (slen > valuelen || strncmp(value, s, slen) != 0) |
if (slen > valuelen || strncmp(value, s, slen) != 0) |
goto next; |
goto next; |