Lines Matching refs:style

98 	int		style;		/* STYLE_*			*/
240 Z("List the usage translation key strings with C style escapes."),
254 Z("List the usage string with C style escapes."),
271 the \aoption\a output in the \aitem\a style. Otherwise print \
1184 * return the bold set/unset sequence for style
1188 font(int f, int style, int set)
1190 switch (style)
1291 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)
1310 if ((ostyle = style) > (STYLE_nroff - (sep <= 0)) && f != FONT_LITERAL && f >= 0)
1311 style = 0;
1318 if (sep == ' ' && style == STYLE_nroff)
1388 sfputr(sp, font(f, style, 1), -1);
1411 sfputr(sp, font(f, style, 0), -1);
1426 label(sp, 0, y, 0, -1, 0, style, f >= 0 ? FONT_ITALIC : f, ip, version, id, catalog);
1464 sfputr(sp, font(f, style, 0), -1);
1467 if (!f && style == STYLE_html)
1489 , font(a, style, 1)
1491 , font(a, style, 0)
1499 sfputr(sp, font(a, style, !!(f ^= a)), -1);
1527 if (style == STYLE_html)
1556 if (style == STYLE_html)
1563 if (style == STYLE_html)
1570 if (style == STYLE_html)
1603 sfputr(sp, font(f, style, 0), -1);
1616 args(register Sfio_t* sp, register char* p, register int n, int flags, int style, Sfio_t* ip, int version, char* id, char* catalog)
1631 b = style == STYLE_nroff ? "\\ " : " ";
1635 if (style >= STYLE_man)
1639 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);
1667 if (style == STYLE_html)
1669 else if (style == STYLE_nroff)
1671 else if (style == STYLE_api)
1683 label(sp, sep, p, 0, n, 0, style, 0, ip, version, id, catalog);
1688 * according to {...} level and style
1693 item(Sfio_t* sp, char* s, int about, int level, int style, Sfio_t* ip, int version, char* id, char* catalog, int* hflags)
1703 if (style >= STYLE_nroff)
1707 if (style == STYLE_html)
1714 label(sp, 0, s + 1, about, -1, level, style, FONT_LITERAL, ip, version, id, catalog);
1716 if (style >= STYLE_nroff)
1718 else if (style == STYLE_html)
1726 if (style >= STYLE_nroff)
1732 if (style == STYLE_html)
1750 label(sp, 0, s, about, -1, level, style, -1, ip, version, id, catalog);
1752 label(sp, 0, s, about, -1, level, style, level ? FONT_BOLD : 0, ip, version, id, catalog);
1770 if (style >= STYLE_nroff)
1772 else if (style == STYLE_man)
1774 else if (style != STYLE_options && style != STYLE_match || *s == '-' || *s == '+')
1777 label(sp, 0, s, about, -1, level, style, FONT_BOLD, ip, version, id, catalog);
1783 if (style >= STYLE_nroff)
1786 if (style >= STYLE_nroff || !level)
1788 if (par && style < STYLE_nroff)
1795 * output text to sp from p according to style
1803 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* hflags, int line)
1807 message((-21, "opthelp: txt#%d +++ %2d \"%s\" style=%d level=%d bump=%d", line, ++depth, show(p), style, level, bump));
1808 p = textout(sp, p, conform, conformlen, style, level, bump, ip, version, id, catalog, hflags);
1816 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, int* hflags)
1819 #define textout(sp,s,conform,conformlen,style,level,bump,ip,version,id,catalog,hflags) trace_textout(sp,s,conform,conformlen,style,level,bump,ip,version,id,catalog,hflags,__LINE__)
1851 if (level <= 1 || *s != '[' || *(s + 1) != '-' || style == STYLE_man && *(s + 2) == '?' || isalpha(*(s + 2)))
1878 if (style == STYLE_man)
1908 par = item(sp, w, about, level, style, ip, version, id, ID, hflags);
1945 par = item(sp, t, about, level, style, ip, version, id, catalog, hflags);
1953 if (style >= STYLE_nroff)
1964 s = textout(sp, s, conform, conformlen, style, level + bump + par + 1, 0, ip, version, id, catalog, hflags);
1984 if (style < STYLE_nroff)
2007 sfputr(sp, font(f, style, 0), -1);
2021 sfputr(sp, font(f, style, 0), -1);
2074 sfputr(sp, font(FONT_BOLD, style, 1), -1);
2082 sfputr(sp, font(FONT_BOLD, style, 0), -1);
2091 sfputr(sp, font(FONT_BOLD, style, 1), -1);
2099 sfputr(sp, font(FONT_BOLD, style, 0), -1);
2106 s = textout(sp, s, 0, 0, style, level + bump + !level, 0, ip, version, id, catalog, hflags);
2122 if (style != STYLE_keys)
2160 sfputr(sp, font(f, style, 0), -1);
2163 if (!f && style == STYLE_html)
2185 , font(a, style, 1)
2187 , font(a, style, 0)
2195 sfputr(sp, font(a, style, !!(f ^= a)), -1);
2201 if (style != STYLE_keys)
2238 if (style == STYLE_html)
2267 if (style == STYLE_html)
2274 if (style == STYLE_html)
2281 if (style == STYLE_nroff)
2285 if (style == STYLE_nroff)
2292 if (style == STYLE_nroff)
2382 int style;
2423 style = state.style;
2425 style = STYLE_options;
2427 style = STYLE_match;
2429 style = STYLE_man;
2430 else if ((hp = (Help_t*)search(styles, elementsof(styles), sizeof(styles[0]), (char*)what + 1)) && hp->style >= 0)
2432 style = hp->style;
2438 if ((style = state.force) < STYLE_man)
2439 style = STYLE_man;
2493 if (style <= STYLE_usage)
2497 if (style >= STYLE_match && style < STYLE_keys && !(sp_body = sfstropen()))
2500 switch (style)
2547 switch (style)
2885 if (style > STYLE_short && style < STYLE_nroff && version < 1)
2887 style = STYLE_short;
2894 else if (style == STYLE_short && prefix < 2)
2895 style = STYLE_long;
2904 else if (style >= STYLE_match)
2975 if (style >= STYLE_man)
2982 p = textout(sp_misc, p, cb, cl, style, 1, 3, sp_info, version, id, catalog, &hflags);
2986 else if (style == STYLE_match && *what == '-')
3003 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog, &hflags);
3014 if (style >= STYLE_man)
3016 p = textout(sp_body, p, cb, cl, style, 0, 0, sp_info, version, id, catalog, &bflags);
3026 else if (style == STYLE_match && *what == '+')
3032 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog, &hflags);
3039 p = textout(sp, p, cb, cl, style, 1, 3, sp_info, version, id, catalog, &hflags);
3080 if (style <= STYLE_short)
3106 if (style == STYLE_match)
3138 if (style >= STYLE_nroff)
3143 if (style <= STYLE_long)
3156 if (style < STYLE_match)
3162 else if (*p == '\\' && style==STYLE_posix)
3172 if (style == STYLE_match && !z)
3177 if (style == STYLE_long || prefix < 2 || (q->flags & OPT_long))
3179 else if (style <= STYLE_short)
3235 if (style <= STYLE_short && !y && !mutex || style == STYLE_posix)
3237 if (style != STYLE_posix && !sfstrtell(sp))
3250 if (style == STYLE_posix && y)
3255 if (style >= STYLE_match)
3261 item(sp_body, (flags & OPT_functions) ? C("FUNCTIONS") : C("OPTIONS"), 0, 0, style, sp_info, version, id, ID, &bflags);
3263 if (style >= STYLE_nroff)
3294 if (style >= STYLE_nroff)
3304 label(sp_body, ' ', w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog);
3316 if (label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, catalog))
3319 label(sp_body, 0, w, 0, -1, 0, style, 0, sp_info, version, id, native);
3341 label(sp_body, 0, y, 0, -1, 0, style, 0, sp_info, version, id, catalog);
3355 sfputr(sp_body, font(FONT_BOLD, style, 1), -1);
3367 sfputr(sp_body, font(FONT_BOLD, style, 0), -1);
3387 if (label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, catalog))
3390 label(sp_body, 0, w, 0, -1, 0, style, FONT_BOLD, sp_info, version, id, native);
3401 label(sp_body, 0, y, 0, -1, 0, style, FONT_ITALIC, sp_info, version, id, catalog);
3406 if (style >= STYLE_match)
3410 textout(sp_body, d, cb, cl, style, 0, 3, sp_info, version, id, catalog, &bflags);
3414 textout(sp_body, u, cb, cl, style, 0, 3, sp_info, version, id, catalog, &bflags);
3424 textout(sp_body, t, 0, 0, style, 0, 0, sp_info, version, NiL, NiL, &bflags);
3428 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, &bflags);
3451 textout(sp_body, t, 0, 0, style, 4, 0, sp_info, version, NiL, NiL, &bflags);
3468 textout(sp_body, t, 0, 0, style, 4, 0, sp_info, version, NiL, NiL, &bflags);
3476 if (style >= STYLE_match)
3477 p = textout(sp_body, p, 0, 0, style, 4, 0, sp_info, version, id, catalog, &bflags);
3493 item(sp_body, C("IMPLEMENTATION"), 0, 0, style, sp_info, version, id, ID, &bflags);
3503 if (style >= STYLE_keys)
3507 if (style == STYLE_keys && sfstrtell(mp) > 1)
3514 if (sfstrtell(sp) && style != STYLE_posix)
3516 if (style == STYLE_nroff)
3622 if (style == STYLE_match)
3653 if (style >= STYLE_man)
3665 item(sp, C("SYNOPSIS"), 0, 0, style, sp_info, version, id, ID, &hflags);
3671 if (style >= STYLE_match)
3686 args(sp, x, xl, o->flags, style, sp_info, version, u, catalog);
3696 if (style < STYLE_match && sfstrtell(sp))
3700 if (style == STYLE_html && !(dflags & HELP_head) && (bflags & HELP_head))
3707 if (x && style != STYLE_posix)
3708 args(sp, x, xl, flags, style, sp_info, version, id, catalog);
3724 m = strlen((style <= STYLE_long && error_info.id && !strchr(error_info.id, '/')) ? error_info.id : id) + 1;
3725 margin = style == STYLE_api ? (8 * 1024) : (state.width - 1);
3728 if (style >= STYLE_man || matched < 0)
3735 if (style == STYLE_html)
3760 ip->stop = (ip+1)->stop = style >= STYLE_html ? 0 : 2;
3780 if ((style == STYLE_man || style == STYLE_html) && (!head || *p != ' ' && *p != '\t'))
3782 if (style == STYLE_man)
3789 if (style == STYLE_html && (*p != '<' || !strneq(p, "<BR>", 4) && !strneq(p, "<P>", 3)))
3827 if (style == STYLE_html)
3913 if (style == STYLE_nroff && !co)
3916 else if (style == STYLE_html)
4046 if (style == STYLE_html)
4387 state.style = STYLE_short;
4394 * long with no prefix (dd style)
4461 * long with single prefix (find style)
4486 state.style = STYLE_long;
5517 if (hp->style < STYLE_man || !(s = argv[opt_info.index]) || s[0] != '-' || s[1] != '-' || !s[2])
5523 state.force = hp->style;