Lines Matching defs:n

294 	putchar('\n');
298 md_nodelist(struct roff_node *n)
300 while (n != NULL) {
301 md_node(n);
302 n = n->next;
307 md_node(struct roff_node *n)
312 if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)
318 n->flags & NODE_LINE &&
319 !roff_node_transparent(n))
325 n->flags &= ~NODE_ENDED;
327 if (n->type == ROFFT_TEXT) {
328 if (n->flags & NODE_DELIMC)
332 md_word(n->string);
333 if (n->flags & NODE_DELIMO)
337 } else if (n->tok < ROFF_MAX) {
338 switch (n->tok) {
340 process_children = md_pre_br(n);
343 process_children = md_pre_Pp(n);
350 act = md_act(n->tok);
351 cond = act->cond == NULL || (*act->cond)(n);
353 (n->end == ENDBODY_NOT || n->child != NULL))
354 process_children = (*act->pre)(n);
357 if (process_children && n->child != NULL)
358 md_nodelist(n->child);
360 if (n->flags & NODE_ENDED)
364 (*act->post)(n);
366 if (n->end != ENDBODY_NOT)
367 n->body->flags |= NODE_ENDED;
423 putchar('\n');
433 putchar('\n');
676 printf(" \n");
728 md_cond_head(struct roff_node *n)
730 return n->type == ROFFT_HEAD;
734 md_cond_body(struct roff_node *n)
736 return n->type == ROFFT_BODY;
740 md_pre_abort(struct roff_node *n)
746 md_pre_raw(struct roff_node *n)
750 if ((prefix = md_act(n->tok)->prefix) != NULL) {
760 md_post_raw(struct roff_node *n)
764 if ((suffix = md_act(n->tok)->suffix) != NULL) {
773 md_pre_word(struct roff_node *n)
777 if ((prefix = md_act(n->tok)->prefix) != NULL) {
785 md_post_word(struct roff_node *n)
789 if ((suffix = md_act(n->tok)->suffix) != NULL) {
796 md_post_pc(struct roff_node *n)
800 md_post_raw(n);
801 if (n->parent->tok != MDOC_Rs)
804 if ((nn = roff_node_next(n)) != NULL) {
806 if (nn->tok == n->tok &&
807 (nn = roff_node_prev(n)) != NULL &&
808 nn->tok == n->tok)
817 md_pre_skip(struct roff_node *n)
823 md_pre_syn(struct roff_node *n)
827 if ((n->flags & NODE_SYNPRETTY) == 0 ||
828 (np = roff_node_prev(n)) == NULL)
831 if (np->tok == n->tok &&
832 n->tok != MDOC_Ft &&
833 n->tok != MDOC_Fo &&
834 n->tok != MDOC_Fn) {
848 if (n->tok != MDOC_Fn && n->tok != MDOC_Fo) {
860 md_pre_An(struct roff_node *n)
862 switch (n->norm->An.auth) {
874 else if (n->sec == SEC_AUTHORS &&
882 md_pre_Ap(struct roff_node *n)
891 md_pre_Bd(struct roff_node *n)
893 switch (n->norm->Bd.type) {
896 return md_pre_Dl(n);
898 return md_pre_D1(n);
903 md_pre_Bk(struct roff_node *n)
905 switch (n->type) {
917 md_post_Bk(struct roff_node *n)
919 if (n->type == ROFFT_BODY)
924 md_pre_Bl(struct roff_node *n)
926 n->norm->Bl.count = 0;
927 if (n->norm->Bl.type == LIST_column)
928 md_pre_Dl(n);
934 md_post_Bl(struct roff_node *n)
936 n->norm->Bl.count = 0;
937 if (n->norm->Bl.type == LIST_column)
938 md_post_D1(n);
943 md_pre_D1(struct roff_node *n)
961 md_post_D1(struct roff_node *n)
972 md_pre_Dl(struct roff_node *n)
990 md_pre_En(struct roff_node *n)
992 if (n->norm->Es == NULL ||
993 n->norm->Es->child == NULL)
996 md_word(n->norm->Es->child->string);
1002 md_post_En(struct roff_node *n)
1004 if (n->norm->Es == NULL ||
1005 n->norm->Es->child == NULL ||
1006 n->norm->Es->child->next == NULL)
1010 md_word(n->norm->Es->child->next->string);
1014 md_pre_Eo(struct roff_node *n)
1016 if (n->end == ENDBODY_NOT &&
1017 n->parent->head->child == NULL &&
1018 n->child != NULL &&
1019 n->child->end != ENDBODY_NOT)
1021 else if (n->end != ENDBODY_NOT ? n->child != NULL :
1022 n->parent->head->child != NULL && (n->child != NULL ||
1023 (n->parent->tail != NULL && n->parent->tail->child != NULL)))
1029 md_post_Eo(struct roff_node *n)
1031 if (n->end != ENDBODY_NOT) {
1036 if (n->child == NULL && n->parent->head->child == NULL)
1039 if (n->parent->tail != NULL && n->parent->tail->child != NULL)
1046 md_pre_Fa(struct roff_node *n)
1050 am_Fa = n->tok == MDOC_Fa;
1053 n = n->child;
1055 while (n != NULL) {
1058 md_node(n);
1061 if ((n = n->next) != NULL)
1068 md_post_Fa(struct roff_node *n)
1072 if ((nn = roff_node_next(n)) != NULL && nn->tok == MDOC_Fa)
1077 md_pre_Fd(struct roff_node *n)
1079 md_pre_syn(n);
1080 md_pre_raw(n);
1085 md_post_Fd(struct roff_node *n)
1087 md_post_raw(n);
1092 md_post_Fl(struct roff_node *n)
1096 md_post_raw(n);
1097 if (n->child == NULL && (nn = roff_node_next(n)) != NULL &&
1103 md_pre_Fn(struct roff_node *n)
1105 md_pre_syn(n);
1107 if ((n = n->child) == NULL)
1112 md_node(n);
1118 if ((n = n->next) != NULL)
1119 md_pre_Fa(n);
1124 md_post_Fn(struct roff_node *n)
1127 if (n->flags & NODE_SYNPRETTY) {
1134 md_pre_Fo(struct roff_node *n)
1136 switch (n->type) {
1138 md_pre_syn(n);
1141 if (n->child == NULL)
1143 md_pre_raw(n);
1156 md_post_Fo(struct roff_node *n)
1158 switch (n->type) {
1160 if (n->child != NULL)
1161 md_post_raw(n);
1164 md_post_Fn(n);
1172 md_pre_In(struct roff_node *n)
1174 if (n->flags & NODE_SYNPRETTY) {
1175 md_pre_syn(n);
1189 md_post_In(struct roff_node *n)
1191 if (n->flags & NODE_SYNPRETTY) {
1202 md_pre_It(struct roff_node *n)
1206 switch (n->type) {
1211 bln = n->parent->parent;
1259 bln = n->parent->parent;
1266 md_pre_D1(n);
1279 md_post_It(struct roff_node *n)
1284 if (n->type != ROFFT_BODY)
1287 bln = n->parent->parent;
1299 md_post_D1(n);
1303 if (n->next == NULL)
1309 while ((n = n->prev) != NULL && n->type != ROFFT_HEAD)
1337 md_post_Lb(struct roff_node *n)
1339 if (n->sec == SEC_LIBRARY)
1359 md_pre_Lk(struct roff_node *n)
1363 if ((link = n->child) == NULL)
1367 punct = n->last;
1399 md_pre_Mt(struct roff_node *n)
1405 for (nch = n->child; nch != NULL; nch = nch->next)
1409 for (nch = n->child; nch != NULL; nch = nch->next) {
1422 md_pre_Nd(struct roff_node *n)
1431 md_pre_Nm(struct roff_node *n)
1433 switch (n->type) {
1436 md_pre_syn(n);
1440 md_pre_raw(n);
1449 md_post_Nm(struct roff_node *n)
1451 switch (n->type) {
1457 md_post_raw(n);
1465 md_pre_No(struct roff_node *n)
1472 md_pre_Ns(struct roff_node *n)
1479 md_post_Pf(struct roff_node *n)
1481 if (n->next != NULL && (n->next->flags & NODE_LINE) == 0)
1486 md_pre_Pp(struct roff_node *n)
1493 md_pre_Rs(struct roff_node *n)
1495 if (n->sec == SEC_SEE_ALSO)
1501 md_pre_Sh(struct roff_node *n)
1503 switch (n->type) {
1505 if (n->sec == SEC_AUTHORS)
1510 md_rawword(n->tok == MDOC_Sh ? "#" : "##");
1522 md_pre_Sm(struct roff_node *n)
1524 if (n->child == NULL)
1526 else if (strcmp("on", n->child->string) == 0)
1538 md_pre_Vt(struct roff_node *n)
1540 switch (n->type) {
1542 md_pre_syn(n);
1546 md_pre_raw(n);
1554 md_post_Vt(struct roff_node *n)
1556 switch (n->type) {
1559 md_post_raw(n);
1567 md_pre_Xr(struct roff_node *n)
1569 n = n->child;
1570 if (n == NULL)
1572 md_node(n);
1573 n = n->next;
1574 if (n == NULL)
1578 md_node(n);
1584 md_pre__T(struct roff_node *n)
1586 if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
1595 md_post__T(struct roff_node *n)
1598 if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
1602 md_post_pc(n);
1606 md_pre_br(struct roff_node *n)