Up: Text Library Types


6.5.2.1 struct x1f4_lxtext_type

typedef struct x1f4_lxtext_type {
    struct {
	int (*line) (void *), (*post) (void *),
	    (*push) (void *, const char *, unsigned);
	void *data;
    } textflat_set;
    struct {
	int (*free) (void *, void *), (*link) (void *, void **, unsigned),
	    (*mode) (void *, void **, unsigned);
	void *data;
    } autolink_set;
    struct {
	int (*free) (void *, void *), (*link) (void *, void **, unsigned),
	    (*mode) (void *, void **, unsigned);
	void *data;
    } codelink_set;
} x1f4_lxtext_type;

The x1f4_lxtext_type record lists the application concerns related to the text library generation.

The fields that are always interpreted by the text library constructor function are:

autolink_set
specifies the temporaries memory allocator as:
free
the memory deallocater method
link
the memory allocator method
mode
the memory reallocator method
data
the memory management context

See Temporaries.

See Text Library Specifics.

See Memory Allocator Construct.

The fields that are interpreted only if so requested are:

See Text Library Generation Flags.

codelink_set
specifies the library data memory allocator (allocates memory for the library object construction purposes only) as:
free
the memory deallocater method
link
the memory allocator method
mode
the memory reallocator method
data
the memory management context

See Memory Allocator Construct.

textflat_set
specifies the error reporter as:
line
the error report introducing method
push
the error report constructor method
post
the error report completion method
data
the error reporting context

See Error Reporter Construct.