The m17n Library 1.8.4
|
Data Structures | |
struct | M17NObjectRecord |
struct | M17NObject |
struct | M17NObjectArray |
struct | MText |
Type of M-texts. More... | |
Macros | |
#define | _(String) (String) |
#define | MERROR(err, ret) |
#define | MERROR_GOTO(err, label) |
#define | MWARNING(err) |
#define | MFATAL(err) |
#define | MFAILP(cond) ((cond) ? 0 : mdebug_hook()) |
#define | M_CHECK_CHAR(c, ret) |
#define | MEMORY_FULL(err) |
#define | MTABLE_MALLOC(p, size, err) |
#define | MTABLE_CALLOC(p, size, err) |
#define | MTABLE_CALLOC_SAFE(p, size) ((p) = (void *) calloc (sizeof (*(p)), (size))) |
#define | MTABLE_REALLOC(p, size, err) |
#define | MTABLE_ALLOCA(p, size, err) |
#define | MSTRUCT_MALLOC(p, err) |
#define | MSTRUCT_CALLOC(p, err) MTABLE_CALLOC ((p), 1, (err)) |
#define | MSTRUCT_CALLOC_SAFE(p) MTABLE_CALLOC_SAFE ((p), 1) |
#define | USE_SAFE_ALLOCA int sa_must_free = 0, sa_size = 0 |
#define | SAFE_ALLOCA(P, SIZE) |
#define | SAFE_FREE(P) |
#define | MLIST_RESET(list) ((list)->used = 0) |
#define | MLIST_INIT1(list, mem, increment) |
#define | MLIST_APPEND1(list, mem, elt, err) |
#define | MLIST_PREPEND1(list, mem, elt, err) |
#define | MLIST_INSERT1(list, mem, idx, len, err) |
#define | MLIST_DELETE1(list, mem, idx, len) |
#define | MLIST_COPY1(list0, list1, mem, err) |
#define | MLIST_FREE1(list, mem) |
#define | M17N_OBJECT(object, free_func, err) |
#define | M17N_OBJECT_REF(object) |
#define | M17N_OBJECT_REF_NTIMES(object, n) |
#define | M17N_OBJECT_UNREF(object) |
#define | M17N_OBJECT_ADD_ARRAY(array, name) |
#define | M17N_OBJECT_REGISTER(array, object) |
#define | M17N_OBJECT_UNREGISTER(array, object) |
#define | M_CHECK_POS(mt, pos, ret) |
#define | M_CHECK_POS_X(mt, pos, ret) |
#define | M_CHECK_RANGE(mt, from, to, ret, ret2) |
#define | M_CHECK_RANGE_X(mt, from, to, ret) |
#define | M_CHECK_POS_NCHARS(mt, pos, nchars, ret, ret2) |
#define | MTEXT_READ_ONLY_P(mt) ((mt)->allocated < 0) |
#define | M_CHECK_READONLY(mt, ret) |
#define | mtext_nchars(mt) ((mt)->nchars) |
#define | mtext_nbytes(mt) ((mt)->nbytes) |
#define | mtext_allocated(mt) ((mt)->allocated) |
#define | mtext_reset(mt) (mtext_del ((mt), 0, (mt)->nchars)) |
#define | MDEBUG_FLAG() mdebug__flags[mdebug_flag] |
#define | MDEBUG_PRINT0(FPRINTF) |
#define | MDEBUG_PRINT(msg) MDEBUG_PRINT0 (fprintf (mdebug__output, "%s", (msg))) |
#define | MDEBUG_PRINT1(fmt, arg) MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg))) |
#define | MDEBUG_PRINT2(fmt, arg1, arg2) MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2))) |
#define | MDEBUG_PRINT3(fmt, arg1, arg2, arg3) MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3))) |
#define | MDEBUG_PRINT4(fmt, arg1, arg2, arg3, arg4) MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3), (arg4))) |
#define | MDEBUG_PRINT5(fmt, arg1, arg2, arg3, arg4, arg5) MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3), (arg4), (arg5))) |
#define | MDEBUG_DUMP(prefix, postfix, call) |
#define | MDEBUG_PUSH_TIME() |
#define | MDEBUG_POP_TIME() |
#define | MDEBUG_PRINT_TIME(tag, ARG_LIST) |
#define | SWAP_16(c) (((c) >> 8) | (((c) & 0xFF) << 8)) |
#define | SWAP_32(c) |
Enumerations | |
enum | MTextCoverage { MTEXT_COVERAGE_ASCII , MTEXT_COVERAGE_UNICODE , MTEXT_COVERAGE_FULL } |
enum | MDebugFlag { MDEBUG_INIT , MDEBUG_FINI , MDEBUG_CHARSET , MDEBUG_CODING , MDEBUG_DATABASE , MDEBUG_FONT , MDEBUG_FLT , MDEBUG_FONTSET , MDEBUG_INPUT , MDEBUG_ALL , MDEBUG_MAX = MDEBUG_ALL } |
Functions | |
int | mdebug_hook () |
Hook function called on an error. | |
void | mdebug__add_object_array (M17NObjectArray *array, char *name) |
void | mdebug__register_object (M17NObjectArray *array, void *object) |
void | mdebug__unregister_object (M17NObjectArray *array, void *object) |
void | mdebug__push_time () |
void | mdebug__pop_time () |
void | mdebug__print_time () |
int | msymbol__init () |
void | msymbol__fini () |
int | mplist__init () |
void | mplist__fini () |
int | mtext__init () |
void | mtext__fini () |
int | mtext__prop_init () |
void | mtext__prop_fini () |
int | mchartable__init () |
void | mchartable__fini () |
int | mcharset__init () |
void | mcharset__fini () |
int | mcoding__init () |
void | mcoding__fini () |
int | mdatabase__init (void) |
void | mdatabase__fini (void) |
int | mchar__init () |
void | mchar__fini () |
int | mlang__init () |
void | mlang__fini () |
int | mlocale__init () |
void | mlocale__fini () |
int | minput__init () |
void | minput__fini () |
Variables | |
int | m17n__core_initialized |
int | m17n__shell_initialized |
int | m17n__gui_initialized |
int | mdebug__flags [MDEBUG_MAX] |
FILE * | mdebug__output |
#define _ | ( | String | ) | (String) |
#define MERROR | ( | err, | |
ret | |||
) |
#define MERROR_GOTO | ( | err, | |
label | |||
) |
#define MWARNING | ( | err | ) |
#define MFATAL | ( | err | ) |
#define MFAILP | ( | cond | ) | ((cond) ? 0 : mdebug_hook()) |
#define M_CHECK_CHAR | ( | c, | |
ret | |||
) |
#define MEMORY_FULL | ( | err | ) |
#define MTABLE_MALLOC | ( | p, | |
size, | |||
err | |||
) |
#define MTABLE_CALLOC | ( | p, | |
size, | |||
err | |||
) |
#define MTABLE_CALLOC_SAFE | ( | p, | |
size | |||
) | ((p) = (void *) calloc (sizeof (*(p)), (size))) |
#define MTABLE_REALLOC | ( | p, | |
size, | |||
err | |||
) |
#define MTABLE_ALLOCA | ( | p, | |
size, | |||
err | |||
) |
#define MSTRUCT_MALLOC | ( | p, | |
err | |||
) |
#define MSTRUCT_CALLOC | ( | p, | |
err | |||
) | MTABLE_CALLOC ((p), 1, (err)) |
#define MSTRUCT_CALLOC_SAFE | ( | p | ) | MTABLE_CALLOC_SAFE ((p), 1) |
#define USE_SAFE_ALLOCA int sa_must_free = 0, sa_size = 0 |
#define SAFE_ALLOCA | ( | P, | |
SIZE | |||
) |
#define SAFE_FREE | ( | P | ) |
#define MLIST_RESET | ( | list | ) | ((list)->used = 0) |
#define MLIST_INIT1 | ( | list, | |
mem, | |||
increment | |||
) |
#define MLIST_APPEND1 | ( | list, | |
mem, | |||
elt, | |||
err | |||
) |
#define MLIST_PREPEND1 | ( | list, | |
mem, | |||
elt, | |||
err | |||
) |
#define MLIST_INSERT1 | ( | list, | |
mem, | |||
idx, | |||
len, | |||
err | |||
) |
#define MLIST_DELETE1 | ( | list, | |
mem, | |||
idx, | |||
len | |||
) |
#define MLIST_COPY1 | ( | list0, | |
list1, | |||
mem, | |||
err | |||
) |
#define MLIST_FREE1 | ( | list, | |
mem | |||
) |
#define M17N_OBJECT | ( | object, | |
free_func, | |||
err | |||
) |
#define M17N_OBJECT_REF | ( | object | ) |
#define M17N_OBJECT_REF_NTIMES | ( | object, | |
n | |||
) |
#define M17N_OBJECT_UNREF | ( | object | ) |
#define M17N_OBJECT_ADD_ARRAY | ( | array, | |
name | |||
) |
#define M17N_OBJECT_REGISTER | ( | array, | |
object | |||
) |
#define M17N_OBJECT_UNREGISTER | ( | array, | |
object | |||
) |
#define M_CHECK_POS | ( | mt, | |
pos, | |||
ret | |||
) |
#define M_CHECK_POS_X | ( | mt, | |
pos, | |||
ret | |||
) |
#define M_CHECK_RANGE | ( | mt, | |
from, | |||
to, | |||
ret, | |||
ret2 | |||
) |
#define M_CHECK_RANGE_X | ( | mt, | |
from, | |||
to, | |||
ret | |||
) |
#define M_CHECK_POS_NCHARS | ( | mt, | |
pos, | |||
nchars, | |||
ret, | |||
ret2 | |||
) |
#define MTEXT_READ_ONLY_P | ( | mt | ) | ((mt)->allocated < 0) |
#define M_CHECK_READONLY | ( | mt, | |
ret | |||
) |
#define mtext_nchars | ( | mt | ) | ((mt)->nchars) |
#define mtext_nbytes | ( | mt | ) | ((mt)->nbytes) |
#define mtext_allocated | ( | mt | ) | ((mt)->allocated) |
#define mtext_reset | ( | mt | ) | (mtext_del ((mt), 0, (mt)->nchars)) |
#define MDEBUG_FLAG | ( | ) | mdebug__flags[mdebug_flag] |
#define MDEBUG_PRINT0 | ( | FPRINTF | ) |
#define MDEBUG_PRINT | ( | msg | ) | MDEBUG_PRINT0 (fprintf (mdebug__output, "%s", (msg))) |
#define MDEBUG_PRINT1 | ( | fmt, | |
arg | |||
) | MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg))) |
#define MDEBUG_PRINT2 | ( | fmt, | |
arg1, | |||
arg2 | |||
) | MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2))) |
#define MDEBUG_PRINT3 | ( | fmt, | |
arg1, | |||
arg2, | |||
arg3 | |||
) | MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3))) |
#define MDEBUG_PRINT4 | ( | fmt, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 | |||
) | MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3), (arg4))) |
#define MDEBUG_PRINT5 | ( | fmt, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5 | |||
) | MDEBUG_PRINT0 (fprintf (mdebug__output, (fmt), (arg1), (arg2), (arg3), (arg4), (arg5))) |
#define MDEBUG_DUMP | ( | prefix, | |
postfix, | |||
call | |||
) |
#define MDEBUG_PUSH_TIME | ( | ) |
#define MDEBUG_POP_TIME | ( | ) |
#define MDEBUG_PRINT_TIME | ( | tag, | |
ARG_LIST | |||
) |
#define SWAP_16 | ( | c | ) | (((c) >> 8) | (((c) & 0xFF) << 8)) |
#define SWAP_32 | ( | c | ) |
enum MTextCoverage |
enum MDebugFlag |
void mdebug__add_object_array | ( | M17NObjectArray * | array, |
char * | name | ||
) |
void mdebug__register_object | ( | M17NObjectArray * | array, |
void * | object | ||
) |
void mdebug__unregister_object | ( | M17NObjectArray * | array, |
void * | object | ||
) |
void mdebug__push_time | ( | ) |
void mdebug__pop_time | ( | ) |
void mdebug__print_time | ( | ) |
int msymbol__init | ( | ) |
void msymbol__fini | ( | ) |
int mplist__init | ( | ) |
void mplist__fini | ( | ) |
int mtext__init | ( | ) |
void mtext__fini | ( | ) |
int mtext__prop_init | ( | ) |
void mtext__prop_fini | ( | ) |
int mchartable__init | ( | ) |
void mchartable__fini | ( | ) |
int mcharset__init | ( | ) |
void mcharset__fini | ( | ) |
int mcoding__init | ( | ) |
void mcoding__fini | ( | ) |
int mdatabase__init | ( | void | ) |
void mdatabase__fini | ( | void | ) |
int mchar__init | ( | ) |
void mchar__fini | ( | ) |
int mlang__init | ( | ) |
void mlang__fini | ( | ) |
int mlocale__init | ( | ) |
void mlocale__fini | ( | ) |
int minput__init | ( | ) |
void minput__fini | ( | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |