Lines Matching refs:flags

40 static char_u *find_dup_item(char_u *origval, char_u *newval, long_u flags);
47 # define insecure_flag(opt_idx, opt_flags) (&options[opt_idx].flags)
55 static int put_setstring(FILE *fd, char *cmd, char *name, char_u **valuep, long_u flags);
169 if (find_dup_item(ga.ga_data, item, options[opt_idx].flags) in set_init_1()
258 options[opt_idx].flags |= P_DEF_ALLOCED; in set_init_1()
364 if ((options[opt_idx].flags & P_GETTEXT) in set_init_1()
376 if (options[opt_idx].flags & P_DEF_ALLOCED) in set_init_1()
379 options[opt_idx].flags |= P_DEF_ALLOCED; in set_init_1()
464 options[opt_idx].flags |= P_DEF_ALLOCED; in set_init_1()
511 options[opt_idx].flags |= P_DEF_ALLOCED; in set_init_1()
563 long_u flags; in set_option_default() local
568 flags = options[opt_idx].flags; in set_option_default()
571 dvi = ((flags & P_VI_DEF) || compatible) ? VI_DEFAULT : VIM_DEFAULT; in set_option_default()
572 if (flags & P_STRING) in set_option_default()
584 if ((opt_flags & OPT_FREE) && (flags & P_ALLOCED)) in set_option_default()
587 options[opt_idx].flags &= ~P_ALLOCED; in set_option_default()
590 else if (flags & P_NUM) in set_option_default()
650 if (!(options[i].flags & P_NODEFAULT) in set_options_default()
688 if (options[opt_idx].flags & P_DEF_ALLOCED) in set_string_default_esc()
691 options[opt_idx].flags |= P_DEF_ALLOCED; in set_string_default_esc()
707 find_dup_item(char_u *origval, char_u *newval, long_u flags) in find_dup_item() argument
719 if ((!(flags & P_COMMA) in find_dup_item()
723 && (!(flags & P_COMMA) in find_dup_item()
778 && !(options[i].flags & P_NODEFAULT) in set_local_options_default()
802 if ((options[i].flags & P_ALLOCED) && options[i].var != NULL) in free_all_options()
804 if (options[i].flags & P_DEF_ALLOCED) in free_all_options()
808 && (options[i].flags & P_STRING)) in free_all_options()
831 if (idx >= 0 && !(options[idx].flags & P_WAS_SET)) in set_init_2()
851 if (idx >= 0 && !(options[idx].flags & P_WAS_SET) in set_init_2()
857 options[idx].flags &= ~P_WAS_SET; in set_init_2()
896 do_srr = !(options[idx_srr].flags & P_WAS_SET); in set_init_3()
902 do_sp = !(options[idx_sp].flags & P_WAS_SET); in set_init_3()
1030 if (idx_opt >= 0 && !(options[idx_opt].flags & P_WAS_SET)) in set_init_3()
1037 if (idx_opt >= 0 && !(options[idx_opt].flags & P_WAS_SET)) in set_init_3()
1048 if (idx3 >= 0 && !(options[idx3].flags & P_WAS_SET)) in set_init_3()
1056 if (idx3 >= 0 && !(options[idx3].flags & P_WAS_SET)) in set_init_3()
1080 if (idx3 >= 0 && !(options[idx3].flags & P_WAS_SET)) in set_init_3()
1087 if (idx3 >= 0 && !(options[idx3].flags & P_WAS_SET)) in set_init_3()
1100 if (idx_ffs >= 0 && (options[idx_ffs].flags & P_WAS_SET)) in set_init_3()
1122 if (idx >= 0 && !(options[idx].flags & P_WAS_SET)) in set_helplang_default()
1124 if (options[idx].flags & P_ALLOCED) in set_helplang_default()
1145 options[idx].flags |= P_ALLOCED; in set_helplang_default()
1170 if (idx1 >= 0 && !(options[idx1].flags & P_WAS_SET)) in set_title_defaults()
1182 if (idx1 >= 0 && !(options[idx1].flags & P_WAS_SET)) in set_title_defaults()
1199 int flags = 0; in ex_set() local
1202 flags = OPT_LOCAL; in ex_set()
1204 flags = OPT_GLOBAL; in ex_set()
1206 if ((cmdmod.cmod_flags & CMOD_BROWSE) && flags == 0) in ex_set()
1212 flags |= OPT_ONECOLUMN; in ex_set()
1213 (void)do_set(eap->arg, flags); in ex_set()
1249 long_u flags; // flags for current option in do_set() local
1422 && (!(options[opt_idx].flags & P_BOOL) in do_set()
1428 flags = options[opt_idx].flags; in do_set()
1433 flags = P_STRING; in do_set()
1460 if (flags & (P_SECURE | P_NO_ML)) in do_set()
1465 if ((flags & P_MLE) && !p_mle) in do_set()
1487 if (sandbox != 0 && (flags & P_SECURE)) in do_set()
1526 && !(flags & P_BOOL))) in do_set()
1578 if (flags & P_BOOL) // boolean in do_set()
1595 ((flags & P_VI_DEF) || cp_val) in do_set()
1636 if (flags & P_NUM) // numeric in do_set()
1650 ((flags & P_VI_DEF) || cp_val) in do_set()
1764 ((flags & P_VI_DEF) || cp_val) in do_set()
1913 && !((flags & P_EXPAND) in do_set()
1941 || (flags & P_COMMA)) in do_set()
1960 if (removing || (flags & P_NODUP)) in do_set()
1963 s = find_dup_item(origval, newval, flags); in do_set()
1983 comma = ((flags & P_COMMA) && *origval != NUL in do_set()
1990 && (flags & P_ONECOMMA) == P_ONECOMMA in do_set()
2015 if (flags & P_COMMA) in do_set()
2034 if (flags & P_FLAGLIST) in do_set()
2041 if (flags & P_ONECOMMA) in do_set()
2054 if ((!(flags & P_COMMA) || *s != ',') in do_set()
2241 options[opt_idx].flags |= P_WAS_SET; in did_set_option()
2371 if (!(options[opt_idx].flags & P_EXPAND) || options[opt_idx].var == NULL) in option_expand()
2468 if ((options[opt_idx].flags & P_STRING) && options[opt_idx].var != NULL) in check_options()
2497 options[opt_idx].flags |= P_ALLOCED; in set_term_option_alloced()
2556 return &options[opt_idx].flags; in insecure_flag()
2718 ) && (options[opt_idx].flags & P_SECURE)) in set_bool_option()
3275 options[opt_idx].flags |= P_WAS_SET; in set_bool_option()
3286 && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) in set_bool_option()
3290 check_redraw(options[opt_idx].flags); in set_bool_option()
3324 ) && (options[opt_idx].flags & P_SECURE)) in set_num_option()
3837 options[opt_idx].flags |= P_WAS_SET; in set_num_option()
3846 && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) in set_num_option()
3849 check_redraw(options[opt_idx].flags); in set_num_option()
3858 check_redraw(long_u flags) in check_redraw() argument
3861 int doclear = (flags & P_RCLR) == P_RCLR; in check_redraw()
3862 int all = ((flags & P_RALL) == P_RALL || doclear); in check_redraw()
3864 if ((flags & P_RSTAT) || all) // mark all status lines dirty in check_redraw()
3867 if ((flags & P_RBUF) || (flags & P_RWIN) || all) in check_redraw()
3869 if (flags & P_RBUF) in check_redraw()
3871 if (flags & P_RWINONLY) in check_redraw()
4006 if (options[opt_idx].flags & P_STRING) in get_option_value()
4025 return (options[opt_idx].flags & P_NUM) in get_option_value()
4027 if (options[opt_idx].flags & P_NUM) in get_option_value()
4038 return (options[opt_idx].flags & P_NUM) ? gov_number : gov_bool; in get_option_value()
4084 if (p->flags & P_BOOL) in get_option_value_strict()
4086 else if (p->flags & P_NUM) in get_option_value_strict()
4088 else if (p->flags & P_STRING) in get_option_value_strict()
4173 if (p->flags & P_STRING) in get_option_value_strict()
4175 else if (p->flags & P_NUM) in get_option_value_strict()
4252 return options[opt_idx].flags; in get_option_flags()
4261 options[opt_idx].flags |= flag; in set_option_flag()
4270 options[opt_idx].flags &= ~flag; in clear_option_flag()
4336 long_u flags; in set_option_value() local
4369 flags = options[opt_idx].flags; in set_option_value()
4372 if (sandbox > 0 && (flags & P_SECURE)) in set_option_value()
4378 if (flags & P_STRING) in set_option_value()
4404 if (flags & P_NUM) in set_option_value()
4564 else if (p->flags & P_BOOL) in showoptions()
4618 dvi = ((p->flags & P_VI_DEF) || compatible) ? VI_DEFAULT : VIM_DEFAULT; in optval_default()
4619 if (p->flags & P_NUM) in optval_default()
4621 if (p->flags & P_BOOL) in optval_default()
4647 if ((p->flags & P_BOOL) && ((int *)varp == &curbuf->b_changed in showoneopt()
4650 else if ((p->flags & P_BOOL) && *(int *)varp < 0) in showoneopt()
4655 if (!(p->flags & P_BOOL)) in showoneopt()
4709 if (!(p->flags & P_NO_MKRC) in makeset()
4711 && ((pri == 1) == ((p->flags & P_PRI_MKRC) != 0))) in makeset()
4719 if ((opt_flags & OPT_GLOBAL) && (p->flags & P_NOGLOB)) in makeset()
4763 if (p->flags & P_BOOL) in makeset()
4768 else if (p->flags & P_NUM) in makeset()
4792 p->flags) == FAIL) in makeset()
4840 long_u flags) in put_setstring() argument
4862 else if ((flags & P_EXPAND) != 0) in put_setstring()
4875 if (size >= MAXPATHL && (flags & P_COMMA) != 0 in put_setstring()
4995 if (p->flags & P_ALLOCED) in free_termoptions()
4997 if (p->flags & P_DEF_ALLOCED) in free_termoptions()
5001 p->flags &= ~(P_ALLOCED|P_DEF_ALLOCED); in free_termoptions()
5023 if (p->flags & P_ALLOCED) in free_one_termoption()
5026 p->flags &= ~P_ALLOCED; in free_one_termoption()
5044 if (p->flags & P_DEF_ALLOCED) in set_term_defaults()
5047 p->flags &= ~P_DEF_ALLOCED; in set_term_defaults()
5050 if (p->flags & P_ALLOCED) in set_term_defaults()
5052 p->flags |= P_DEF_ALLOCED; in set_term_defaults()
5053 p->flags &= ~P_ALLOCED; // don't free the value now in set_term_defaults()
5833 buf_copy_options(buf_T *buf, int flags) in buf_copy_options() argument
5858 if ((vim_strchr(p_cpo, CPO_BUFOPTGLOB) == NULL || !(flags & BCO_ENTER)) in buf_copy_options()
5860 || (!(flags & BCO_ENTER) in buf_copy_options()
5864 if (should_copy || (flags & BCO_ALWAYS)) in buf_copy_options()
5873 dont_do_help = ((flags & BCO_NOHELP) && buf->b_help) in buf_copy_options()
6214 long_u flags = 0; // init for GCC in set_context_in_set_cmd() local
6309 flags = options[opt_idx].flags; in set_context_in_set_cmd()
6310 if (flags & P_BOOL) in set_context_in_set_cmd()
6340 if (is_term_option || (flags & P_NUM)) in set_context_in_set_cmd()
6345 if (flags & P_EXPAND) in set_context_in_set_cmd()
6397 || (*p == ',' && (flags & P_COMMA) && ((p - s) & 1) == 0)) in set_context_in_set_cmd()
6458 && !(options[opt_idx].flags & P_BOOL)) in ExpandSettings()
6622 && (options[expand_option_idx].flags & P_EXPAND) in ExpandOldSetting()
6646 if (opp->flags & P_NUM) in option_value2string()
6667 else if (opp->flags & P_EXPAND) in option_value2string()
6892 if (!(options[opt_idx].flags & (P_WAS_SET|P_VI_DEF))) in vimrc_found()
6931 options[opt_idx].flags |= P_WAS_SET; in change_compatible()
6946 if (options[idx].flags & P_WAS_SET) in option_was_set()
6961 options[idx].flags &= ~P_WAS_SET; in reset_option_was_set()
6981 if ( ((options[opt_idx].flags & P_VIM) && p_cp) in compatible_set()
6982 || (!(options[opt_idx].flags & P_VI_DEF) && !p_cp)) in compatible_set()
7108 if (opt->flags & P_STRING) in get_winbuf_options()
7110 else if (opt->flags & P_NUM) in get_winbuf_options()