Lines Matching refs:n

32 #define	DECL_ARGS const struct mdoc_meta *meta, struct mdoc_node *n
318 printf("\n.PD");
322 printf("\n.PD 0");
325 printf("\n.PP\n");
327 printf("\n.sp\n");
329 printf("\n.br\n");
331 putchar('\n');
334 printf(".br\n");
550 struct mdoc_node *n;
553 n = mdoc_node(mdoc)->child;
555 printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n",
561 printf(".nh\n.if n .ad l");
569 while (n != NULL) {
570 print_node(meta, n);
571 n = n->next;
573 putchar('\n');
587 if (MMAN_spc & outflags && MDOC_LINE & n->flags)
593 n->flags &= ~MDOC_ENDED;
595 if (MDOC_TEXT == n->type) {
601 ('.' == *n->string || '\'' == *n->string)) {
606 if (outflags & MMAN_Sm && ! (n->flags & MDOC_DELIMC))
608 print_word(n->string);
609 if (outflags & MMAN_Sm && ! (n->flags & MDOC_DELIMO))
616 act = manacts + n->tok;
617 cond = act->cond == NULL || (*act->cond)(meta, n);
618 if (cond && act->pre && (n->end == ENDBODY_NOT || n->nchild))
619 do_sub = (*act->pre)(meta, n);
628 for (sub = n->child; sub; sub = sub->next)
634 if (MDOC_ENDED & n->flags)
638 (*act->post)(meta, n);
640 if (ENDBODY_NOT != n->end)
641 n->body->flags |= MDOC_ENDED;
643 if (ENDBODY_NOSPACE == n->end)
651 return(MDOC_HEAD == n->type);
658 return(MDOC_BODY == n->type);
666 prefix = manacts[n->tok].prefix;
679 suffix = manacts[n->tok].suffix;
695 nchild = n->nchild;
696 for (n = n->child; n; n = n->next) {
698 print_word(n->string);
701 if (n->next == NULL)
708 if (n->next->next == NULL)
733 if (pre_em == manacts[n->tok].pre)
735 if (n->next) {
737 if (n->prev && n->prev->tok == n->tok &&
738 n->next->tok == n->tok)
750 if (n->parent && MDOC_Rs == n->parent->tok &&
751 n->parent->norm->Rs.quote_T) {
764 if (n->parent && MDOC_Rs == n->parent->tok &&
765 n->parent->norm->Rs.quote_T) {
771 post_percent(meta, n);
781 if (MDOC_HEAD == n->type) {
783 print_block(manacts[n->tok].prefix, 0);
798 if (MDOC_HEAD != n->type)
804 if (MDOC_Sh == n->tok && SEC_AUTHORS == n->sec)
810 pre_syn(const struct mdoc_node *n)
813 if (NULL == n->prev || ! (MDOC_SYNPRETTY & n->flags))
816 if (n->prev->tok == n->tok &&
817 MDOC_Ft != n->tok &&
818 MDOC_Fo != n->tok &&
819 MDOC_Fn != n->tok) {
824 switch (n->prev->tok) {
837 if (MDOC_Fn != n->tok && MDOC_Fo != n->tok) {
852 switch (n->norm->An.auth) {
864 else if (SEC_AUTHORS == n->sec &&
885 print_word(n->nchild == 1 &&
886 n->child->tok == MDOC_Mt ? "<" : "\\(la");
896 print_word(n->nchild == 1 &&
897 n->child->tok == MDOC_Mt ? ">" : "\\(ra");
906 if (DISP_unfilled == n->norm->Bd.type ||
907 DISP_literal == n->norm->Bd.type)
909 if (0 == n->norm->Bd.comp && NULL != n->parent->prev)
911 print_offs(n->norm->Bd.offs, 1);
921 if (DISP_unfilled == n->norm->Bd.type ||
922 DISP_literal == n->norm->Bd.type)
926 if (NULL != n->parent->next)
934 switch (n->type) {
942 switch (n->norm->Bf.font) {
960 if (MDOC_BODY == n->type)
968 switch (n->type) {
983 if (MDOC_BODY == n->type)
997 if (n->norm->Bl.offs) {
998 print_offs(n->norm->Bl.offs, 0);
1002 switch (n->norm->Bl.type) {
1004 n->norm->Bl.count = 0;
1012 if (n->nchild) {
1014 for (icol = 0; icol < n->norm->Bl.ncols; icol++)
1026 switch (n->norm->Bl.type) {
1028 if (n->nchild)
1032 n->norm->Bl.count = 0;
1038 if (n->norm->Bl.offs) {
1049 if (NULL != n->parent->next)
1066 n = n->child;
1067 if (n) {
1068 print_word(n->string);
1070 n = n->next;
1073 if (NULL == n)
1078 print_word(n->string);
1086 print_offs("6n", 0);
1097 if (NULL != n->parent->next)
1113 if (NULL == n->norm->Es ||
1114 NULL == n->norm->Es->child)
1117 print_word(n->norm->Es->child->string);
1126 if (NULL == n->norm->Es ||
1127 NULL == n->norm->Es->child ||
1128 NULL == n->norm->Es->child->next)
1132 print_word(n->norm->Es->child->next->string);
1140 if (n->end == ENDBODY_NOT &&
1141 n->parent->head->child == NULL &&
1142 n->child != NULL &&
1143 n->child->end != ENDBODY_NOT)
1145 else if (n->end != ENDBODY_NOT ? n->child != NULL :
1146 n->parent->head->child != NULL && (n->child != NULL ||
1147 (n->parent->tail != NULL && n->parent->tail->child != NULL)))
1157 if (n->end != ENDBODY_NOT) {
1162 body = n->child != NULL || n->parent->head->child != NULL;
1163 tail = n->parent->tail != NULL && n->parent->tail->child != NULL;
1178 am_Fa = MDOC_Fa == n->tok;
1181 n = n->child;
1183 while (NULL != n) {
1185 if (am_Fa || MDOC_SYNPRETTY & n->flags)
1187 print_node(meta, n);
1189 if (NULL != (n = n->next))
1199 if (NULL != n->next && MDOC_Fa == n->next->tok)
1207 pre_syn(n);
1226 if (n->nchild)
1236 if ( ! (n->nchild ||
1237 n->next == NULL ||
1238 n->next->type == MDOC_TEXT ||
1239 n->next->flags & MDOC_LINE))
1247 pre_syn(n);
1249 n = n->child;
1250 if (NULL == n)
1253 if (MDOC_SYNPRETTY & n->flags)
1254 print_block(".HP 4n", MMAN_nl);
1257 print_node(meta, n);
1263 n = n->next;
1264 if (NULL != n)
1265 pre_fa(meta, n);
1274 if (MDOC_SYNPRETTY & n->flags) {
1284 switch (n->type) {
1286 pre_syn(n);
1289 if (n->child == NULL)
1291 if (MDOC_SYNPRETTY & n->flags)
1292 print_block(".HP 4n", MMAN_nl);
1310 switch (n->type) {
1312 if (n->child != NULL)
1316 post_fn(meta, n);
1327 pre_syn(n);
1336 if (MDOC_SYNPRETTY & n->flags) {
1337 pre_syn(n);
1353 if (MDOC_SYNPRETTY & n->flags) {
1370 switch (n->type) {
1373 bln = n->parent->parent;
1375 (NULL == n->parent->prev &&
1417 print_width(&bln->norm->Bl, n->child);
1422 print_width(&bln->norm->Bl, n->child);
1423 putchar('\n');
1467 bln = n->parent->parent;
1469 switch (n->type) {
1510 if (NULL != n->next) {
1528 if (SEC_LIBRARY == n->sec)
1537 if (NULL == (link = n->child))
1577 if (MDOC_BLOCK == n->type) {
1579 pre_syn(n);
1581 if (MDOC_ELEM != n->type && MDOC_HEAD != n->type)
1583 name = n->child ? n->child->string : meta->name;
1586 if (MDOC_HEAD == n->type) {
1587 if (NULL == n->parent->prev)
1594 if (NULL == n->child)
1603 switch (n->type) {
1610 if (n->child != NULL || meta->name != NULL)
1638 if ( ! (n->next == NULL || n->next->flags & MDOC_LINE))
1646 if (MDOC_It != n->parent->tok)
1657 if (SEC_SEE_ALSO == n->sec) {
1671 nchild = n->nchild;
1675 for (n = n->child; n; n = n->next) {
1677 print_word(n->string);
1683 if (n->next == NULL)
1690 if (n->next->next == NULL)
1727 if (NULL == n->child)
1729 else if (0 == strcmp("on", n->child->string))
1771 if (MDOC_SYNPRETTY & n->flags) {
1772 switch (n->type) {
1774 pre_syn(n);
1790 if (MDOC_SYNPRETTY & n->flags && MDOC_BODY != n->type)
1799 n = n->child;
1800 if (NULL == n)
1802 print_node(meta, n);
1803 n = n->next;
1804 if (NULL == n)
1808 print_node(meta, n);
1817 print_word(manacts[n->tok].prefix);
1818 if (NULL == n->child)