|
ELinks 0.20.0
|
#include <stdlib.h>#include <string.h>#include "elinks.h"#include "dom/node.h"#include "util/hash.h"#include "util/memory.h"
Data Structures | |
| struct | dom_node_search |
Macros | |
| #define | DOM_NODE_LIST_GRANULARITY 0x7 |
| #define | DOM_NODE_LIST_BLOCK_SIZE (ALIGN_MEMORY_SIZE(1, DOM_NODE_LIST_GRANULARITY) * sizeof(struct dom_node *)) |
| #define | DOM_NODE_LIST_SIZE(size) |
| #define | INIT_DOM_NODE_SEARCH(key, list) |
| #define | has_bsearch_node(from, to) |
| #define | set_node_name(name, namelen, str) |
Functions | |
| static void | done_dom_node_data (struct dom_node *node) |
| static struct dom_node_list * | realloc_dom_node_list (struct dom_node_list **oldlist) |
| struct dom_node_list * | add_to_dom_node_list (struct dom_node_list **list_ptr, struct dom_node *node, int position) |
| static void | del_from_dom_node_list (struct dom_node_list *list, struct dom_node *node) |
| void | done_dom_node_list (struct dom_node_list *list) |
| int | dom_node_casecmp (struct dom_node *node1, struct dom_node *node2) |
| static int | get_bsearch_position (struct dom_node_list *list, int from, int to) |
| static struct dom_node * | dom_node_list_bsearch (struct dom_node_search *search, struct dom_node_list *list) |
| int | get_dom_node_map_index (struct dom_node_list *list, struct dom_node *node) |
| struct dom_node * | get_dom_node_map_entry (struct dom_node_list *list, int16_t type, int16_t subtype, struct dom_string *name) |
| static int | get_dom_node_list_pos (struct dom_node_list *list, struct dom_node *node) |
| int | get_dom_node_list_index (struct dom_node *parent, struct dom_node *node) |
| struct dom_node * | get_dom_node_prev (struct dom_node *node) |
| struct dom_node * | get_dom_node_next (struct dom_node *node) |
| struct dom_node * | get_dom_node_child (struct dom_node *parent, int16_t type, int16_t subtype) |
| struct dom_node * | init_dom_node_at (char *file, int line, struct dom_node *parent, int16_t type, struct dom_string *string, int allocated) |
| void | done_dom_node (struct dom_node *node) |
| struct dom_string * | get_dom_node_name (struct dom_node *node) |
| struct dom_string * | get_dom_node_value (struct dom_node *node) |
| struct dom_string * | get_dom_node_type_name (int16_t type) |
| #define DOM_NODE_LIST_BLOCK_SIZE (ALIGN_MEMORY_SIZE(1, DOM_NODE_LIST_GRANULARITY) * sizeof(struct dom_node *)) |
| #define DOM_NODE_LIST_GRANULARITY 0x7 |
| #define DOM_NODE_LIST_SIZE | ( | size | ) |
| #define has_bsearch_node | ( | from, | |
| to ) |
| #define INIT_DOM_NODE_SEARCH | ( | key, | |
| list ) |
| #define set_node_name | ( | name, | |
| namelen, | |||
| str ) |
| struct dom_node_list * add_to_dom_node_list | ( | struct dom_node_list ** | list_ptr, |
| struct dom_node * | node, | ||
| int | position ) |
|
static |
|
inlinestatic |
| void done_dom_node | ( | struct dom_node * | node | ) |
|
static |
| void done_dom_node_list | ( | struct dom_node_list * | list | ) |
|
inlinestatic |
|
static |
| struct dom_node * get_dom_node_map_entry | ( | struct dom_node_list * | list, |
| int16_t | type, | ||
| int16_t | subtype, | ||
| struct dom_string * | name ) |
| int get_dom_node_map_index | ( | struct dom_node_list * | list, |
| struct dom_node * | node ) |
| struct dom_string * get_dom_node_name | ( | struct dom_node * | node | ) |
| struct dom_string * get_dom_node_type_name | ( | int16_t | type | ) |
| struct dom_string * get_dom_node_value | ( | struct dom_node * | node | ) |
| struct dom_node * init_dom_node_at | ( | char * | file, |
| int | line, | ||
| struct dom_node * | parent, | ||
| int16_t | type, | ||
| struct dom_string * | string, | ||
| int | allocated ) |
|
inlinestatic |