Lines Matching refs:v
62 l_window(struct value *v, struct value *a) in l_window() argument
125 v->v_type = V_NUM; in l_window()
126 v->v_num = id + 1; in l_window()
135 l_def_nline(struct value *v, struct value *a) in l_def_nline() argument
137 v->v_num = default_nline; in l_def_nline()
138 v->v_type = V_NUM; in l_def_nline()
150 l_smooth(struct value *v, struct value *a) in l_smooth() argument
154 v->v_type = V_NUM; in l_smooth()
155 v->v_num = 0; in l_smooth()
158 v->v_num = ISSET(w->ww_wflags, WWW_NOUPDATE) == 0; in l_smooth()
159 if (!vtobool(a, v->v_num, v->v_num)) in l_smooth()
171 l_def_smooth(struct value *v, struct value *a) in l_def_smooth() argument
173 v->v_type = V_NUM; in l_def_smooth()
174 v->v_num = default_smooth; in l_def_smooth()
175 default_smooth = vtobool(a, v->v_num, v->v_num); in l_def_smooth()
184 l_select(struct value *v, struct value *a) in l_select() argument
188 v->v_type = V_NUM; in l_select()
189 v->v_num = selwin ? selwin->ww_id + 1 : -1; in l_select()
203 l_debug(struct value *v, struct value *a) in l_debug() argument
205 v->v_type = V_NUM; in l_debug()
206 v->v_num = debug; in l_debug()
216 l_escape(struct value *v, struct value *a) in l_escape() argument
222 if ((v->v_str = str_cpy(buf)) == 0) { in l_escape()
226 v->v_type = V_STR; in l_escape()
238 l_label(struct value *v __unused, struct value *a) in l_label()
256 l_foreground(struct value *v, struct value *a) in l_foreground() argument
263 v->v_type = V_NUM; in l_foreground()
264 v->v_num = isfg(w); in l_foreground()
265 flag = vtobool(++a, v->v_num, v->v_num); in l_foreground()
266 if (flag == v->v_num) in l_foreground()
279 l_terse(struct value *v, struct value *a) in l_terse() argument
281 v->v_type = V_NUM; in l_terse()
282 v->v_num = terse; in l_terse()
292 l_source(struct value *v, struct value *a) in l_source() argument
294 v->v_type = V_NUM; in l_source()
297 v->v_num = -1; in l_source()
299 v->v_num = 0; in l_source()
309 l_write(struct value *v __unused, struct value *a) in l_write()
333 l_close(struct value *v __unused, struct value *a) in l_close()
351 l_cursormodes(struct value *v, struct value *a) in l_cursormodes() argument
354 v->v_type = V_NUM; in l_cursormodes()
355 v->v_num = wwcursormodes; in l_cursormodes()
366 l_unset(struct value *v, struct value *a) in l_unset() argument
368 v->v_type = V_NUM; in l_unset()
371 v->v_num = -1; in l_unset()
376 v->v_num = -1; in l_unset()
382 v->v_num = var_unset(a->v_str); in l_unset()
386 vtowin(struct value *v, struct ww *w) in vtowin() argument
388 switch (v->v_type) { in vtowin()
395 error("%s: No such window.", v->v_str); in vtowin()
398 if (v->v_num < 1 || v->v_num > NWINDOW in vtowin()
399 || (w = window[v->v_num - 1]) == NULL) { in vtowin()
400 error("%d: No such window.", v->v_num); in vtowin()
407 vtobool(struct value *v, char def, char err) in vtobool() argument
409 switch (v->v_type) { in vtobool()
411 return v->v_num != 0; in vtobool()
413 if (str_match(v->v_str, "true", 1) in vtobool()
414 || str_match(v->v_str, "on", 2) in vtobool()
415 || str_match(v->v_str, "yes", 1)) in vtobool()
417 else if (str_match(v->v_str, "false", 1) in vtobool()
418 || str_match(v->v_str, "off", 2) in vtobool()
419 || str_match(v->v_str, "no", 1)) in vtobool()
422 error("%s: Illegal boolean value.", v->v_str); in vtobool()