Lines Matching refs:opt_flags

2978 static void set_option_default __ARGS((int, int opt_flags, int compatible));
2979 static void set_options_default __ARGS((int opt_flags));
2981 static void did_set_option __ARGS((int opt_idx, int opt_flags, int new_value));
2994 static long_u *insecure_flag __ARGS((int opt_idx, int opt_flags));
2996 # define insecure_flag(opt_idx, opt_flags) (&options[opt_idx].flags)
2999 static void set_string_option __ARGS((int opt_idx, char_u *value, int opt_flags));
3000 static char_u *did_set_string_option __ARGS((int opt_idx, char_u **varp, int new_value_alloced, char_u *oldval, char_u *errbuf, int opt_flags));
3012 static void set_option_scriptID_idx __ARGS((int opt_idx, int opt_flags, int id));
3014 static char_u *set_bool_option __ARGS((int opt_idx, char_u *varp, int value, int opt_flags));
3015 static char_u *set_num_option __ARGS((int opt_idx, char_u *varp, long value, char_u *errbuf, size_t errbuflen, int opt_flags));
3019 static void showoptions __ARGS((int all, int opt_flags));
3021 static void showoneopt __ARGS((struct vimoption *, int opt_flags));
3026 static char_u *get_varp_scope __ARGS((struct vimoption *p, int opt_flags));
3028 static void option_value2string __ARGS((struct vimoption *, int opt_flags));
3492 set_option_default(opt_idx, opt_flags, compatible)
3494 int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
3501 int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0;
3503 varp = get_varp_scope(&(options[opt_idx]), both ? OPT_LOCAL : opt_flags);
3514 options[opt_idx].def_val[dvi], opt_flags, 0);
3517 if ((opt_flags & OPT_FREE) && (flags & P_ALLOCED))
3553 flagsp = insecure_flag(opt_idx, opt_flags);
3558 set_option_scriptID_idx(opt_idx, opt_flags, current_SID);
3566 set_options_default(opt_flags)
3567 int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
3577 set_option_default(i, opt_flags, p_cp);
4042 * "opt_flags":
4053 do_set(arg, opt_flags)
4055 int opt_flags;
4079 showoptions(0, opt_flags);
4090 && !(opt_flags & OPT_MODELINE))
4101 set_options_default(OPT_FREE | opt_flags);
4105 showoptions(1, opt_flags);
4109 else if (STRNCMP(arg, "termcap", 7) == 0 && !(opt_flags & OPT_MODELINE))
4111 showoptions(2, opt_flags);
4226 varp = get_varp_scope(&(options[opt_idx]), opt_flags);
4245 if ((opt_flags & OPT_WINONLY)
4250 if ((opt_flags & OPT_NOWIN) && opt_idx >= 0
4255 if (opt_flags & OPT_MODELINE)
4329 showoneopt(&options[opt_idx], opt_flags);
4387 && opt_flags == OPT_LOCAL)
4411 opt_flags);
4489 errbuf, sizeof(errbuf), opt_flags);
4507 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0
4606 && (opt_flags & OPT_LOCAL))
4790 new_value_alloced, oldval, errbuf, opt_flags);
4823 did_set_option(opt_idx, opt_flags,
4890 did_set_option(opt_idx, opt_flags, new_value)
4892 int opt_flags; /* possibly with OPT_MODELINE */
4902 p = insecure_flag(opt_idx, opt_flags);
4907 || (opt_flags & OPT_MODELINE))
4999 set_options_bin(oldval, newval, opt_flags)
5002 int opt_flags; /* OPT_LOCAL and/or OPT_GLOBAL */
5012 if (!(opt_flags & OPT_GLOBAL))
5019 if (!(opt_flags & OPT_LOCAL))
5028 if (!(opt_flags & OPT_GLOBAL))
5035 if (!(opt_flags & OPT_LOCAL))
5046 if (!(opt_flags & OPT_GLOBAL))
5053 if (!(opt_flags & OPT_LOCAL))
5365 was_set_insecurely(opt, opt_flags)
5367 int opt_flags;
5374 flagp = insecure_flag(idx, opt_flags);
5386 insecure_flag(opt_idx, opt_flags)
5388 int opt_flags;
5390 if (opt_flags & OPT_LOCAL)
5442 set_string_option_direct(name, opt_idx, val, opt_flags, set_sid)
5446 int opt_flags; /* OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL */
5451 int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0;
5471 both ? OPT_LOCAL : opt_flags);
5472 if ((opt_flags & OPT_FREE) && (options[idx].flags & P_ALLOCED))
5491 set_option_scriptID_idx(idx, opt_flags,
5525 set_string_option(opt_idx, value, opt_flags)
5528 int opt_flags; /* OPT_LOCAL and/or OPT_GLOBAL */
5541 (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0
5544 : opt_flags);
5548 opt_flags) == NULL)
5549 did_set_option(opt_idx, opt_flags, TRUE);
5559 opt_flags)
5565 int opt_flags; /* OPT_LOCAL and/or OPT_GLOBAL */
5839 if (!curbuf->b_p_ma && opt_flags != OPT_GLOBAL)
5964 if ((opt_flags & OPT_LOCAL) == 0)
5979 if (!curbuf->b_p_ma && !(opt_flags & OPT_GLOBAL))
6033 if (opt_flags & OPT_LOCAL)
6055 if ((opt_flags & OPT_LOCAL) && *oldval == NUL)
6069 if ((opt_flags & OPT_GLOBAL) && STRCMP(p_cm, oldval) != 0)
6921 set_option_scriptID_idx(opt_idx, opt_flags, current_SID);
6935 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0
6946 else if (!(opt_flags & OPT_LOCAL) && opt_flags != OPT_GLOBAL)
7419 set_option_scriptID_idx(opt_idx, opt_flags, id)
7421 int opt_flags;
7424 int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0;
7429 if (both || (opt_flags & OPT_GLOBAL) || (indir & (PV_BUF|PV_WIN)) == 0)
7431 if (both || (opt_flags & OPT_LOCAL))
7446 set_bool_option(opt_idx, varp, value, opt_flags)
7450 int opt_flags; /* OPT_LOCAL and/or OPT_GLOBAL */
7465 set_option_scriptID_idx(opt_idx, opt_flags, current_SID);
7473 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0)
7505 if (!curbuf->b_p_ro && (opt_flags & OPT_LOCAL) == 0)
7548 set_options_bin(old_value, curbuf->b_p_bin, opt_flags);
7663 set_fileformat(curbuf->b_p_tx ? EOL_DOS : EOL_UNIX, opt_flags);
7670 OPT_FREE | opt_flags, 0);
8007 set_num_option(opt_idx, varp, value, errbuf, errbuflen, opt_flags)
8013 int opt_flags; /* OPT_LOCAL, OPT_GLOBAL and
8033 set_option_scriptID_idx(opt_idx, opt_flags, current_SID);
8505 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0)
8626 get_option_value(name, numval, stringval, opt_flags)
8630 int opt_flags;
8639 varp = get_varp_scope(&(options[opt_idx]), opt_flags);
8681 set_option_value(name, number, string, opt_flags)
8685 int opt_flags; /* OPT_LOCAL or 0 (both) */
8706 set_string_option(opt_idx, string, opt_flags);
8709 varp = get_varp_scope(&(options[opt_idx]), opt_flags);
8733 NULL, 0, opt_flags);
8736 opt_flags);
8823 showoptions(all, opt_flags)
8825 int opt_flags; /* OPT_LOCAL and/or OPT_GLOBAL */
8850 else if (opt_flags & OPT_GLOBAL)
8852 else if (opt_flags & OPT_LOCAL)
8872 if (opt_flags != 0)
8875 varp = get_varp_scope(p, opt_flags);
8888 option_value2string(p, opt_flags);
8918 showoneopt(items[i], opt_flags);
8956 showoneopt(p, opt_flags)
8958 int opt_flags; /* OPT_LOCAL or OPT_GLOBAL */
8966 varp = get_varp_scope(p, opt_flags);
8981 option_value2string(p, opt_flags);
8992 * There are three values for "opt_flags":
9012 makeset(fd, opt_flags, local_only)
9014 int opt_flags;
9039 if (p->indir == PV_NONE && !(opt_flags & OPT_GLOBAL))
9044 if ((opt_flags & OPT_GLOBAL) && (p->flags & P_NOGLOB))
9048 varp = get_varp_scope(p, opt_flags);
9049 if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp))
9058 if (!(opt_flags & OPT_LOCAL))
9062 if (!(opt_flags & OPT_GLOBAL) && !local_only)
9079 if (round == 1 || (opt_flags & OPT_GLOBAL))
9409 get_varp_scope(p, opt_flags)
9411 int opt_flags;
9413 if ((opt_flags & OPT_GLOBAL) && p->indir != PV_NONE)
9419 if ((opt_flags & OPT_LOCAL) && ((int)p->indir & PV_BOTH))
10151 set_context_in_set_cmd(xp, arg, opt_flags)
10154 int opt_flags; /* OPT_GLOBAL and/or OPT_LOCAL */
10164 expand_option_flags = opt_flags;
10584 option_value2string(opp, opt_flags)
10586 int opt_flags; /* OPT_GLOBAL and/or OPT_LOCAL */
10590 varp = get_varp_scope(opp, opt_flags);