1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

get_dom_node_map_entry(): take name as a dom_string

Requires that dom_string->length becomes a size_t.
This commit is contained in:
Jonas Fonseca 2005-12-10 19:21:12 +01:00 committed by Jonas Fonseca
parent 0546759b4b
commit 5f69255cbc
3 changed files with 4 additions and 4 deletions

View File

@ -211,9 +211,9 @@ 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, enum dom_node_type type,
uint16_t subtype, unsigned char *name, int namelen)
uint16_t subtype, struct dom_string *name)
{
struct dom_node node = { type, INIT_DOM_STRING(name, namelen) };
struct dom_node node = { type, INIT_DOM_STRING(name->string, name->length) };
struct dom_node_search search = INIT_DOM_NODE_SEARCH(&node, subtype, list);
return dom_node_list_bsearch(&search, list);

View File

@ -243,7 +243,7 @@ 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 *node_map,
enum dom_node_type type, uint16_t subtype,
unsigned char *name, int namelen);
struct dom_string *name);
struct dom_node *
init_dom_node_(unsigned char *file, int line,

View File

@ -2,7 +2,7 @@
#define EL__DOCUMENT_DOM_STRING_H
struct dom_string {
uint16_t length;
size_t length;
unsigned char *string;
};