ELinks 0.18.0
|
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "config/options.h"
#include "document/css/apply.h"
#include "document/css/css.h"
#include "document/css/parser.h"
#include "document/html/parser/forms.h"
#include "document/html/parser/general.h"
#include "document/html/parser/link.h"
#include "document/html/parser/parse.h"
#include "document/html/parser/stack.h"
#include "document/html/parser.h"
#include "document/html/renderer.h"
#include "document/options.h"
#include "intl/charsets.h"
#include "util/conv.h"
#include "util/error.h"
#include "util/fastfind.h"
#include "util/memdebug.h"
#include "util/memory.h"
#include "util/string.h"
#include "document/html/internal.h"
Data Structures | |
struct | element_info |
Macros | |
#define | end_of_tag(c) ((c) == '>' || (c) == '<') |
#define | next_char() if (++e == eof) return -1; |
#define | realloc_chrs(x, l) mem_align_alloc(x, l, (l) + 1, 0xFF) |
#define | add_chr(s, l, c) |
#define | WIDTH_PIXELS2CHARS(width) ((width) + (HTML_CHAR_WIDTH - 1) / 2) / HTML_CHAR_WIDTH; |
#define | NUMBER_OF_TAGS (sizeof_array(elements) - 1) |
#define | ELEMENT_RENDER_PROLOGUE |
Enumerations | |
enum | element_type { ET_NESTABLE , ET_NON_NESTABLE , ET_NON_PAIRABLE , ET_LI } |
Functions | |
static int | atchr (unsigned char c) |
int | parse_element (char *e, char *eof, char **name, int *namelen, char **attr, char **end) |
char * | get_attr_value (char *e, const char *name, int cp, enum html_attr_flags flags) |
int | get_num (char *a, const char *name, int cp) |
int | get_num2 (char *al) |
int | get_width (char *a, const char *name, int limited, struct html_context *html_context) |
int | get_width2 (char *value, int limited, struct html_context *html_context) |
char * | skip_comment (char *html, char *eof) |
static void | tags_list_reset (void) |
static struct fastfind_key_value * | tags_list_next (void) |
void | init_tags_lookup (void) |
void | free_tags_lookup (void) |
static char * | process_element (char *name, int namelen, int endingtag, char *html, char *prev_html, char *eof, char *attr, struct html_context *html_context) |
const char * | count_newline_entities (const char *html, const char *eof, int *newlines_out) |
void | parse_html (char *html, char *eof, struct part *part, char *head, struct html_context *html_context) |
static char * | start_element (struct element_info *ei, char *name, int namelen, char *html, char *eof, char *attr, struct html_context *html_context) |
static char * | end_element (struct element_info *ei, char *name, int namelen, char *html, char *eof, char *attr, struct html_context *html_context) |
void | scan_http_equiv (char *s, char *eof, struct string *head, struct string *title, int cp) |
Variables | |
static struct element_info | elements [] |
static struct element_info * | internal_pointer |
static struct fastfind_index | ff_tags_index = INIT_FASTFIND_INDEX("tags_lookup", tags_list_reset, tags_list_next) |
#define ELEMENT_RENDER_PROLOGUE |
#define end_of_tag | ( | c | ) | ((c) == '>' || (c) == '<') |
#define next_char | ( | ) | if (++e == eof) return -1; |
#define NUMBER_OF_TAGS (sizeof_array(elements) - 1) |
#define realloc_chrs | ( | x, | |
l ) mem_align_alloc(x, l, (l) + 1, 0xFF) |
#define WIDTH_PIXELS2CHARS | ( | width | ) | ((width) + (HTML_CHAR_WIDTH - 1) / 2) / HTML_CHAR_WIDTH; |
enum element_type |
|
inlinestatic |
const char * count_newline_entities | ( | const char * | html, |
const char * | eof, | ||
int * | newlines_out ) |
|
static |
void free_tags_lookup | ( | void | ) |
char * get_attr_value | ( | char * | e, |
const char * | name, | ||
int | cp, | ||
enum html_attr_flags | flags ) |
int get_num | ( | char * | a, |
const char * | name, | ||
int | cp ) |
int get_num2 | ( | char * | al | ) |
int get_width | ( | char * | a, |
const char * | name, | ||
int | limited, | ||
struct html_context * | html_context ) |
int get_width2 | ( | char * | value, |
int | limited, | ||
struct html_context * | html_context ) |
void init_tags_lookup | ( | void | ) |
int parse_element | ( | char * | e, |
char * | eof, | ||
char ** | name, | ||
int * | namelen, | ||
char ** | attr, | ||
char ** | end ) |
void parse_html | ( | char * | html, |
char * | eof, | ||
struct part * | part, | ||
char * | head, | ||
struct html_context * | html_context ) |
|
static |
char * skip_comment | ( | char * | html, |
char * | eof ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |