Lines Matching refs:style
91 int style; /* STYLE_* */ member
946 font(int f, int style, int set) in font() argument
948 switch (style) in font()
1094 label(register Sfio_t* sp, int sep, register char* s, int about, int z, int level, int style, int f… in label() argument
1112 if ((ostyle = style) > (STYLE_nroff - (sep <= 0)) && f != FONT_LITERAL) in label()
1113 style = 0; in label()
1120 if (sep == ' ' && style == STYLE_nroff) in label()
1187 sfputr(sp, font(f, style, 1), -1); in label()
1210 sfputr(sp, font(f, style, 0), -1); in label()
1225 label(sp, 0, y, 0, -1, 0, style, FONT_ITALIC, ip, version, id, catalog); in label()
1261 sfputr(sp, font(f, style, 0), -1); in label()
1264 if (!f && style == STYLE_html) in label()
1276 , font(a, style, 1) in label()
1278 , font(a, style, 0) in label()
1286 sfputr(sp, font(a, style, !!(f ^= a)), -1); in label()
1313 if (style == STYLE_html) in label()
1342 if (style == STYLE_html) in label()
1349 if (style == STYLE_html) in label()
1382 sfputr(sp, font(f, style, 0), -1); in label()
1395 args(register Sfio_t* sp, register char* p, register int n, int flags, int style, Sfio_t* ip, int v… in args() argument
1410 b = style == STYLE_nroff ? "\\ " : " "; in args()
1414 if (style >= STYLE_man) in args()
1418 …s%s%s]", font(FONT_BOLD, style, 1), a, font(FONT_BOLD, style, 0), b, b, font(FONT_ITALIC, style, 1… in args()
1446 if (style == STYLE_html) in args()
1448 else if (style == STYLE_nroff) in args()
1450 else if (style == STYLE_api) in args()
1462 label(sp, sep, p, 0, n, 0, style, 0, ip, version, id, catalog); in args()
1472 item(Sfio_t* sp, char* s, int about, int level, int style, Sfio_t* ip, int version, char* id, char*… in item() argument
1482 if (style >= STYLE_nroff) in item()
1486 if (style == STYLE_html) in item()
1493 label(sp, 0, s + 1, about, -1, level, style, FONT_LITERAL, ip, version, id, catalog); in item()
1495 if (style >= STYLE_nroff) in item()
1497 else if (style == STYLE_html) in item()
1505 if (style >= STYLE_nroff) in item()
1511 if (style == STYLE_html) in item()
1525 label(sp, 0, s, about, -1, level, style, level ? FONT_BOLD : 0, ip, version, id, catalog); in item()
1534 if (style >= STYLE_nroff) in item()
1536 else if (style == STYLE_man) in item()
1538 else if (style != STYLE_options && style != STYLE_match || *s == '-' || *s == '+') in item()
1541 label(sp, 0, s, about, -1, level, style, FONT_BOLD, ip, version, id, catalog); in item()
1547 if (style >= STYLE_nroff) in item()
1550 if (style >= STYLE_nroff || !level) in item()
1552 if (par && style < STYLE_nroff) in item()
1567 trace_textout(Sfio_t* sp, register char* p, int style, int level, int bump, Sfio_t* ip, int version… in trace_textout() argument
1571 …lp: txt#%d +++ %2d \"%s\" style=%d level=%d bump=%d", line, ++depth, show(p), style, level, bump)); in trace_textout()
1572 p = textout(sp, p, style, level, bump, ip, version, id, catalog); in trace_textout()
1580 textout(Sfio_t* sp, register char* p, int style, int level, int bump, Sfio_t* ip, int version, char… in textout() argument
1583 #define textout(sp,p,style,level,bump,ip,version,id,catalog) trace_textout(sp,p,style,level,bump,ip… in textout() argument
1614 …if (level <= 1 || *p != '[' || *(p + 1) != '-' || style == STYLE_man && *(p + 2) == '?' || isalpha… in textout()
1641 if (style == STYLE_man) in textout()
1671 par = item(sp, e, about, level, style, ip, version, id, ID); in textout()
1708 par = item(sp, t, about, level, style, ip, version, id, catalog); in textout()
1716 if (style >= STYLE_nroff) in textout()
1727 p = textout(sp, p, style, level + bump + par + 1, 0, ip, version, id, catalog); in textout()
1747 if (style < STYLE_nroff) in textout()
1760 sfputr(sp, font(f, style, 0), -1); in textout()
1774 sfputr(sp, font(f, style, 0), -1); in textout()
1827 sfputr(sp, font(FONT_BOLD, style, 1), -1); in textout()
1835 sfputr(sp, font(FONT_BOLD, style, 0), -1); in textout()
1844 sfputr(sp, font(FONT_BOLD, style, 1), -1); in textout()
1852 sfputr(sp, font(FONT_BOLD, style, 0), -1); in textout()
1859 p = textout(sp, p, style, level + bump + !level, 0, ip, version, id, catalog); in textout()
1875 if (style != STYLE_keys) in textout()
1913 sfputr(sp, font(f, style, 0), -1); in textout()
1916 if (!f && style == STYLE_html) in textout()
1928 , font(a, style, 1) in textout()
1930 , font(a, style, 0) in textout()
1938 sfputr(sp, font(a, style, !!(f ^= a)), -1); in textout()
1944 if (style != STYLE_keys) in textout()
1981 if (style == STYLE_html) in textout()
2010 if (style == STYLE_html) in textout()
2017 if (style == STYLE_html) in textout()
2024 if (style == STYLE_nroff) in textout()
2028 if (style == STYLE_nroff) in textout()
2035 if (style == STYLE_nroff) in textout()
2122 int style; in opthelp() local
2159 style = opt_info.state->style; in opthelp()
2161 style = STYLE_options; in opthelp()
2163 style = STYLE_match; in opthelp()
2165 style = STYLE_man; in opthelp()
2166 …(Help_t*)search(styles, elementsof(styles), sizeof(styles[0]), (char*)what + 1)) && hp->style >= 0) in opthelp()
2168 style = hp->style; in opthelp()
2174 if ((style = opt_info.state->force) < STYLE_man) in opthelp()
2175 style = STYLE_man; in opthelp()
2216 if (style <= STYLE_usage) in opthelp()
2220 if (style >= STYLE_match && style < STYLE_keys && !(sp_body = sfstropen())) in opthelp()
2223 switch (style) in opthelp()
2272 switch (style) in opthelp()
2610 if (style > STYLE_short && style < STYLE_nroff && version < 1) in opthelp()
2612 style = STYLE_short; in opthelp()
2619 else if (style == STYLE_short && prefix < 2) in opthelp()
2620 style = STYLE_long; in opthelp()
2629 else if (style >= STYLE_match) in opthelp()
2692 if (style >= STYLE_man) in opthelp()
2699 p = textout(sp_misc, p, style, 1, 3, sp_info, version, id, catalog); in opthelp()
2703 else if (style == STYLE_match && *what == '-') in opthelp()
2720 p = textout(sp, p, style, 1, 3, sp_info, version, id, catalog); in opthelp()
2731 if (style >= STYLE_man) in opthelp()
2733 p = textout(sp_body, p, style, 0, 0, sp_info, version, id, catalog); in opthelp()
2742 else if (style == STYLE_match && *what == '+') in opthelp()
2748 p = textout(sp, p, style, 1, 3, sp_info, version, id, catalog); in opthelp()
2755 p = textout(sp, p, style, 1, 3, sp_info, version, id, catalog); in opthelp()
2796 if (style <= STYLE_short) in opthelp()
2822 if (style == STYLE_match) in opthelp()
2854 if (style >= STYLE_nroff) in opthelp()
2859 if (style <= STYLE_long) in opthelp()
2872 if (style < STYLE_match) in opthelp()
2878 else if (*p == '\\' && style==STYLE_posix) in opthelp()
2888 if (style == STYLE_match && !z) in opthelp()
2893 if (style == STYLE_long || prefix < 2 || (q->flags & OPT_long)) in opthelp()
2895 else if (style <= STYLE_short) in opthelp()
2951 if (style <= STYLE_short && !y && !mutex || style == STYLE_posix) in opthelp()
2953 if (style != STYLE_posix && !sfstrtell(sp)) in opthelp()
2966 if (style == STYLE_posix && y) in opthelp()
2971 if (style >= STYLE_match) in opthelp()
2977 …item(sp_body, (flags & OPT_functions) ? C("FUNCTIONS") : C("OPTIONS"), 0, 0, style, sp_info, versi… in opthelp()
2979 if (style >= STYLE_nroff) in opthelp()
3010 if (style >= STYLE_nroff) in opthelp()
3020 label(sp_body, ' ', w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog); in opthelp()
3032 if (label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, catalog)) in opthelp()
3035 label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, native); in opthelp()
3057 label(sp_body, 0, y, 0, -1, 0, style, 0, sp_info, version, id, catalog); in opthelp()
3071 sfputr(sp_body, font(FONT_BOLD, style, 1), -1); in opthelp()
3083 sfputr(sp_body, font(FONT_BOLD, style, 0), -1); in opthelp()
3103 if (label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog)) in opthelp()
3106 label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, native); in opthelp()
3117 label(sp_body, 0, y, 0, -1, 0, style, FONT_ITALIC, sp_info, version, id, catalog); in opthelp()
3122 if (style >= STYLE_match) in opthelp()
3125 textout(sp_body, d, style, 0, 3, sp_info, version, id, catalog); in opthelp()
3127 textout(sp_body, u, style, 0, 3, sp_info, version, id, catalog); in opthelp()
3137 textout(sp_body, t, style, 0, 0, sp_info, version, NiL, NiL); in opthelp()
3141 …p = u ? skip(p + 1, 0, 0, 0, 0, 1, 1, version) : textout(sp_body, p, style, 4, 0, sp_info, version… in opthelp()
3164 textout(sp_body, t, style, 4, 0, sp_info, version, NiL, NiL); in opthelp()
3181 textout(sp_body, t, style, 4, 0, sp_info, version, NiL, NiL); in opthelp()
3189 if (style >= STYLE_match) in opthelp()
3190 p = textout(sp_body, p, style, 4, 0, sp_info, version, id, catalog); in opthelp()
3206 item(sp_body, C("IMPLEMENTATION"), 0, 0, style, sp_info, version, id, ID); in opthelp()
3214 if (style >= STYLE_keys) in opthelp()
3218 if (style == STYLE_keys && sfstrtell(mp) > 1) in opthelp()
3225 if (sfstrtell(sp) && style != STYLE_posix) in opthelp()
3227 if (style == STYLE_nroff) in opthelp()
3323 if (style == STYLE_match) in opthelp()
3354 if (style >= STYLE_man) in opthelp()
3365 item(sp, C("SYNOPSIS"), 0, 0, style, sp_info, version, id, ID); in opthelp()
3371 if (style >= STYLE_match) in opthelp()
3373 args(sp, x, xl, flags, style, sp_info, version, id, catalog); in opthelp()
3381 if (style < STYLE_match && sfstrtell(sp)) in opthelp()
3390 if (x && style != STYLE_posix) in opthelp()
3391 args(sp, x, xl, flags, style, sp_info, version, id, catalog); in opthelp()
3407 …m = strlen((style <= STYLE_long && error_info.id && !strchr(error_info.id, '/')) ? error_info.id :… in opthelp()
3408 margin = style == STYLE_api ? (8 * 1024) : (opt_info.state->width - 1); in opthelp()
3411 if (style >= STYLE_man || matched < 0) in opthelp()
3418 if (style == STYLE_html) in opthelp()
3442 ip->stop = (ip+1)->stop = style >= STYLE_html ? 0 : 2; in opthelp()
3462 if ((style == STYLE_man || style == STYLE_html) && (!head || *p != ' ' && *p != '\t')) in opthelp()
3464 if (style == STYLE_man) in opthelp()
3471 if (style == STYLE_html && (*p != '<' || !strneq(p, "<BR>", 4) && !strneq(p, "<P>", 3))) in opthelp()
3497 if (style == STYLE_html) in opthelp()
3544 if (style == STYLE_nroff && !co) in opthelp()
3547 else if (style == STYLE_html) in opthelp()
3678 if (style == STYLE_html) in opthelp()
4021 opt_info.state->style = STYLE_short; in optget()
4121 opt_info.state->style = STYLE_long; in optget()
5129 if (hp->style < STYLE_man || !(s = argv[opt_info.index]) || s[0] != '-' || s[1] != '-' || !s[2]) in optget()
5135 opt_info.state->force = hp->style; in optget()