Hubbub
|
Go to the source code of this file.
Macros | |
#define | max(a, b) ((a)>(b)?(a):(b)) |
#define | min(a, b) ((a)<(b)?(a):(b)) |
#define | SLEN(s) (sizeof((s)) - 1) /* -1 for '\0' */ |
#define | UNUSED(x) ((x)=(x)) |
#define | N_ELEMENTS(x) sizeof((x)) / sizeof((x)[0]) |
#define min | ( | a, | |
b | |||
) | ((a)<(b)?(a):(b)) |
Definition at line 16 of file utils.h.
Referenced by hubbub_charset_scan_meta().
#define N_ELEMENTS | ( | x | ) | sizeof((x)) / sizeof((x)[0]) |
Definition at line 29 of file utils.h.
Referenced by adjust_svg_attributes(), adjust_svg_tagname(), and element_type_from_name().
#define SLEN | ( | s | ) | (sizeof((s)) - 1) /* -1 for '\0' */ |
Definition at line 21 of file utils.h.
Referenced by adjust_foreign_attributes(), adjust_mathml_attributes(), handle_after_head(), handle_before_head(), handle_before_html(), handle_in_foreign_content(), handle_in_table(), handle_in_table_body(), hubbub_charset_extract(), hubbub_charset_fix_charset(), hubbub_charset_parse_attributes(), hubbub_charset_parse_content(), hubbub_charset_read_bom(), hubbub_charset_scan_meta(), hubbub_tokeniser_handle_cdata_block(), hubbub_tokeniser_handle_comment(), hubbub_tokeniser_handle_data(), hubbub_tokeniser_handle_match_comment(), hubbub_tokeniser_handle_tag_open(), process_0br_in_body(), process_0p_in_body(), process_image_in_body(), process_input_in_table(), process_isindex_in_body(), and process_meta_in_head().
#define UNUSED | ( | x | ) | ((x)=(x)) |
Definition at line 25 of file utils.h.
Referenced by adjust_foreign_attributes(), adjust_mathml_attributes(), adjust_svg_attributes(), adjust_svg_tagname(), element_type_from_name(), formatting_list_replace(), lookup_full_quirks(), lookup_limited_quirks(), and process_0h_in_body().