|
Karsten Hopp |
6bc157 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
6bc157 |
Subject: Patch 7.3.973
|
|
Karsten Hopp |
6bc157 |
Fcc: outbox
|
|
Karsten Hopp |
6bc157 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
6bc157 |
Mime-Version: 1.0
|
|
Karsten Hopp |
6bc157 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
6bc157 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
6bc157 |
------------
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
Patch 7.3.973
|
|
Karsten Hopp |
6bc157 |
Problem: Compiler warnings. Crash on startup. (Tony Mechelynck)
|
|
Karsten Hopp |
6bc157 |
Solution: Change EMSG2 to EMSGN. Make array one character longer.
|
|
Karsten Hopp |
6bc157 |
Files: src/regexp_nfa.c
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
*** ../vim-7.3.972/src/regexp_nfa.c 2013-05-19 19:16:25.000000000 +0200
|
|
Karsten Hopp |
6bc157 |
--- src/regexp_nfa.c 2013-05-19 21:56:31.000000000 +0200
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 273,279 ****
|
|
Karsten Hopp |
6bc157 |
NFA_HEAD, NFA_NHEAD, NFA_ALPHA, NFA_NALPHA,
|
|
Karsten Hopp |
6bc157 |
NFA_LOWER, NFA_NLOWER, NFA_UPPER, NFA_NUPPER
|
|
Karsten Hopp |
6bc157 |
};
|
|
Karsten Hopp |
6bc157 |
! char_u myconfig[9];
|
|
Karsten Hopp |
6bc157 |
char_u config[NCONFIGS][9] = {
|
|
Karsten Hopp |
6bc157 |
"000000100", /* digit */
|
|
Karsten Hopp |
6bc157 |
"100000100", /* non digit */
|
|
Karsten Hopp |
6bc157 |
--- 273,279 ----
|
|
Karsten Hopp |
6bc157 |
NFA_HEAD, NFA_NHEAD, NFA_ALPHA, NFA_NALPHA,
|
|
Karsten Hopp |
6bc157 |
NFA_LOWER, NFA_NLOWER, NFA_UPPER, NFA_NUPPER
|
|
Karsten Hopp |
6bc157 |
};
|
|
Karsten Hopp |
6bc157 |
! char_u myconfig[10];
|
|
Karsten Hopp |
6bc157 |
char_u config[NCONFIGS][9] = {
|
|
Karsten Hopp |
6bc157 |
"000000100", /* digit */
|
|
Karsten Hopp |
6bc157 |
"100000100", /* non digit */
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 400,406 ****
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
/* try to recognize character classes */
|
|
Karsten Hopp |
6bc157 |
for (i = 0; i < NCONFIGS; i++)
|
|
Karsten Hopp |
6bc157 |
! if (STRNCMP(myconfig, config[i],8) == 0)
|
|
Karsten Hopp |
6bc157 |
return classid[i] + extra_newl;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
/* fallthrough => no success so far */
|
|
Karsten Hopp |
6bc157 |
--- 400,406 ----
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
/* try to recognize character classes */
|
|
Karsten Hopp |
6bc157 |
for (i = 0; i < NCONFIGS; i++)
|
|
Karsten Hopp |
6bc157 |
! if (STRNCMP(myconfig, config[i], 8) == 0)
|
|
Karsten Hopp |
6bc157 |
return classid[i] + extra_newl;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
/* fallthrough => no success so far */
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 759,765 ****
|
|
Karsten Hopp |
6bc157 |
case Magic('&'):
|
|
Karsten Hopp |
6bc157 |
case Magic(')'):
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSG2(_(e_misplaced), no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
case Magic('='):
|
|
Karsten Hopp |
6bc157 |
--- 759,765 ----
|
|
Karsten Hopp |
6bc157 |
case Magic('&'):
|
|
Karsten Hopp |
6bc157 |
case Magic(')'):
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSGN(_(e_misplaced), no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
case Magic('='):
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 770,776 ****
|
|
Karsten Hopp |
6bc157 |
case Magic('{'):
|
|
Karsten Hopp |
6bc157 |
/* these should follow an atom, not form an atom */
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSG2(_(e_misplaced), no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
case Magic('~'): /* previous substitute pattern */
|
|
Karsten Hopp |
6bc157 |
--- 770,776 ----
|
|
Karsten Hopp |
6bc157 |
case Magic('{'):
|
|
Karsten Hopp |
6bc157 |
/* these should follow an atom, not form an atom */
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSGN(_(e_misplaced), no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
case Magic('~'): /* previous substitute pattern */
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 816,822 ****
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
default:
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSG2(_("E867: (NFA) Unknown operator '\\z%c'"),
|
|
Karsten Hopp |
6bc157 |
no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
--- 816,822 ----
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
default:
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSGN(_("E867: (NFA) Unknown operator '\\z%c'"),
|
|
Karsten Hopp |
6bc157 |
no_Magic(c));
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 1363,1369 ****
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
default:
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSG2(_("E869: (NFA) Unknown operator '\\@%c'"), op);
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
break;
|
|
Karsten Hopp |
6bc157 |
--- 1363,1369 ----
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
default:
|
|
Karsten Hopp |
6bc157 |
syntax_error = TRUE;
|
|
Karsten Hopp |
6bc157 |
! EMSGN(_("E869: (NFA) Unknown operator '\\@%c'"), op);
|
|
Karsten Hopp |
6bc157 |
return FAIL;
|
|
Karsten Hopp |
6bc157 |
}
|
|
Karsten Hopp |
6bc157 |
break;
|
|
Karsten Hopp |
6bc157 |
*** ../vim-7.3.972/src/version.c 2013-05-19 21:15:08.000000000 +0200
|
|
Karsten Hopp |
6bc157 |
--- src/version.c 2013-05-19 22:29:03.000000000 +0200
|
|
Karsten Hopp |
6bc157 |
***************
|
|
Karsten Hopp |
6bc157 |
*** 730,731 ****
|
|
Karsten Hopp |
6bc157 |
--- 730,733 ----
|
|
Karsten Hopp |
6bc157 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
6bc157 |
+ /**/
|
|
Karsten Hopp |
6bc157 |
+ 973,
|
|
Karsten Hopp |
6bc157 |
/**/
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
--
|
|
Karsten Hopp |
6bc157 |
Sometimes I think the surest sign that intelligent life exists elsewhere
|
|
Karsten Hopp |
6bc157 |
in the universe is that none of it has tried to contact us. (Calvin)
|
|
Karsten Hopp |
6bc157 |
|
|
Karsten Hopp |
6bc157 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
6bc157 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
6bc157 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
6bc157 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|