Home
last modified time | relevance | path

Searched refs:LF_ISSET (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/nvi/common/
H A Dsearch.c49 if (LF_ISSET(SEARCH_MSG)) in search_init()
55 if (LF_ISSET(SEARCH_PARSE)) { /* Parse the string. */ in search_init()
84 (LF_ISSET(SEARCH_MSG) ? 0 : RE_C_SILENT))) in search_init()
88 if (LF_ISSET(SEARCH_SET)) in search_init()
125 (LF_ISSET(SEARCH_MSG) ? 0 : RE_C_SILENT) | in search_init()
126 (LF_ISSET(SEARCH_TAG) ? RE_C_TAG : 0) | in search_init()
127 (LF_ISSET(SEARCH_CSCOPE) ? RE_C_CSCOPE : 0))) in search_init()
131 if (LF_ISSET(SEARCH_SET)) in search_init()
158 if (LF_ISSET(SEARCH_FILE)) { in f_search()
178 if (LF_ISSET(SEARCH_INCR)) { in f_search()
[all …]
H A Dcut.c96 if (LF_ISSET(CUT_NUMREQ) || (LF_ISSET(CUT_NUMOPT) && in cut()
97 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) { in cut()
107 } else if (LF_ISSET(CUT_NUMREQ) || (LF_ISSET(CUT_NUMOPT) && in cut()
108 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) { in cut()
133 if (LF_ISSET(CUT_LINEMODE)) { in cut()
H A Dexf.c171 if (LF_ISSET(FS_OPENERR) || oname == NULL || !exists) { in file_init()
199 if (!LF_ISSET(FS_OPENERR)) in file_init()
294 if (LF_ISSET(FS_SETALT)) in file_init()
315 if (file_end(sp, NULL, LF_ISSET(FS_FORCE))) { in file_init()
765 if (!LF_ISSET(FS_FORCE) && noname && O_ISSET(sp, O_READONLY)) {
766 msgq(sp, M_ERR, LF_ISSET(FS_POSSIBLE) ?
773 if (!LF_ISSET(FS_FORCE | FS_APPEND) && !O_ISSET(sp, O_WRITEANY)) {
778 LF_ISSET(FS_POSSIBLE) ?
788 if (!LF_ISSET(FS_ALL) && noname && !stat(name, &sb)) {
789 msgq(sp, M_ERR, LF_ISSET(FS_POSSIBLE) ?
[all …]
H A Dkey.c551 if (gp->i_cnt != 0 && LF_ISSET(EC_TIMEOUT)) in v_event_get()
558 if (gp->i_cnt == 0 || LF_ISSET(EC_INTERRUPT | EC_TIMEOUT)) { in v_event_get()
566 LF_ISSET(EC_INTERRUPT | EC_QUOTED | EC_RAW), timeout)) in v_event_get()
590 if (LF_ISSET(EC_INTERRUPT)) in v_event_get()
605 if (LF_ISSET(EC_INTERRUPT | EC_TIMEOUT)) in v_event_get()
631 !LF_ISSET(EC_MAPCOMMAND | EC_MAPINPUT) || in v_event_get()
638 LF_ISSET(EC_MAPCOMMAND) ? SEQ_COMMAND : SEQ_INPUT, &ispartial); in v_event_get()
667 nomap: if (!ISDIGIT(evp->e_c) && LF_ISSET(EC_MAPNODIGIT)) in v_event_get()
678 if (LF_ISSET(EC_MAPNODIGIT) && in v_event_get()
H A Dmain.c203 if (silent && !LF_ISSET(SC_EX)) { in editor()
207 if (LF_ISSET(SC_EX) && F_ISSET(gp, G_SCRIPTED)) in editor()
312 F_SET(sp, LF_ISSET(SC_EX | SC_VI)); in editor()
395 F_SET(sp, LF_ISSET(SC_EX | SC_VI) | SC_STATUS_CNT); in editor()
H A Doptions.c769 if (LF_ISSET(OS_STRDUP) && (str = strdup(str)) == NULL) { in o_set()
775 if LF_ISSET(OS_DEF) in o_set()
776 if (LF_ISSET(OS_STR | OS_STRDUP)) { in o_set()
777 if (!LF_ISSET(OS_NOFREE)) in o_set()
783 if (LF_ISSET(OS_STR | OS_STRDUP)) { in o_set()
784 if (!LF_ISSET(OS_NOFREE)) in o_set()
H A Drecover.c254 if (LF_ISSET(RCV_PRESERVE)) in rcv_sync()
258 if (LF_ISSET(RCV_EMAIL)) in rcv_sync()
273 if (LF_ISSET(RCV_SNAPSHOT)) { in rcv_sync()
301 if (LF_ISSET(RCV_ENDSESSION) && file_end(sp, NULL, 1)) in rcv_sync()
H A Dutil.h19 #define LF_ISSET(f) FL_ISSET(flags, f) macro
H A Dline.c104 if (LF_ISSET(DBG_NOCACHE)) in db_get()
155 err1: if (LF_ISSET(DBG_FATAL)) in db_get()
H A Dmsg.c622 if (LF_ISSET(MSTAT_SHOWLAST)) { in msgq_status()
663 if (LF_ISSET(MSTAT_TRUNCATE) && len > sp->cols) { in msgq_status()
H A Dseq.c50 if (LF_ISSET(SEQ_NOOVERWRITE)) in seq_set()
/freebsd/contrib/nvi/ex/
H A Dex_txt.c102 if (LF_ISSET(TXT_AUTOINDENT)) { in ex_txt()
166 if (LF_ISSET(TXT_BACKSLASH) && in ex_txt()
176 if (LF_ISSET(TXT_CR)) { in ex_txt()
185 if (LF_ISSET(TXT_DOTTERM) && tp->len == tp->ai + 1 && in ex_txt()
205 if (LF_ISSET(TXT_AUTOINDENT)) { in ex_txt()
228 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) in ex_txt()
232 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) in ex_txt()
243 if (LF_ISSET(TXT_CNTRLD)) { in ex_txt()
280 if (!LF_ISSET(TXT_AUTOINDENT) || tp->len == 0) in ex_txt()
328 ins_ch: if (LF_ISSET(TXT_BEAUTIFY) && ISCNTRL(ev.e_c) && in ex_txt()
[all …]
H A Dex_print.c107 if (LF_ISSET(E_C_HASH)) { in ex_print()
125 if (len == 0 && !LF_ISSET(E_C_LIST)) in ex_print()
145 if (len > 0 && ex_prchars(sp, p, &col, len, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
147 if (!INTERRUPTED(sp) && LF_ISSET(E_C_LIST)) { in ex_ldisplay()
149 if (ex_prchars(sp, p, &col, 1, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
212 if ((ch = *p++) == '\t' && !LF_ISSET(E_C_LIST)) in ex_prchars()
H A Dex_subst.c448 if (LF_ISSET(SUB_FIRST)) { in s()
464 if (*s != '\0' || (!rflag && LF_ISSET(SUB_MUSTSETR))) { in s()
890 if (!LF_ISSET(RE_C_CSCOPE | RE_C_TAG)) { in re_compile()
905 if (LF_ISSET(RE_C_SEARCH) && F_ISSET(sp, SC_RE_SEARCH)) { in re_compile()
909 if (LF_ISSET(RE_C_SUBST) && F_ISSET(sp, SC_RE_SUBST)) { in re_compile()
921 if (LF_ISSET(RE_C_CSCOPE)) { in re_compile()
931 } else if (LF_ISSET(RE_C_TAG)) { in re_compile()
974 if (!LF_ISSET(RE_C_SILENT)) in re_compile()
979 if (LF_ISSET(RE_C_SEARCH)) in re_compile()
981 if (LF_ISSET(RE_C_SUBST)) in re_compile()
H A Dex.c1468 if (!LF_ISSET(E_C_HASH | E_C_LIST | E_C_PRINT | E_NOAUTO) && in ex_cmd()
1478 if (LF_ISSET(E_C_HASH | E_C_LIST | E_C_PRINT)) { in ex_cmd()
/freebsd/contrib/nvi/vi/
H A Dv_txt.c218 FL_ISSET(ec_flags, EC_MAPINPUT) && LF_ISSET(TXT_INFOLINE)
326 if (LF_ISSET(TXT_OVERWRITE)) { in v_txt()
332 if (LF_ISSET(TXT_EMARK) && txt_emark(sp, tp, tm->cno)) in v_txt()
349 if (LF_ISSET(TXT_AUTOINDENT) && ai_line != OOBLNO) { in v_txt()
359 if (LF_ISSET(TXT_AICHARS)) { in v_txt()
367 if (LF_ISSET(TXT_PROMPT)) { in v_txt()
383 if (LF_ISSET(TXT_APPENDEOL)) { in v_txt()
416 if (LF_ISSET(TXT_WRAPMARGIN)) in v_txt()
427 LF_ISSET(TXT_MAPINPUT) ? AB_INWORD : AB_NOTSET; in v_txt()
450 if (LF_ISSET(TXT_REPLAY)) { in v_txt()
[all …]
H A Dvi.c616 if (F_ISSET(vp, VC_C1SET) && !LF_ISSET(V_CNT)) in v_cmd()
622 if (!LF_ISSET(V_OBUF) && F_ISSET(vp, VC_BUFFER)) in v_cmd()
626 if (LF_ISSET(V_RBUF)) { in v_cmd()
678 if (ismotion != NULL && ismotion->key != key && !LF_ISSET(V_MOVE)) { in v_cmd()
685 if (LF_ISSET(V_CHAR)) in v_cmd()
825 if (LF_ISSET(VM_RCM_SET)) { in v_motion()
H A Dvs_refresh.c431 if (!LF_ISSET(UPDATE_CURSOR)) in vs_paint()
723 if (LF_ISSET(UPDATE_SCREEN) && !IS_ONELINE(sp) && in vs_paint()
727 if (LF_ISSET(UPDATE_CURSOR)) { in vs_paint()
742 if (LF_ISSET(UPDATE_SCREEN)) in vs_paint()
/freebsd/contrib/nvi/cl/
H A Dcl_read.c61 retest: if (LF_ISSET(EC_INTERRUPT) || F_ISSET(clp, CL_SIGINT)) { in cl_event()
102 switch (cl_read(sp, LF_ISSET(EC_QUOTED | EC_RAW), in cl_event()
203 if (LF_ISSET(EC_QUOTED | EC_RAW) && !tcgetattr(STDIN_FILENO, &term1)) { in cl_read()
205 if (LF_ISSET(EC_QUOTED)) { in cl_read()
H A Dcl_screen.c65 if ((LF_ISSET(SC_EX) && F_ISSET(sp, SC_SCR_EX)) || in cl_screen()
66 (LF_ISSET(SC_VI) && F_ISSET(sp, SC_SCR_VI))) in cl_screen()
103 if (LF_ISSET(SC_EX)) { in cl_screen()