The m17n Library 1.8.4
|
Data Structures | |
struct | MPlist |
Type of property list objects. More... | |
Macros | |
#define | MPLIST_KEY(plist) ((plist)->key) |
#define | MPLIST_VAL(plist) ((plist)->val.pointer) |
#define | MPLIST_FUNC(plist) ((plist)->val.func) |
#define | MPLIST_NEXT(plist) ((plist)->next) |
#define | MPLIST_TAIL_P(plist) ((plist)->key == Mnil) |
#define | MPLIST_SYMBOL_P(plist) (MPLIST_KEY (plist) == Msymbol) |
#define | MPLIST_STRING_P(plist) (MPLIST_KEY (plist) == Mstring) |
#define | MPLIST_MTEXT_P(plist) (MPLIST_KEY (plist) == Mtext) |
#define | MPLIST_INTEGER_P(plist) (MPLIST_KEY (plist) == Minteger) |
#define | MPLIST_PLIST_P(plist) (MPLIST_KEY (plist) == Mplist) |
#define | MPLIST_NESTED_P(plist) ((plist)->control.flag & 1) |
#define | MPLIST_SET_NESTED_P(plist) ((plist)->control.flag |= 1) |
#define | MPLIST_VAL_FUNC_P(plist) ((plist)->control.flag & 2) |
#define | MPLIST_SET_VAL_FUNC_P(plist) ((plist)->control.flag |= 2) |
#define | MPLIST_SYMBOL(plist) ((MSymbol) MPLIST_VAL (plist)) |
#define | MPLIST_STRING(plist) ((char *) MPLIST_VAL (plist)) |
#define | MPLIST_MTEXT(plist) ((MText *) MPLIST_VAL (plist)) |
#define | MPLIST_INTEGER(plist) ((int) MPLIST_VAL (plist)) |
#define | MPLIST_PLIST(plist) ((MPlist *) MPLIST_VAL (plist)) |
#define | MPLIST_FIND(plist, key) |
#define | MPLIST_DO(elt, plist) for ((elt) = (plist); ! MPLIST_TAIL_P (elt); (elt) = MPLIST_NEXT (elt)) |
#define | MPLIST_LENGTH(plist) |
#define | MPLIST_ADD_PLIST(PLIST, KEY, VAL) MPLIST_SET_NESTED_P (mplist_add ((PLIST), (KEY), (VAL))) |
#define | MPLIST_PUSH_PLIST(PLIST, KEY, VAL) MPLIST_SET_NESTED_P (mplist_push ((PLIST), (KEY), (VAL))) |
#define | MPLIST_PUT_PLIST(PLIST, KEY, VAL) MPLIST_SET_NESTED_P (mplist_put ((PLIST), (KEY), (VAL))) |
Functions | |
MPlist * | mplist__from_file (FILE *fp, MPlist *keys) |
MPlist * | mplist__from_plist (MPlist *plist) |
MPlist * | mplist__from_alist (MPlist *plist) |
MPlist * | mplist__from_string (unsigned char *str, int n) |
int | mplist__serialize (MText *mt, MPlist *plist, int pretty) |
MPlist * | mplist__conc (MPlist *plist, MPlist *tail) |
void | mplist__pop_unref (MPlist *plist) |
MPlist * | mplist__assq (MPlist *plist, MSymbol key) |
Variables | |
unsigned char | hex_mnemonic [256] |
unsigned char | escape_mnemonic [256] |
#define MPLIST_KEY | ( | plist | ) | ((plist)->key) |
#define MPLIST_VAL | ( | plist | ) | ((plist)->val.pointer) |
#define MPLIST_FUNC | ( | plist | ) | ((plist)->val.func) |
#define MPLIST_NEXT | ( | plist | ) | ((plist)->next) |
#define MPLIST_TAIL_P | ( | plist | ) | ((plist)->key == Mnil) |
#define MPLIST_SYMBOL_P | ( | plist | ) | (MPLIST_KEY (plist) == Msymbol) |
#define MPLIST_STRING_P | ( | plist | ) | (MPLIST_KEY (plist) == Mstring) |
#define MPLIST_MTEXT_P | ( | plist | ) | (MPLIST_KEY (plist) == Mtext) |
#define MPLIST_INTEGER_P | ( | plist | ) | (MPLIST_KEY (plist) == Minteger) |
#define MPLIST_PLIST_P | ( | plist | ) | (MPLIST_KEY (plist) == Mplist) |
#define MPLIST_NESTED_P | ( | plist | ) | ((plist)->control.flag & 1) |
#define MPLIST_SET_NESTED_P | ( | plist | ) | ((plist)->control.flag |= 1) |
#define MPLIST_VAL_FUNC_P | ( | plist | ) | ((plist)->control.flag & 2) |
#define MPLIST_SET_VAL_FUNC_P | ( | plist | ) | ((plist)->control.flag |= 2) |
#define MPLIST_SYMBOL | ( | plist | ) | ((MSymbol) MPLIST_VAL (plist)) |
#define MPLIST_STRING | ( | plist | ) | ((char *) MPLIST_VAL (plist)) |
#define MPLIST_MTEXT | ( | plist | ) | ((MText *) MPLIST_VAL (plist)) |
#define MPLIST_INTEGER | ( | plist | ) | ((int) MPLIST_VAL (plist)) |
#define MPLIST_PLIST | ( | plist | ) | ((MPlist *) MPLIST_VAL (plist)) |
#define MPLIST_FIND | ( | plist, | |
key | |||
) |
#define MPLIST_DO | ( | elt, | |
plist | |||
) | for ((elt) = (plist); ! MPLIST_TAIL_P (elt); (elt) = MPLIST_NEXT (elt)) |
#define MPLIST_LENGTH | ( | plist | ) |
#define MPLIST_ADD_PLIST | ( | PLIST, | |
KEY, | |||
VAL | |||
) | MPLIST_SET_NESTED_P (mplist_add ((PLIST), (KEY), (VAL))) |
#define MPLIST_PUSH_PLIST | ( | PLIST, | |
KEY, | |||
VAL | |||
) | MPLIST_SET_NESTED_P (mplist_push ((PLIST), (KEY), (VAL))) |
#define MPLIST_PUT_PLIST | ( | PLIST, | |
KEY, | |||
VAL | |||
) | MPLIST_SET_NESTED_P (mplist_put ((PLIST), (KEY), (VAL))) |
MPlist * mplist__from_string | ( | unsigned char * | str, |
int | n | ||
) |
void mplist__pop_unref | ( | MPlist * | plist | ) |
|
extern |
|
extern |