Lines Matching defs:n

303 	putchar('\n');
307 md_nodelist(struct roff_node *n)
309 while (n != NULL) {
310 md_node(n);
311 n = n->next;
316 md_node(struct roff_node *n)
321 if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)
327 n->flags & NODE_LINE &&
328 !roff_node_transparent(n))
334 n->flags &= ~NODE_ENDED;
336 if (n->type == ROFFT_TEXT) {
337 if (n->flags & NODE_DELIMC)
341 md_word(n->string);
342 if (n->flags & NODE_DELIMO)
346 } else if (n->tok < ROFF_MAX) {
347 switch (n->tok) {
349 process_children = md_pre_br(n);
352 process_children = md_pre_Pp(n);
359 act = md_act(n->tok);
360 cond = act->cond == NULL || (*act->cond)(n);
362 (n->end == ENDBODY_NOT || n->child != NULL))
363 process_children = (*act->pre)(n);
366 if (process_children && n->child != NULL)
367 md_nodelist(n->child);
369 if (n->flags & NODE_ENDED)
373 (*act->post)(n);
375 if (n->end != ENDBODY_NOT)
376 n->body->flags |= NODE_ENDED;
432 putchar('\n');
442 putchar('\n');
685 printf(" \n");
737 md_cond_head(struct roff_node *n)
739 return n->type == ROFFT_HEAD;
743 md_cond_body(struct roff_node *n)
745 return n->type == ROFFT_BODY;
749 md_pre_abort(struct roff_node *n)
755 md_pre_raw(struct roff_node *n)
759 if ((prefix = md_act(n->tok)->prefix) != NULL) {
769 md_post_raw(struct roff_node *n)
773 if ((suffix = md_act(n->tok)->suffix) != NULL) {
782 md_pre_word(struct roff_node *n)
786 if ((prefix = md_act(n->tok)->prefix) != NULL) {
794 md_post_word(struct roff_node *n)
798 if ((suffix = md_act(n->tok)->suffix) != NULL) {
805 md_post_pc(struct roff_node *n)
809 md_post_raw(n);
810 if (n->parent->tok != MDOC_Rs)
813 if ((nn = roff_node_next(n)) != NULL) {
815 if (nn->tok == n->tok &&
816 (nn = roff_node_prev(n)) != NULL &&
817 nn->tok == n->tok)
826 md_pre_skip(struct roff_node *n)
832 md_pre_syn(struct roff_node *n)
836 if ((n->flags & NODE_SYNPRETTY) == 0 ||
837 (np = roff_node_prev(n)) == NULL)
840 if (np->tok == n->tok &&
841 n->tok != MDOC_Ft &&
842 n->tok != MDOC_Fo &&
843 n->tok != MDOC_Fn) {
857 if (n->tok != MDOC_Fn && n->tok != MDOC_Fo) {
869 md_pre_An(struct roff_node *n)
871 switch (n->norm->An.auth) {
883 else if (n->sec == SEC_AUTHORS &&
891 md_pre_Ap(struct roff_node *n)
900 md_pre_Bd(struct roff_node *n)
902 switch (n->norm->Bd.type) {
905 return md_pre_Dl(n);
907 return md_pre_D1(n);
912 md_pre_Bk(struct roff_node *n)
914 switch (n->type) {
926 md_post_Bk(struct roff_node *n)
928 if (n->type == ROFFT_BODY)
933 md_pre_Bl(struct roff_node *n)
935 n->norm->Bl.count = 0;
936 if (n->norm->Bl.type == LIST_column)
937 md_pre_Dl(n);
943 md_post_Bl(struct roff_node *n)
945 n->norm->Bl.count = 0;
946 if (n->norm->Bl.type == LIST_column)
947 md_post_D1(n);
952 md_pre_D1(struct roff_node *n)
970 md_post_D1(struct roff_node *n)
981 md_pre_Dl(struct roff_node *n)
999 md_pre_En(struct roff_node *n)
1001 if (n->norm->Es == NULL ||
1002 n->norm->Es->child == NULL)
1005 md_word(n->norm->Es->child->string);
1011 md_post_En(struct roff_node *n)
1013 if (n->norm->Es == NULL ||
1014 n->norm->Es->child == NULL ||
1015 n->norm->Es->child->next == NULL)
1019 md_word(n->norm->Es->child->next->string);
1023 md_pre_Eo(struct roff_node *n)
1025 if (n->end == ENDBODY_NOT &&
1026 n->parent->head->child == NULL &&
1027 n->child != NULL &&
1028 n->child->end != ENDBODY_NOT)
1030 else if (n->end != ENDBODY_NOT ? n->child != NULL :
1031 n->parent->head->child != NULL && (n->child != NULL ||
1032 (n->parent->tail != NULL && n->parent->tail->child != NULL)))
1038 md_post_Eo(struct roff_node *n)
1040 if (n->end != ENDBODY_NOT) {
1045 if (n->child == NULL && n->parent->head->child == NULL)
1048 if (n->parent->tail != NULL && n->parent->tail->child != NULL)
1055 md_pre_Fa(struct roff_node *n)
1059 am_Fa = n->tok == MDOC_Fa;
1062 n = n->child;
1064 while (n != NULL) {
1067 md_node(n);
1070 if ((n = n->next) != NULL)
1077 md_post_Fa(struct roff_node *n)
1081 if ((nn = roff_node_next(n)) != NULL && nn->tok == MDOC_Fa)
1086 md_pre_Fd(struct roff_node *n)
1088 md_pre_syn(n);
1089 md_pre_raw(n);
1094 md_post_Fd(struct roff_node *n)
1096 md_post_raw(n);
1101 md_post_Fl(struct roff_node *n)
1105 md_post_raw(n);
1106 if (n->child == NULL && (nn = roff_node_next(n)) != NULL &&
1112 md_pre_Fn(struct roff_node *n)
1114 md_pre_syn(n);
1116 if ((n = n->child) == NULL)
1121 md_node(n);
1127 if ((n = n->next) != NULL)
1128 md_pre_Fa(n);
1133 md_post_Fn(struct roff_node *n)
1136 if (n->flags & NODE_SYNPRETTY) {
1143 md_pre_Fo(struct roff_node *n)
1145 switch (n->type) {
1147 md_pre_syn(n);
1150 if (n->child == NULL)
1152 md_pre_raw(n);
1165 md_post_Fo(struct roff_node *n)
1167 switch (n->type) {
1169 if (n->child != NULL)
1170 md_post_raw(n);
1173 md_post_Fn(n);
1181 md_pre_In(struct roff_node *n)
1183 if (n->flags & NODE_SYNPRETTY) {
1184 md_pre_syn(n);
1198 md_post_In(struct roff_node *n)
1200 if (n->flags & NODE_SYNPRETTY) {
1211 md_pre_It(struct roff_node *n)
1215 switch (n->type) {
1220 bln = n->parent->parent;
1268 bln = n->parent->parent;
1275 md_pre_D1(n);
1288 md_post_It(struct roff_node *n)
1293 if (n->type != ROFFT_BODY)
1296 bln = n->parent->parent;
1308 md_post_D1(n);
1312 if (n->next == NULL)
1318 while ((n = n->prev) != NULL && n->type != ROFFT_HEAD)
1346 md_post_Lb(struct roff_node *n)
1348 if (n->sec == SEC_LIBRARY)
1368 md_pre_Lk(struct roff_node *n)
1372 if ((link = n->child) == NULL)
1376 punct = n->last;
1408 md_pre_Mt(struct roff_node *n)
1414 for (nch = n->child; nch != NULL; nch = nch->next)
1418 for (nch = n->child; nch != NULL; nch = nch->next) {
1431 md_pre_Nd(struct roff_node *n)
1440 md_pre_Nm(struct roff_node *n)
1442 switch (n->type) {
1445 md_pre_syn(n);
1449 md_pre_raw(n);
1458 md_post_Nm(struct roff_node *n)
1460 switch (n->type) {
1466 md_post_raw(n);
1474 md_pre_No(struct roff_node *n)
1481 md_pre_Ns(struct roff_node *n)
1488 md_post_Pf(struct roff_node *n)
1490 if (n->next != NULL && (n->next->flags & NODE_LINE) == 0)
1495 md_pre_Pp(struct roff_node *n)
1502 md_pre_Rs(struct roff_node *n)
1504 if (n->sec == SEC_SEE_ALSO)
1510 md_pre_Sh(struct roff_node *n)
1512 switch (n->type) {
1514 if (n->sec == SEC_AUTHORS)
1519 md_rawword(n->tok == MDOC_Sh ? "#" : "##");
1531 md_pre_Sm(struct roff_node *n)
1533 if (n->child == NULL)
1535 else if (strcmp("on", n->child->string) == 0)
1547 md_pre_Vt(struct roff_node *n)
1549 switch (n->type) {
1551 md_pre_syn(n);
1555 md_pre_raw(n);
1563 md_post_Vt(struct roff_node *n)
1565 switch (n->type) {
1568 md_post_raw(n);
1576 md_pre_Xr(struct roff_node *n)
1578 n = n->child;
1579 if (n == NULL)
1581 md_node(n);
1582 n = n->next;
1583 if (n == NULL)
1587 md_node(n);
1593 md_pre__R(struct roff_node *n)
1598 arg = n->child->string;
1621 md_pre__T(struct roff_node *n)
1623 if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
1632 md_post__T(struct roff_node *n)
1635 if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
1639 md_post_pc(n);
1643 md_pre_br(struct roff_node *n)