Lines Matching defs:tag
119 static void print_ctag(struct html *, struct tag *);
133 h->tag = NULL;
153 struct tag *tag;
157 while ((tag = h->tag) != NULL) {
158 h->tag = tag->next;
159 free(tag);
186 struct tag *t;
279 struct tag *t;
281 for (t = h->tag; t != NULL && t->closed == 0; t = t->next) {
282 switch(t->tag) {
304 struct tag *t;
307 for (t = h->tag; t != NULL; t = t->next)
308 if (t->tag == TAG_PRE)
581 struct tag *
582 print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
585 struct tag *t;
590 tflags = htmltags[tag].flags;
592 /* Push this tag onto the stack of open scopes. */
595 t = mandoc_malloc(sizeof(struct tag));
596 t->tag = tag;
597 t->next = h->tag;
600 h->tag = t;
623 /* Print out the tag name and attributes. */
626 print_word(h, htmltags[tag].name);
709 if (HTML_AUTOCLOSE & htmltags[tag].flags)
728 print_ctag(struct html *h, struct tag *tag)
732 if (tag->closed == 0) {
733 tag->closed = 1;
734 if (tag == h->metaf)
736 if (tag == h->tblt)
739 tflags = htmltags[tag->tag].flags;
749 print_word(h, htmltags[tag->tag].name);
754 if (tag->refcnt == 0) {
755 h->tag = tag->next;
756 free(tag);
824 print_tagq(struct html *h, const struct tag *until)
826 struct tag *this, *next;
828 for (this = h->tag; this != NULL; this = next) {
840 print_stagq(struct html *h, const struct tag *suntil)
842 struct tag *this, *next;
844 for (this = h->tag; this != NULL; this = next) {
847 (this->tag == TAG_P || this->tag == TAG_PRE)))