mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
include: add config/types.h
This commit is contained in:
parent
6dea8c0dcc
commit
9d49d19cd2
54 changed files with 414 additions and 368 deletions
|
|
@ -3,8 +3,8 @@
|
|||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
enum three_state
|
||||
parse_three_state(const char *str)
|
||||
enum lab_tristate
|
||||
parse_tristate(const char *str)
|
||||
{
|
||||
if (!str) {
|
||||
goto error_not_a_boolean;
|
||||
|
|
@ -33,7 +33,7 @@ error_not_a_boolean:
|
|||
int
|
||||
parse_bool(const char *str, int default_value)
|
||||
{
|
||||
enum three_state val = parse_three_state(str);
|
||||
enum lab_tristate val = parse_tristate(str);
|
||||
if (val == LAB_STATE_UNSPECIFIED) {
|
||||
return default_value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue