/freebsd/contrib/nvi/ex/ |
H A D | ex_shift.c | 77 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 D | ex_util.c | 132 sp->rows = O_VAL(sp, O_LINES); in ex_init() 133 sp->cols = O_VAL(sp, O_COLUMNS); in ex_init()
|
H A D | ex_txt.c | 381 ts = O_VAL(sp, O_TABSTOP); in txt_dent() 382 sw = O_VAL(sp, O_SHIFTWIDTH); in txt_dent()
|
H A D | ex_z.c | 53 cnt = O_VAL(sp, O_WINDOW) - 1; in ex_z()
|
H A D | ex_print.c | 210 ts = O_VAL(sp, O_TABSTOP); in ex_prchars()
|
H A D | ex_tag.c | 107 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 D | ex.c | 934 ecp->addr2.lno = sp->lno + O_VAL(sp, O_SCROLL); in ex_cmd()
|
/freebsd/contrib/nvi/common/ |
H A D | options_f.c | 104 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 D | options.h | 57 #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 D | options.c | 390 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 D | main.c | 262 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 D | key.c | 658 O_VAL(sp, O_ESCAPETIME) : in v_event_get() 659 O_VAL(sp, O_KEYTIME)) * 100; in v_event_get()
|
H A D | msg.c | 460 rptval = O_VAL(sp, O_REPORT); in mod_rpt()
|
/freebsd/contrib/nvi/vi/ |
H A D | v_scroll.c | 346 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 D | v_z.c | 61 if (vp->count2 > O_VAL(sp, O_WINDOW)) in v_z() 62 vp->count2 = O_VAL(sp, O_WINDOW); in v_z()
|
H A D | vi.h | 354 #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 D | vs_refresh.c | 603 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 D | vs_split.c | 138 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 D | vi.c | 953 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 D | v_txt.c | 417 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 D | cl_screen.c | 58 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 D | cl_term.c | 404 row == O_VAL(sp, O_LINES) && col == O_VAL(sp, O_COLUMNS)) { in cl_ssize()
|