Home
last modified time | relevance | path

Searched refs:O_VAL (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/nvi/ex/
H A Dex_shift.c77 if (O_VAL(sp, O_SHIFTWIDTH) == 0) { in shift()
97 sw += O_VAL(sp, O_SHIFTWIDTH); in shift()
119 oldcol += O_VAL(sp, O_TABSTOP) - in shift()
120 oldcol % O_VAL(sp, O_TABSTOP); in shift()
148 for (; newcol >= O_VAL(sp, O_TABSTOP); ++newidx) { in shift()
150 newcol -= O_VAL(sp, O_TABSTOP); in shift()
H A Dex_util.c132 sp->rows = O_VAL(sp, O_LINES); in ex_init()
133 sp->cols = O_VAL(sp, O_COLUMNS); in ex_init()
H A Dex_txt.c381 ts = O_VAL(sp, O_TABSTOP); in txt_dent()
382 sw = O_VAL(sp, O_SHIFTWIDTH); in txt_dent()
H A Dex_z.c53 cnt = O_VAL(sp, O_WINDOW) - 1; in ex_z()
H A Dex_print.c210 ts = O_VAL(sp, O_TABSTOP); in ex_prchars()
H A Dex_tag.c107 O_VAL(sp, O_TAGLENGTH)) != 0 && STRLEN(exp->tag_last) > tl) in ex_tag_push()
1049 tl = O_VAL(sp, O_TAGLENGTH); in ctag_sfile()
H A Dex.c934 ecp->addr2.lno = sp->lno + O_VAL(sp, O_SCROLL); in ex_cmd()
/freebsd/contrib/nvi/common/
H A Doptions_f.c104 if (O_VAL(sp, O_WINDOW) == O_D_VAL(sp, O_WINDOW) || in f_lines()
105 O_VAL(sp, O_WINDOW) > *valp) { in f_lines()
112 if (O_VAL(sp, O_WINDOW) == O_D_VAL(sp, O_WINDOW) || in f_lines()
113 O_VAL(sp, O_WINDOW) > *valp) { in f_lines()
278 if (*valp >= O_VAL(sp, O_LINES) - 1 && in f_window()
279 (*valp = O_VAL(sp, O_LINES) - 1) == 0) in f_window()
H A Doptions.h57 #define O_VAL(sp, o) O_V(sp, o, o_cur.val) macro
58 #define O_ISSET(sp, o) O_VAL(sp, o)
H A Doptions.c390 if ((v = (O_VAL(sp, O_LINES) - 1) / 2) == 0) in opts_init()
410 else if ((v = O_VAL(sp, O_LINES) - 1) == 0) in opts_init()
431 o_set(sp, cnt, OS_DEF, NULL, O_VAL(sp, cnt)); in opts_init()
678 O_VAL(sp, offset) == value) in opts_set()
867 if (O_VAL(sp, cnt) == O_D_VAL(sp, cnt)) in opts_dump()
897 sizeof(nbuf), "%ld", O_VAL(sp, cnt)); in opts_dump()
963 curlen += ex_printf(sp, WS"=%ld", op->name, O_VAL(sp, offset)); in opts_print()
1006 "set "WS"=%-3ld\n", op->name, O_VAL(sp, cnt)); in opts_save()
H A Dmain.c262 sp->rows = O_VAL(sp, O_LINES); /* Make ex formatting work. */ in editor()
263 sp->cols = O_VAL(sp, O_COLUMNS); in editor()
297 sp->defscroll = (O_VAL(sp, O_WINDOW) + 1) / 2; in editor()
H A Dkey.c658 O_VAL(sp, O_ESCAPETIME) : in v_event_get()
659 O_VAL(sp, O_KEYTIME)) * 100; in v_event_get()
H A Dmsg.c460 rptval = O_VAL(sp, O_REPORT); in mod_rpt()
/freebsd/contrib/nvi/vi/
H A Dv_scroll.c346 MIN(sp->t_maxrows, O_VAL(sp, O_WINDOW)) : O_VAL(sp, O_WINDOW)); in v_pagedown()
397 MIN(sp->t_maxrows, O_VAL(sp, O_WINDOW)) : O_VAL(sp, O_WINDOW)); in v_pageup()
H A Dv_z.c61 if (vp->count2 > O_VAL(sp, O_WINDOW)) in v_z()
62 vp->count2 = O_VAL(sp, O_WINDOW); in v_z()
H A Dvi.h354 #define TAB_OFF(c) COL_OFF((c), O_VAL(sp, O_TABSTOP))
358 ((sp)->rows != O_VAL(sp, O_LINES))
361 ((sp)->cols != O_VAL(sp, O_COLUMNS))
H A Dvs_refresh.c603 if (off >= O_VAL(sp, O_SIDESCROLL)) in vs_paint()
604 off -= O_VAL(sp, O_SIDESCROLL); in vs_paint()
617 off += O_VAL(sp, O_SIDESCROLL); in vs_paint()
H A Dvs_split.c138 new->t_minrows = new->t_rows = O_VAL(sp, O_WINDOW); in vs_split()
152 new->t_minrows = new->t_rows = O_VAL(sp, O_WINDOW); in vs_split()
745 nsp->t_minrows = nsp->t_rows = O_VAL(nsp, O_WINDOW); in vs_swap()
H A Dvi.c953 sp->rows = vip->srows = O_VAL(sp, O_LINES); in v_init()
954 sp->cols = O_VAL(sp, O_COLUMNS); in v_init()
955 sp->t_rows = sp->t_minrows = O_VAL(sp, O_WINDOW); in v_init()
H A Dv_txt.c417 if ((margin = O_VAL(sp, O_WRAPMARGIN)) != 0) in v_txt()
420 margin = O_VAL(sp, O_WRAPLEN); in v_txt()
1676 ts = O_VAL(sp, O_TABSTOP); in txt_ai_resolve()
1871 ts = O_VAL(sp, O_TABSTOP); in txt_dent()
1872 sw = O_VAL(sp, swopt); in txt_dent()
2757 NULL, O_VAL(sp, O_MATCHTIME) * 100, EC_TIMEOUT)); in txt_showmatch()
/freebsd/contrib/nvi/cl/
H A Dcl_screen.c58 resizeterm(O_VAL(sp, O_LINES), O_VAL(sp, O_COLUMNS))) && in cl_screen()
114 0, O_VAL(sp, O_LINES) - 1), 1, cl_putchar); in cl_screen()
226 cl_putenv("LINES", NULL, (u_long)O_VAL(sp, O_LINES)); in cl_vi_init()
228 cl_putenv("COLUMNS", NULL, (u_long)O_VAL(sp, O_COLUMNS)); in cl_vi_init()
H A Dcl_term.c404 row == O_VAL(sp, O_LINES) && col == O_VAL(sp, O_COLUMNS)) { in cl_ssize()