util: remove useless fuzzy
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
7803225553
commit
f0a01c6131
|
@ -130,16 +130,6 @@ position_to_str(position_t p)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fuzzy_t
|
|
||||||
fuzzy_get_from_str(const char *str)
|
|
||||||
{
|
|
||||||
if(!a_strcmp(str, "true") || !a_strcmp(str, "yes"))
|
|
||||||
return Yes;
|
|
||||||
else if(!a_strcmp(str, "false") || !a_strcmp(str, "no"))
|
|
||||||
return No;
|
|
||||||
return Maybe;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** \brief safe limited strcpy.
|
/** \brief safe limited strcpy.
|
||||||
*
|
*
|
||||||
* Copies at most min(<tt>n-1</tt>, \c l) characters from \c src into \c dst,
|
* Copies at most min(<tt>n-1</tt>, \c l) characters from \c src into \c dst,
|
||||||
|
|
|
@ -40,14 +40,6 @@ typedef enum
|
||||||
Auto
|
Auto
|
||||||
} position_t;
|
} position_t;
|
||||||
|
|
||||||
/** fuzzy_t logic */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
No = false,
|
|
||||||
Yes = true,
|
|
||||||
Maybe
|
|
||||||
} fuzzy_t;
|
|
||||||
|
|
||||||
/** Link a name to a function */
|
/** Link a name to a function */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -331,7 +323,6 @@ void _warn(int, const char *, const char *, ...)
|
||||||
|
|
||||||
position_t position_get_from_str(const char *);
|
position_t position_get_from_str(const char *);
|
||||||
char * position_to_str(position_t);
|
char * position_to_str(position_t);
|
||||||
fuzzy_t fuzzy_get_from_str(const char *);
|
|
||||||
void *name_func_lookup(const char *, const name_func_link_t *);
|
void *name_func_lookup(const char *, const name_func_link_t *);
|
||||||
const char * name_func_rlookup(void *, const name_func_link_t *);
|
const char * name_func_rlookup(void *, const name_func_link_t *);
|
||||||
void a_exec(const char *);
|
void a_exec(const char *);
|
||||||
|
|
Loading…
Reference in New Issue