version 1.194, 2019/04/23 20:40:03 |
version 1.195, 2019/04/25 19:36:59 |
|
|
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) { |
ov = options_array_item_value(a); |
value = options_array_item_value(a)->string; |
if (ov == NULL) |
|
goto next; |
|
|
|
value = ov->string; |
|
if ((cp = strchr(value, '=')) == NULL) |
if ((cp = strchr(value, '=')) == NULL) |
goto next; |
goto next; |
valuelen = cp - value; |
valuelen = cp - value; |