comparison src/option.c @ 9389:32e34e574716 v7.4.1976

commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 1 18:17:26 2016 +0200 patch 7.4.1976 Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jul 2016 18:30:07 +0200
parents 35b173e37dc6
children beab399e3883
comparison
equal deleted inserted replaced
9388:404ac7af0e7e 9389:32e34e574716
4177 int prefix; /* 1: nothing, 0: "no", 2: "inv" in front of name */ 4177 int prefix; /* 1: nothing, 0: "no", 2: "inv" in front of name */
4178 int nextchar; /* next non-white char after option name */ 4178 int nextchar; /* next non-white char after option name */
4179 int afterchar; /* character just after option name */ 4179 int afterchar; /* character just after option name */
4180 int len; 4180 int len;
4181 int i; 4181 int i;
4182 long value; 4182 varnumber_T value;
4183 int key; 4183 int key;
4184 long_u flags; /* flags for current option */ 4184 long_u flags; /* flags for current option */
4185 char_u *varp = NULL; /* pointer to variable for current option */ 4185 char_u *varp = NULL; /* pointer to variable for current option */
4186 int did_show = FALSE; /* already showed one value */ 4186 int did_show = FALSE; /* already showed one value */
4187 int adding; /* "opt+=arg" */ 4187 int adding; /* "opt+=arg" */
9100 /* Special case: 'modified' is b_changed, but we also want to consider 9100 /* Special case: 'modified' is b_changed, but we also want to consider
9101 * it set when 'ff' or 'fenc' changed. */ 9101 * it set when 'ff' or 'fenc' changed. */
9102 if ((int *)varp == &curbuf->b_changed) 9102 if ((int *)varp == &curbuf->b_changed)
9103 *numval = curbufIsChanged(); 9103 *numval = curbufIsChanged();
9104 else 9104 else
9105 *numval = *(int *)varp; 9105 *numval = (long) *(varnumber_T *)varp;
9106 } 9106 }
9107 return 1; 9107 return 1;
9108 } 9108 }
9109 #endif 9109 #endif
9110 9110