|
Karsten Hopp |
f41879 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f41879 |
Subject: Patch 7.3.1156
|
|
Karsten Hopp |
f41879 |
Fcc: outbox
|
|
Karsten Hopp |
f41879 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f41879 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f41879 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f41879 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f41879 |
------------
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
Patch 7.3.1156
|
|
Karsten Hopp |
f41879 |
Problem: Compiler warnings. (dv1445)
|
|
Karsten Hopp |
f41879 |
Solution: Initialize variables, even when the value isn't really used.
|
|
Karsten Hopp |
f41879 |
Files: src/regexp_nfa.c, src/eval.c
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
*** ../vim-7.3.1155/src/regexp_nfa.c 2013-06-09 17:25:29.000000000 +0200
|
|
Karsten Hopp |
f41879 |
--- src/regexp_nfa.c 2013-06-09 20:35:42.000000000 +0200
|
|
Karsten Hopp |
f41879 |
***************
|
|
Karsten Hopp |
f41879 |
*** 3045,3051 ****
|
|
Karsten Hopp |
f41879 |
start_state = NFA_START_INVISIBLE_BEFORE_NEG;
|
|
Karsten Hopp |
f41879 |
end_state = NFA_END_INVISIBLE_NEG;
|
|
Karsten Hopp |
f41879 |
break;
|
|
Karsten Hopp |
f41879 |
! case NFA_PREV_ATOM_LIKE_PATTERN:
|
|
Karsten Hopp |
f41879 |
start_state = NFA_START_PATTERN;
|
|
Karsten Hopp |
f41879 |
end_state = NFA_END_PATTERN;
|
|
Karsten Hopp |
f41879 |
break;
|
|
Karsten Hopp |
f41879 |
--- 3045,3051 ----
|
|
Karsten Hopp |
f41879 |
start_state = NFA_START_INVISIBLE_BEFORE_NEG;
|
|
Karsten Hopp |
f41879 |
end_state = NFA_END_INVISIBLE_NEG;
|
|
Karsten Hopp |
f41879 |
break;
|
|
Karsten Hopp |
f41879 |
! default: /* NFA_PREV_ATOM_LIKE_PATTERN: */
|
|
Karsten Hopp |
f41879 |
start_state = NFA_START_PATTERN;
|
|
Karsten Hopp |
f41879 |
end_state = NFA_END_PATTERN;
|
|
Karsten Hopp |
f41879 |
break;
|
|
Karsten Hopp |
f41879 |
***************
|
|
Karsten Hopp |
f41879 |
*** 4853,4859 ****
|
|
Karsten Hopp |
f41879 |
nfa_state_T *add_state;
|
|
Karsten Hopp |
f41879 |
int add_here;
|
|
Karsten Hopp |
f41879 |
int add_count;
|
|
Karsten Hopp |
f41879 |
! int add_off;
|
|
Karsten Hopp |
f41879 |
int toplevel = start->c == NFA_MOPEN;
|
|
Karsten Hopp |
f41879 |
#ifdef NFA_REGEXP_DEBUG_LOG
|
|
Karsten Hopp |
f41879 |
FILE *debug = fopen(NFA_REGEXP_DEBUG_LOG, "a");
|
|
Karsten Hopp |
f41879 |
--- 4853,4859 ----
|
|
Karsten Hopp |
f41879 |
nfa_state_T *add_state;
|
|
Karsten Hopp |
f41879 |
int add_here;
|
|
Karsten Hopp |
f41879 |
int add_count;
|
|
Karsten Hopp |
f41879 |
! int add_off = 0;
|
|
Karsten Hopp |
f41879 |
int toplevel = start->c == NFA_MOPEN;
|
|
Karsten Hopp |
f41879 |
#ifdef NFA_REGEXP_DEBUG_LOG
|
|
Karsten Hopp |
f41879 |
FILE *debug = fopen(NFA_REGEXP_DEBUG_LOG, "a");
|
|
Karsten Hopp |
f41879 |
*** ../vim-7.3.1155/src/eval.c 2013-06-08 18:19:39.000000000 +0200
|
|
Karsten Hopp |
f41879 |
--- src/eval.c 2013-06-09 20:38:06.000000000 +0200
|
|
Karsten Hopp |
f41879 |
***************
|
|
Karsten Hopp |
f41879 |
*** 2734,2739 ****
|
|
Karsten Hopp |
f41879 |
--- 2734,2741 ----
|
|
Karsten Hopp |
f41879 |
prevval = key[len];
|
|
Karsten Hopp |
f41879 |
key[len] = NUL;
|
|
Karsten Hopp |
f41879 |
}
|
|
Karsten Hopp |
f41879 |
+ else
|
|
Karsten Hopp |
f41879 |
+ prevval = 0; /* avoid compiler warning */
|
|
Karsten Hopp |
f41879 |
wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE
|
|
Karsten Hopp |
f41879 |
&& rettv->v_type == VAR_FUNC
|
|
Karsten Hopp |
f41879 |
&& var_check_func_name(key, lp->ll_di == NULL))
|
|
Karsten Hopp |
f41879 |
*** ../vim-7.3.1155/src/version.c 2013-06-09 17:52:42.000000000 +0200
|
|
Karsten Hopp |
f41879 |
--- src/version.c 2013-06-09 20:50:05.000000000 +0200
|
|
Karsten Hopp |
f41879 |
***************
|
|
Karsten Hopp |
f41879 |
*** 730,731 ****
|
|
Karsten Hopp |
f41879 |
--- 730,733 ----
|
|
Karsten Hopp |
f41879 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f41879 |
+ /**/
|
|
Karsten Hopp |
f41879 |
+ 1156,
|
|
Karsten Hopp |
f41879 |
/**/
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
--
|
|
Karsten Hopp |
f41879 |
"Microsoft is like Coke. It's a secret formula, all the money is from
|
|
Karsten Hopp |
f41879 |
distribution, and their goal is to get Coke everywhere. Open source is like
|
|
Karsten Hopp |
f41879 |
selling water. There are water companies like Perrier and Poland Spring, but
|
|
Karsten Hopp |
f41879 |
you're competing with something that's free." -- Carl Howe
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
|
|
Karsten Hopp |
f41879 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f41879 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f41879 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f41879 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|