Lines Matching refs:style

91 	int		style;		/* STYLE_*			*/
222 Z("List the usage translation key strings with C style escapes."),
236 Z("List the usage string with C style escapes."),
253 the \aoption\a output in the \aitem\a style. Otherwise print \
1166 * return the bold set/unset sequence for style
1170 font(int f, int style, int set)
1172 switch (style)
1273 label(register Sfio_t* sp, int sep, register char* s, int about, int z, int level, int style, int f, Sfio_t* ip, int version, char* id, char* catalog)
1292 if ((ostyle = style) > (STYLE_nroff - (sep <= 0)) && f != FONT_LITERAL && f >= 0)
1293 style = 0;
1300 if (sep == ' ' && style == STYLE_nroff)
1370 sfputr(sp, font(f, style, 1), -1);
1393 sfputr(sp, font(f, style, 0), -1);
1408 label(sp, 0, y, 0, -1, 0, style, f >= 0 ? FONT_ITALIC : f, ip, version, id, catalog);
1446 sfputr(sp, font(f, style, 0), -1);
1449 if (!f && style == STYLE_html)
1471 , font(a, style, 1)
1473 , font(a, style, 0)
1481 sfputr(sp, font(a, style, !!(f ^= a)), -1);
1509 if (style == STYLE_html)
1538 if (style == STYLE_html)
1545 if (style == STYLE_html)
1552 if (style == STYLE_html)
1585 sfputr(sp, font(f, style, 0), -1);
1598 args(register Sfio_t* sp, register char* p, register int n, int flags, int style, Sfio_t* ip, int version, char* id, char* catalog)
1613 b = style == STYLE_nroff ? "\\ " : " ";
1617 if (style >= STYLE_man)
1621 sfprintf(sp, "\t%s%s%s%s[%s%s%s%s%s]", font(FONT_BOLD, style, 1), a, font(FONT_BOLD, style, 0), b, b, font(FONT_ITALIC, style, 1), o, font(FONT_ITALIC, style, 0), b);
1649 if (style == STYLE_html)
1651 else if (style == STYLE_nroff)
1653 else if (style == STYLE_api)
1665 label(sp, sep, p, 0, n, 0, style, 0, ip, version, id, catalog);
1670 * according to {...} level and style
1675 item(Sfio_t* sp, char* s, int about, int level, int style, Sfio_t* ip, int version, char* id, char* catalog)
1685 if (style >= STYLE_nroff)
1689 if (style == STYLE_html)
1696 label(sp, 0, s + 1, about, -1, level, style, FONT_LITERAL, ip, version, id, catalog);
1698 if (style >= STYLE_nroff)
1700 else if (style == STYLE_html)
1708 if (style >= STYLE_nroff)
1714 if (style == STYLE_html)
1726 label(sp, 0, s, about, -1, level, style, -1, ip, version, id, catalog);
1728 label(sp, 0, s, about, -1, level, style, level ? FONT_BOLD : 0, ip, version, id, catalog);
1737 if (style >= STYLE_nroff)
1739 else if (style == STYLE_man)
1741 else if (style != STYLE_options && style != STYLE_match || *s == '-' || *s == '+')
1744 label(sp, 0, s, about, -1, level, style, FONT_BOLD, ip, version, id, catalog);
1750 if (style >= STYLE_nroff)
1753 if (style >= STYLE_nroff || !level)
1755 if (par && style < STYLE_nroff)
1762 * output text to sp from p according to style
1770 trace_textout(Sfio_t* sp, register char* p, char* conform, int conformlen, int style, int level, int bump, Sfio_t* ip, int version, char* id, char* catalog, int line)
1774 message((-21, "opthelp: txt#%d +++ %2d \"%s\" style=%d level=%d bump=%d", line, ++depth, show(p), style, level, bump));
1775 p = textout(sp, p, conform, conformlen, style, level, bump, ip, version, id, catalog);
1783 textout(Sfio_t* sp, register char* s, char* conform, int conformlen, int style, int level, int bump, Sfio_t* ip, int version, char* id, char* catalog)
1786 #define textout(sp,s,conform,conformlen,style,level,bump,ip,version,id,catalog) trace_textout(sp,s,conform,conformlen,style,level,bump,ip,version,id,catalog,__LINE__)
1818 if (level <= 1 || *s != '[' || *(s + 1) != '-' || style == STYLE_man && *(s + 2) == '?' || isalpha(*(s + 2)))
1845 if (style == STYLE_man)
1875 par = item(sp, w, about, level, style, ip, version, id, ID);
1912 par = item(sp, t, about, level, style, ip, version, id, catalog);
1920 if (style >= STYLE_nroff)
1931 s = textout(sp, s, conform, conformlen, style, level + bump + par + 1, 0, ip, version, id, catalog);
1951 if (style < STYLE_nroff)
1969 sfputr(sp, font(f, style, 0), -1);
1983 sfputr(sp, font(f, style, 0), -1);
2036 sfputr(sp, font(FONT_BOLD, style, 1), -1);
2044 sfputr(sp, font(FONT_BOLD, style, 0), -1);
2053 sfputr(sp, font(FONT_BOLD, style, 1), -1);
2061 sfputr(sp, font(FONT_BOLD, style, 0), -1);
2068 s = textout(sp, s, 0, 0, style, level + bump + !level, 0, ip, version, id, catalog);
2084 if (style != STYLE_keys)
2122 sfputr(sp, font(f, style, 0), -1);
2125 if (!f && style == STYLE_html)
2147 , font(a, style, 1)
2149 , font(a, style, 0)
2157 sfputr(sp, font(a, style, !!(f ^= a)), -1);
2163 if (style != STYLE_keys)
2200 if (style == STYLE_html)
2229 if (style == STYLE_html)
2236 if (style == STYLE_html)
2243 if (style == STYLE_nroff)
2247 if (style == STYLE_nroff)
2254 if (style == STYLE_nroff)
2343 int style;
2381 style = state.style;
2383 style = STYLE_options;
2385 style = STYLE_match;
2387 style = STYLE_man;
2388 else if ((hp = (Help_t*)search(styles, elementsof(styles), sizeof(styles[0]), (char*)what + 1)) && hp->style >= 0)
2390 style = hp->style;
2396 if ((style = state.force) < STYLE_man)
2397 style = STYLE_man;
2451 if (style <= STYLE_usage)
2455 if (style >= STYLE_match && style < STYLE_keys && !(sp_body = sfstropen()))
2458 switch (style)
2505 switch (style)
2843 if (style > STYLE_short && style < STYLE_nroff && version < 1)
2845 style = STYLE_short;
2852 else if (style == STYLE_short && prefix < 2)
2853 style = STYLE_long;
2862 else if (style >= STYLE_match)
2933 if (style >= STYLE_man)
2940 p = textout(sp_misc, p, cb, cl, style, 1, 3, sp_info, version, id, catalog);
2944 else if (style == STYLE_match && *what == '-')
2961 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog);
2972 if (style >= STYLE_man)
2974 p = textout(sp_body, p, cb, cl, style, 0, 0, sp_info, version, id, catalog);
2983 else if (style == STYLE_match && *what == '+')
2989 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog);
2996 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog);
3037 if (style <= STYLE_short)
3063 if (style == STYLE_match)
3095 if (style >= STYLE_nroff)
3100 if (style <= STYLE_long)
3113 if (style < STYLE_match)
3119 else if (*p == '\\' && style==STYLE_posix)
3129 if (style == STYLE_match && !z)
3134 if (style == STYLE_long || prefix < 2 || (q->flags & OPT_long))
3136 else if (style <= STYLE_short)
3192 if (style <= STYLE_short && !y && !mutex || style == STYLE_posix)
3194 if (style != STYLE_posix && !sfstrtell(sp))
3207 if (style == STYLE_posix && y)
3212 if (style >= STYLE_match)
3218 item(sp_body, (flags & OPT_functions) ? C("FUNCTIONS") : C("OPTIONS"), 0, 0, style, sp_info, version, id, ID);
3220 if (style >= STYLE_nroff)
3251 if (style >= STYLE_nroff)
3261 label(sp_body, ' ', w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog);
3273 if (label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, catalog))
3276 label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, native);
3298 label(sp_body, 0, y, 0, -1, 0, style, 0, sp_info, version, id, catalog);
3312 sfputr(sp_body, font(FONT_BOLD, style, 1), -1);
3324 sfputr(sp_body, font(FONT_BOLD, style, 0), -1);
3344 if (label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog))
3347 label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, native);
3358 label(sp_body, 0, y, 0, -1, 0, style, FONT_ITALIC, sp_info, version, id, catalog);
3363 if (style >= STYLE_match)
3367 textout(sp_body, d, cb, cl, style, 0, 3, sp_info, version, id, catalog);
3371 textout(sp_body, u, cb, cl, style, 0, 3, sp_info, version, id, catalog);
3381 textout(sp_body, t, 0, 0, style, 0, 0, sp_info, version, NiL, NiL);
3385 p = u ? skip(p + 1, 0, 0, 0, 0, 1, 1, version) : textout(sp_body, p, 0, 0, style, 4, 0, sp_info, version, id, catalog);
3408 textout(sp_body, t, 0, 0, style, 4, 0, sp_info, version, NiL, NiL);
3425 textout(sp_body, t, 0, 0, style, 4, 0, sp_info, version, NiL, NiL);
3433 if (style >= STYLE_match)
3434 p = textout(sp_body, p, 0, 0, style, 4, 0, sp_info, version, id, catalog);
3450 item(sp_body, C("IMPLEMENTATION"), 0, 0, style, sp_info, version, id, ID);
3460 if (style >= STYLE_keys)
3464 if (style == STYLE_keys && sfstrtell(mp) > 1)
3471 if (sfstrtell(sp) && style != STYLE_posix)
3473 if (style == STYLE_nroff)
3579 if (style == STYLE_match)
3610 if (style >= STYLE_man)
3622 item(sp, C("SYNOPSIS"), 0, 0, style, sp_info, version, id, ID);
3628 if (style >= STYLE_match)
3643 args(sp, x, xl, o->flags, style, sp_info, version, u, catalog);
3653 if (style < STYLE_match && sfstrtell(sp))
3662 if (x && style != STYLE_posix)
3663 args(sp, x, xl, flags, style, sp_info, version, id, catalog);
3679 m = strlen((style <= STYLE_long && error_info.id && !strchr(error_info.id, '/')) ? error_info.id : id) + 1;
3680 margin = style == STYLE_api ? (8 * 1024) : (state.width - 1);
3683 if (style >= STYLE_man || matched < 0)
3690 if (style == STYLE_html)
3714 ip->stop = (ip+1)->stop = style >= STYLE_html ? 0 : 2;
3734 if ((style == STYLE_man || style == STYLE_html) && (!head || *p != ' ' && *p != '\t'))
3736 if (style == STYLE_man)
3743 if (style == STYLE_html && (*p != '<' || !strneq(p, "<BR>", 4) && !strneq(p, "<P>", 3)))
3769 if (style == STYLE_html)
3816 if (style == STYLE_nroff && !co)
3819 else if (style == STYLE_html)
3950 if (style == STYLE_html)
4291 state.style = STYLE_short;
4298 * long with no prefix (dd style)
4365 * long with single prefix (find style)
4390 state.style = STYLE_long;
5418 if (hp->style < STYLE_man || !(s = argv[opt_info.index]) || s[0] != '-' || s[1] != '-' || !s[2])
5424 state.force = hp->style;