19%define api.prefix {html}
89 .size =
sizeof(
void *),
90 .link = offsetof(
pitem, link),
95 .size =
sizeof(
void *),
96 .link = offsetof(
pitem, link),
122 for (
size_t i = 0; i < p->
lp.
nitems; i++) {
286 for (
s =
HTMLstate.fontstack; (next =
s->pfont);
s = next) {
333 if (c !=
' ')
return 1;
351 if ((f.
size < 0.0) && (curfont->
size >= 0.0))
400%type <cell>
cell cells
402%type <tbl>
table fonttable
492 htmlerror (
"Syntax error: non-space string used before <TABLE>");
503 htmlerror (
"Syntax error: non-space string used after </TABLE>");
static void agxbfree(agxbuf *xb)
free any malloced resources
static char * agxbuse(agxbuf *xb)
static char * agxbdisown(agxbuf *xb)
Memory allocation wrappers that exit on failure.
static char * gv_strdup(const char *original)
static void * gv_calloc(size_t nmemb, size_t size)
static void * gv_alloc(size_t size)
CDT_API Dtlink_t * dtflatten(Dt_t *)
CDT_API int dtsize(Dt_t *)
CDT_API int dtclose(Dt_t *)
CDT_API Dtmethod_t * Dtqueue
queue: insert at top, delete at tail
CDT_API Dt_t * dtopen(Dtdisc_t *, Dtmethod_t *)
void error(int level, const char *s,...)
static int cnt(Dict_t *d, Dtlink_t **set)
void htmlerror(const char *msg)
int initHTMLlexer(char *src, agxbuf *xb, htmlenv_t *env)
static struct @74 HTMLstate
static htmllabel_t * mkLabel(void *obj, char kind)
static htmltxt_t * mkText(void)
static void appendFItemList(agxbuf *ag)
static void cleanTbl(htmltbl_t *tp)
static void appendFLineList(int v)
static void setCell(htmlcell_t *cp, void *obj, char kind)
static pitem * addRow(void)
static void cleanCell(htmlcell_t *cp)
static int nonSpace(char *s)
static void free_citem(void *item)
static Dtdisc_t fspanDisc
static void popFont(void)
static pitem * lastRow(void)
static void free_ritem(void *item)
static void freeFontstack(void)
static void free_fitem(void *item)
static void free_fspan(void *span)
static void pushFont(textfont_t *fp)
font text n_font italic text n_italic underline text n_underline overline text n_overline bold text n_bold sup text n_sup sub text n_sub strike text n_strike
underline table n_underline
htmllabel_t * parseHTML(char *txt, int *warn, htmlenv_t *env)
overline table n_overline
rows T_end_table opt_space
void free_html_text(htmltxt_t *t)
void free_html_label(htmllabel_t *lp, int root)
void free_html_data(htmldata_t *dp)
static int table[NTYPES][NTYPES]
result of partitioning available space, part of maze
bool hrule
horizontal rule
struct htmltbl_t::@75::@77 p