[util] Change Fuzzy type to fuzzy_t

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-11 11:19:53 +02:00
parent bd18eb2018
commit e272000cc6
3 changed files with 6 additions and 6 deletions

View File

@ -133,7 +133,7 @@ char* a_strndup(const char* src, ssize_t l)
return _tmpStr; return _tmpStr;
} }
Fuzzy fuzzy_t
fuzzy_get_from_str(const char *str) fuzzy_get_from_str(const char *str)
{ {
if(!a_strcmp(str, "true") || !a_strcmp(str, "yes")) if(!a_strcmp(str, "true") || !a_strcmp(str, "yes"))

View File

@ -38,13 +38,13 @@ typedef enum
Auto Auto
} position_t; } position_t;
/** Fuzzy logic */ /** fuzzy_t logic */
typedef enum typedef enum
{ {
No = false, No = false,
Yes = true, Yes = true,
Maybe Maybe
} Fuzzy; } fuzzy_t;
/** Link a name to a function */ /** Link a name to a function */
typedef struct typedef struct
@ -261,7 +261,7 @@ void _warn(int, const char *, const char *, ...)
__attribute__ ((format(printf, 3, 4))); __attribute__ ((format(printf, 3, 4)));
position_t position_get_from_str(const char *); position_t position_get_from_str(const char *);
Fuzzy fuzzy_get_from_str(const char *); fuzzy_t fuzzy_get_from_str(const char *);
double compute_new_value_from_arg(const char *, double); double compute_new_value_from_arg(const char *, double);
void *name_func_lookup(const char *, const name_func_link_t *); void *name_func_lookup(const char *, const name_func_link_t *);

View File

@ -69,8 +69,8 @@ struct rule_t
char *icon; char *icon;
char *xprop; char *xprop;
int screen; int screen;
Fuzzy isfloating; fuzzy_t isfloating;
Fuzzy ismaster; fuzzy_t ismaster;
titlebar_t titlebar; titlebar_t titlebar;
double opacity; double opacity;
regex_t *prop_r; regex_t *prop_r;