Lines Matching defs:style

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