rpm
5.4.15
|
Go to the source code of this file.
Data Structures | |
struct | pool |
Macros | |
#define | PARAMS(args) () |
#define | BOUNDED_TO_ALLOCA(beg, end, place) |
#define | XDIGIT_TO_NUM(x) ((x) < 'A' ? (x) - '0' : TOUPPER (x) - 'A' + 10) |
#define | countof(array) (sizeof (array) / sizeof (*(array))) |
#define | POOL_INIT(p, initial_storage, initial_size) |
#define | POOL_GROW(p, increase) |
#define | POOL_APPEND(p, beg, end) |
#define | POOL_APPEND_CHR(p, ch) |
#define | POOL_REWIND(p) (p)->tail = 0 |
#define | POOL_FREE(p) |
#define | GROW_ARRAY(basevar, sizevar, needed_size, resized, type) |
#define | AP_DOWNCASE 1 |
#define | AP_PROCESS_ENTITIES 2 |
#define | AP_TRIM_BLANKS 4 |
#define | FROB(x) |
#define | NAME_CHAR_P(x) |
#define | ADVANCE(p) |
#define | SKIP_WS(p) |
#define | SKIP_NON_WS(p) |
Functions | |
static void | convert_and_copy (struct pool *pool, const char *beg, const char *end, int flags) |
static const char * | advance_declaration (const char *beg, const char *end) |
static const char * | find_comment_end (const char *beg, const char *end) |
static int | name_allowed (const struct hash_table *ht, const char *b, const char *e) |
void | map_html_tags (const char *text, int size, void(*mapfun)(struct taginfo *, void *), void *maparg, int flags, const struct hash_table *allowed_tags, const struct hash_table *allowed_attributes) |
#define ADVANCE | ( | p | ) |
Definition at line 698 of file html-parse.c.
Referenced by map_html_tags().
#define AP_DOWNCASE 1 |
Definition at line 287 of file html-parse.c.
Referenced by convert_and_copy(), and map_html_tags().
#define AP_PROCESS_ENTITIES 2 |
Definition at line 288 of file html-parse.c.
Referenced by convert_and_copy(), and map_html_tags().
#define AP_TRIM_BLANKS 4 |
Definition at line 289 of file html-parse.c.
Referenced by convert_and_copy(), and map_html_tags().
#define BOUNDED_TO_ALLOCA | ( | beg, | |
end, | |||
place | |||
) |
Definition at line 108 of file html-parse.c.
Referenced by name_allowed().
#define countof | ( | array | ) | (sizeof (array) / sizeof (*(array))) |
Definition at line 132 of file html-parse.c.
Referenced by map_html_tags().
#define FROB | ( | x | ) |
Referenced by convert_and_copy().
#define GROW_ARRAY | ( | basevar, | |
sizevar, | |||
needed_size, | |||
resized, | |||
type | |||
) |
Definition at line 267 of file html-parse.c.
Referenced by map_html_tags().
#define NAME_CHAR_P | ( | x | ) |
Definition at line 446 of file html-parse.c.
Referenced by advance_declaration(), and map_html_tags().
#define PARAMS | ( | args | ) | () |
Definition at line 101 of file html-parse.c.
#define POOL_APPEND | ( | p, | |
beg, | |||
end | |||
) |
Definition at line 219 of file html-parse.c.
Referenced by convert_and_copy().
#define POOL_APPEND_CHR | ( | p, | |
ch | |||
) |
Definition at line 230 of file html-parse.c.
Referenced by convert_and_copy().
#define POOL_FREE | ( | p | ) |
Definition at line 245 of file html-parse.c.
Referenced by map_html_tags().
#define POOL_GROW | ( | p, | |
increase | |||
) |
Definition at line 212 of file html-parse.c.
Referenced by convert_and_copy().
#define POOL_INIT | ( | p, | |
initial_storage, | |||
initial_size | |||
) |
Definition at line 199 of file html-parse.c.
Referenced by map_html_tags().
#define POOL_REWIND | ( | p | ) | (p)->tail = 0 |
Definition at line 237 of file html-parse.c.
Referenced by map_html_tags().
#define SKIP_NON_WS | ( | p | ) |
Definition at line 714 of file html-parse.c.
#define SKIP_WS | ( | p | ) |
Definition at line 706 of file html-parse.c.
Referenced by map_html_tags().
#define XDIGIT_TO_NUM | ( | x | ) | ((x) < 'A' ? (x) - '0' : TOUPPER (x) - 'A' + 10) |
Definition at line 120 of file html-parse.c.
Referenced by convert_and_copy().
|
static |
|
static |
Definition at line 306 of file html-parse.c.
References AP_DOWNCASE, AP_PROCESS_ENTITIES, AP_TRIM_BLANKS, pool::contents, FROB, ISDIGIT, ISSPACE, ISXDIGIT, POOL_APPEND, POOL_APPEND_CHR, POOL_GROW, size, pool::tail, and XDIGIT_TO_NUM.
Referenced by map_html_tags().
|
static |
Definition at line 638 of file html-parse.c.
Referenced by map_html_tags().
void map_html_tags | ( | const char * | text, |
int | size, | ||
void(*)(struct taginfo *, void *) | mapfun, | ||
void * | maparg, | ||
int | flags, | ||
const struct hash_table * | allowed_tags, | ||
const struct hash_table * | allowed_attributes | ||
) |
Definition at line 741 of file html-parse.c.
References ADVANCE, advance_declaration(), AP_DOWNCASE, AP_PROCESS_ENTITIES, AP_TRIM_BLANKS, taginfo::attrs, pool::contents, convert_and_copy(), countof, taginfo::end_position, taginfo::end_tag_p, find_comment_end(), GROW_ARRAY, i, ISSPACE, memchr(), MHT_STRICT_COMMENTS, MHT_TRIM_VALUES, attr_pair::name, taginfo::name, name_allowed(), NAME_CHAR_P, attr_pair::name_pool_index, taginfo::nattrs, POOL_FREE, POOL_INIT, POOL_REWIND, size, SKIP_WS, taginfo::start_position, pool::tail, attr_pair::value, attr_pair::value_pool_index, attr_pair::value_raw_beginning, attr_pair::value_raw_size, and xfree.
|
static |
Definition at line 686 of file html-parse.c.
References BOUNDED_TO_ALLOCA.
Referenced by map_html_tags().