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

[dom] enum dom_stack_flag -> unsigned int

This commit is contained in:
Witold Filipczyk 2022-01-26 19:06:38 +01:00
parent 6d227f98a2
commit 9bed733621
3 changed files with 4 additions and 4 deletions

View File

@ -684,7 +684,7 @@ init_sgml_parser(enum sgml_parser_type type, enum sgml_document_type doctype,
struct dom_string *uri, /*enum sgml_parser_flag*/ unsigned int flags) struct dom_string *uri, /*enum sgml_parser_flag*/ unsigned int flags)
{ {
struct sgml_parser *parser; struct sgml_parser *parser;
enum dom_stack_flag stack_flags = 0; /*enum dom_stack_flag*/ unsigned int stack_flags = 0;
parser = (struct sgml_parser *)mem_calloc(1, sizeof(*parser)); parser = (struct sgml_parser *)mem_calloc(1, sizeof(*parser));
if (!parser) return NULL; if (!parser) return NULL;

View File

@ -51,7 +51,7 @@ realloc_dom_stack_state_objects(struct dom_stack_context *context, size_t depth)
} }
void void
init_dom_stack(struct dom_stack *stack, enum dom_stack_flag flags) init_dom_stack(struct dom_stack *stack, /*enum dom_stack_flag*/ unsigned int flags)
{ {
assert(stack); assert(stack);

View File

@ -138,7 +138,7 @@ struct dom_stack {
size_t depth; size_t depth;
/** Flags given to ref:[init_dom_stack]. */ /** Flags given to ref:[init_dom_stack]. */
enum dom_stack_flag flags; /*enum dom_stack_flag*/ unsigned int flags;
/** Contexts for the pushed and popped nodes. */ /** Contexts for the pushed and popped nodes. */
struct dom_stack_context **contexts; struct dom_stack_context **contexts;
@ -246,7 +246,7 @@ extern struct dom_stack_context_info dom_stack_trace_context_info;
* @param stack Pointer to a (preallocated) stack. * @param stack Pointer to a (preallocated) stack.
* @param flags Any flags needed for controlling the behaviour of the stack. * @param flags Any flags needed for controlling the behaviour of the stack.
*/ */
void init_dom_stack(struct dom_stack *stack, enum dom_stack_flag flags); void init_dom_stack(struct dom_stack *stack, /*enum dom_stack_flag*/ unsigned int flags);
/** Release a DOM stack /** Release a DOM stack
* *