61 assert(value != INT_MIN);
85 assert(value != INT_MIN);
87 return (
unsigned char) value;
109 assert(value != INT_MIN);
133 assert(value != INT_MIN);
135 return (
struct MbTable *) value;
157 assert(value != INT_MIN);
159 return (
short) value;
182 assert(value != INT_MIN);
184 return (
const char *) value;
206 assert(value != INT_MIN);
231 assert(value != INT_MIN);
233 return (
const struct Regex *) value;
256 assert(value != INT_MIN);
258 return (
const struct Slist *) value;
280 assert(value != INT_MIN);
282 return (
short) value;
305 assert(value != INT_MIN);
307 return (
const char *) value;
const struct Regex * cs_subset_regex(const struct ConfigSubset *sub, const char *name)
Get a regex config item by name.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
const struct Slist * cs_subset_slist(const struct ConfigSubset *sub, const char *name)
Get a string-list config item by name.
enum QuadOption cs_subset_quad(const struct ConfigSubset *sub, const char *name)
Get a quad-value config item by name.
unsigned char cs_subset_enum(const struct ConfigSubset *sub, const char *name)
Get a enumeration config item by name.
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
const char * cs_subset_path(const struct ConfigSubset *sub, const char *name)
Get a path config item by name.
long cs_subset_long(const struct ConfigSubset *sub, const char *name)
Get a long config item by name.
struct MbTable * cs_subset_mbtable(const struct ConfigSubset *sub, const char *name)
Get a Multibyte table config item by name.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
struct HashElem * cs_get_base(struct HashElem *he)
Find the root Config Item.
Helper functions to get config values.
Convenience wrapper for the library headers.
Type representing a quad-option.
QuadOption
Possible values for a quad-option.
A set of inherited config items.
The item stored in a Hash Table.
int type
Type of data stored in Hash Table, e.g. DT_STRING.
Multibyte character table.
Cached regular expression.
intptr_t cs_subset_he_native_get(const struct ConfigSubset *sub, struct HashElem *he, struct Buffer *err)
Natively get the value of a HashElem config item.
struct HashElem * cs_subset_create_inheritance(const struct ConfigSubset *sub, const char *name)
Create a Subset config item (inherited)
Constants for all the config types.
#define DT_SORT
sorting methods
#define DTYPE(x)
Mask for the Data Type.
#define DT_SLIST
a list of strings
#define DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
#define DT_LONG
a number (long)
#define DT_BOOL
boolean option
#define DT_PATH
a path to a file/directory
#define DT_STRING
a string
#define DT_ENUM
an enumeration
#define DT_REGEX
regular expressions
#define DT_MBTABLE
multibyte char table
#define DT_NUMBER
a number