Lines Matching defs:s
110 public void opt_o(int type, constant char *s)
123 namelogfile = save(s);
136 s = skipspc(s);
139 filename = lglob(s);
151 error("Log file \"%s\"", &parg);
160 public void opt__O(int type, constant char *s)
163 opt_o(type, s);
167 static int toggle_fraction(int *num, long *frac, constant char *s, constant char *printopt, void (*calc)(void))
170 if (s == NULL)
173 } else if (*s == '.')
176 s++;
177 tfrac = getfraction(&s, printopt, &err);
187 int tnum = getnumc(&s, printopt, &err);
224 public void opt_j(int type, constant char *s)
231 s, "j", calc_jump_sline);
235 "Position target at screen line %d", "Position target at screen position %s");
251 public void opt_shift(int type, constant char *s)
258 s, "#", calc_shift_count);
262 "Horizontal shift %d columns", "Horizontal shift %s of screen width");
275 public void opt_k(int type, constant char *s)
282 if (lesskey(s, 0))
284 parg.p_string = s;
285 error("Cannot use lesskey file \"%s\"", &parg);
292 public void opt_ks(int type, constant char *s)
299 if (lesskey_src(s, 0))
301 parg.p_string = s;
302 error("Cannot use lesskey source file \"%s\"", &parg);
308 public void opt_kc(int type, constant char *s)
313 if (lesskey_content(s, 0))
327 public void opt__S(int type, constant char *s)
341 public void opt_t(int type, constant char *s)
349 tagoption = save(s);
358 findtag(skipspc(s));
379 public void opt__T(int type, constant char *s)
387 tags = save(s);
390 s = skipspc(s);
393 filename = lglob(s);
399 error("Tags file \"%s\"", &parg);
408 public void opt_p(int type, constant char *s)
422 every_first_cmd = save(s);
431 ungetsc(s);
441 public void opt__P(int type, constant char *s)
453 switch (*s)
455 case 's': proto = &prproto[PR_SHORT]; s++; break;
456 case 'm': proto = &prproto[PR_MEDIUM]; s++; break;
457 case 'M': proto = &prproto[PR_LONG]; s++; break;
458 case '=': proto = &eqproto; s++; break;
459 case 'h': proto = &hproto; s++; break;
460 case 'w': proto = &wproto; s++; break;
464 *proto = save(s);
468 error("%s", &parg);
477 public void opt_b(int type, constant char *s)
497 public void opt_i(int type, constant char *s)
514 public void opt__V(int type, constant char *s)
556 static void colordesc(constant char *s, int *fg_color, int *bg_color, int *dattr)
560 if (parse_color(s, &fg, &bg, &attr) == CT_NULL)
563 p.p_string = s;
564 error("Invalid color string \"%s\"", &p);
595 case 's': return AT_STANDOUT;
610 public void opt_D(int type, constant char *s)
620 if (*s == 'a')
626 attr = color_from_namechar(s[0]);
629 p.p_char = s[0];
638 s++;
645 colordesc(s, &nm_fg_color, &nm_bg_color, &nm_attr);
648 colordesc(s, &bo_fg_color, &bo_bg_color, &bo_attr);
651 colordesc(s, &ul_fg_color, &ul_bg_color, &ul_attr);
654 colordesc(s, &bl_fg_color, &bl_bg_color, &bl_attr);
657 colordesc(s, &so_fg_color, &so_bg_color, &so_attr);
668 if (set_color_map(attr, s) < 0)
670 p.p_string = s;
671 error("Invalid color string \"%s\"", &p);
678 error("SGR mode is %s", &p);
686 public void set_tabs(constant char *s, size_t len)
689 constant char *es = s + len;
695 while (s < es && *s == ' ')
696 s++;
697 for (; s < es && *s >= '0' && *s <= '9'; s++)
700 v = v || ckd_add(&n, n, *s - '0');
704 while (s < es && *s == ' ')
705 s++;
706 if (s == es || *s++ != ',')
718 public void opt_x(int type, constant char *s)
728 set_tabs(s, strlen(s));
745 error("%s", &p);
754 public void opt_quote(int type, constant char *s)
763 if (s[0] == '\0')
768 if (s[1] != '\0' && s[2] != '\0')
773 openquote = s[0];
774 if (s[1] == '\0')
777 closequote = s[1];
784 error("quotes %s", &parg);
793 public void opt_rscroll(int type, constant char *s)
803 setfmt(s, &fmt, &attr, "*s>", FALSE);
824 error("rscroll character is %s", &p);
834 public void opt_query(int type, constant char *s)
848 public void opt_match_shift(int type, constant char *s)
855 s, "--match-shift", calc_match_shift);
859 "Search match shift is %d", "Search match shift is %s of screen width");
875 public void opt_mousecap(int type, constant char *s)
895 public void opt_wheel_lines(int type, constant char *s)
913 public void opt_linenum_width(int type, constant char *s)
937 public void opt_status_col_width(int type, constant char *s)
961 public void opt_filesize(int type, constant char *s)
979 public void opt_intr(int type, constant char *s)
987 intr_char = *s;
988 if (intr_char == '^' && s[1] != '\0')
989 intr_char = CONTROL(s[1]);
993 error("interrupt character is %s", &p);
1009 if (**sp == ',') /* that's the next comma; we have an empty string */
1019 error("invalid %s", &parg);
1031 static lbool parse_header(constant char *s, int *lines, int *cols, POSITION *start_pos)
1036 if (*s == '-')
1037 s = "0,0";
1039 n = next_cnum(&s, "header", "number of lines", &err);
1043 n = next_cnum(&s, "header", "number of columns", &err);
1047 n = next_cnum(&s, "header", "line number", &err);
1062 public void opt_header(int type, constant char *s)
1069 init_header = save(s);
1076 if (!parse_header(s, &lines, &cols, &start_pos))
1088 error("Header (lines,columns,line-number) is %s", &parg);
1097 public void opt_search_type(int type, constant char *s)
1110 for (; *s != '\0'; s++)
1112 switch (*s)
1123 if (*s >= '1' && *s <= '0'+NUM_SEARCH_COLORS)
1125 st |= SRCH_SUBSEARCH(*s-'0');
1128 parg.p_char = *s;
1150 error("search options: %s", &parg);
1181 public void opt_nosearch_headers(int type, constant char *s)
1187 public void opt_nosearch_header_lines(int type, constant char *s)
1193 public void opt_nosearch_header_cols(int type, constant char *s)
1203 public void opt_ttyin_name(int type, constant char *s)
1208 ttyin_name = s;