|
Data Structures |
| struct | Node |
| | Main Node type definition. More...
|
Defines |
| #define | NODE_CHECK(x) ((x)->code == NODE_CODE ? 1 : 0) |
| #define | NODE_CODE 1131 |
| #define | STORAGE_TYPE extern |
Typedefs |
| typedef unsigned long long int | uword64 |
| typedef long long int | word64 |
Enumerations |
| enum | NodeType {
NODE_GLOBAL = 0,
NODE_GENERIC = 1,
NODE_PARSED_INTEGER = 2,
NODE_PARSED_DOUBLE = 3,
NODE_PARSED_DATE = 4,
NODE_EXTERNAL = 5
} |
| | Node string literal value parsed types enumeration. More...
|
Functions |
| STORAGE_TYPE void * | kml_calloc (size_t num, size_t size) |
| STORAGE_TYPE void | kml_free (void *memblock) |
| STORAGE_TYPE void * | kml_malloc (size_t size) |
| STORAGE_TYPE void * | kml_realloc (void *memblock, size_t size) |
| STORAGE_TYPE void | node_clear (Node *node) |
| | Clears the memory used by literal This function commonly used when the node is declared explicitly but its parts, such as prefix and literal are allocated dynamically.
|
| STORAGE_TYPE Node * | node_clone (const Node *src) |
| | Copies the node.
|
| STORAGE_TYPE int | node_compare (const Node *node1, const Node *node2) |
| | Compares two nodes.
|
| int | node_compare_ (const Node *node1, const Node *node2) |
| | Not documented, for internal use only.
|
| STORAGE_TYPE void | node_free (Node *node) |
| | Frees the memory, allocated fro node node.
|
| STORAGE_TYPE const char * | node_get_literal (Node *node, long *literal_size) |
| | Get the literal part of the node.
|
| STORAGE_TYPE void | node_init_double (Node *node, double value) |
| | Initializes the node as a floating point value.
|
| STORAGE_TYPE void | node_init_integer (Node *node, long value) |
| | Initializes the node as an integer value.
|
| STORAGE_TYPE void | node_init_string (Node *node, const char *string) |
| | Initializes the node as a string with prefix.
|
| void | node_print (FILE *channel, Node *node) |
| | Prints the node on channel.
|
| STORAGE_TYPE void | node_set_instance_of (Node *node, const Node *context, const Node *instance_of) |
| STORAGE_TYPE void | node_set_literal (Node *node, const char *literal, long literal_size) |
| | Sets the literal part of the node.
|
Variables |
| static Node | NODE_NULL = { NODE_CODE, NODE_GLOBAL, 0, 0} |