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

[va_start] change enum to unsigned int in va_arg

This commit is contained in:
Witold Filipczyk 2022-06-23 21:31:01 +02:00
parent 1f20379087
commit 805b1d31b6
5 changed files with 9 additions and 5 deletions

View File

@ -134,7 +134,7 @@ struct html_context {
* html/parser/forms.c
* html/parser/parse.c
* html/parser.c */
void *(*special_f)(struct html_context *, enum html_special_type, ...);
void *(*special_f)(struct html_context *, html_special_type_T, ...);
};
#define html_top ((struct html_element *) html_context->stack.next)

View File

@ -761,7 +761,7 @@ init_html_parser(struct uri *uri, struct document_options *options,
struct string *head, struct string *title,
void (*put_chars)(struct html_context *, const char *, int),
void (*line_break)(struct html_context *),
void *(*special)(struct html_context *, enum html_special_type, ...))
void *(*special)(struct html_context *, html_special_type_T, ...))
{
struct html_context *html_context;
struct html_element *e;

View File

@ -179,7 +179,7 @@ init_html_parser(struct uri *uri, struct document_options *options,
struct string *head, struct string *title,
void (*put_chars)(struct html_context *, const char *, int),
void (*line_break)(struct html_context *),
void *(*special)(struct html_context *, enum html_special_type,
void *(*special)(struct html_context *, html_special_type_T,
...));
void done_html_parser(struct html_context *html_context);

View File

@ -2238,7 +2238,7 @@ color_link_lines(struct html_context *html_context)
}
void *
html_special(struct html_context *html_context, enum html_special_type c, ...)
html_special(struct html_context *html_context, html_special_type_T c, ...)
{
va_list l;
struct part *part;
@ -2379,6 +2379,8 @@ html_special(struct html_context *html_context, enum html_special_type c, ...)
}
break;
}
default:
break;
}

View File

@ -37,6 +37,8 @@ enum html_special_type {
SP_IFRAME
};
typedef unsigned int html_special_type_T;
/* Interface with tables.c */
@ -119,7 +121,7 @@ int qwerty2dec(const char *link_sym, const char *key, int base);
void put_chars_conv(struct html_context *html_context, const char *chars, int charslen);
void line_break(struct html_context *html_context);
void *html_special(struct html_context *html_context, enum html_special_type c, ...);
void *html_special(struct html_context *html_context, html_special_type_T c, ...);
#ifdef CONFIG_COMBINE
/** Discard any combining characters that have not yet been combined