|
Karsten Hopp |
527dd2 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
527dd2 |
Subject: Patch 7.3.379
|
|
Karsten Hopp |
527dd2 |
Fcc: outbox
|
|
Karsten Hopp |
527dd2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
527dd2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
527dd2 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
527dd2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
527dd2 |
------------
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
Patch 7.3.379
|
|
Karsten Hopp |
527dd2 |
Problem: C-indenting wrong for static enum.
|
|
Karsten Hopp |
527dd2 |
Solution: Skip over "static". (Lech Lorens)
|
|
Karsten Hopp |
527dd2 |
Files: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
*** ../vim-7.3.378/src/misc1.c 2011-11-30 17:20:18.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
--- src/misc1.c 2011-12-14 19:37:48.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
***************
|
|
Karsten Hopp |
527dd2 |
*** 5138,5143 ****
|
|
Karsten Hopp |
527dd2 |
--- 5138,5146 ----
|
|
Karsten Hopp |
527dd2 |
if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7]))
|
|
Karsten Hopp |
527dd2 |
s = cin_skipcomment(s + 7);
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
+ if (STRNCMP(s, "static", 6) == 0 && !vim_isIDc(s[6]))
|
|
Karsten Hopp |
527dd2 |
+ s = cin_skipcomment(s + 6);
|
|
Karsten Hopp |
527dd2 |
+
|
|
Karsten Hopp |
527dd2 |
if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4]))
|
|
Karsten Hopp |
527dd2 |
return TRUE;
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
*** ../vim-7.3.378/src/testdir/test3.in 2011-11-30 17:20:18.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
--- src/testdir/test3.in 2011-12-14 20:03:11.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
***************
|
|
Karsten Hopp |
527dd2 |
*** 299,316 ****
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
enum soppie
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
! yes = 0,
|
|
Karsten Hopp |
527dd2 |
! no,
|
|
Karsten Hopp |
527dd2 |
! maybe
|
|
Karsten Hopp |
527dd2 |
};
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
typedef enum soppie
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
! yes = 0,
|
|
Karsten Hopp |
527dd2 |
! no,
|
|
Karsten Hopp |
527dd2 |
! maybe
|
|
Karsten Hopp |
527dd2 |
};
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
int a,
|
|
Karsten Hopp |
527dd2 |
b;
|
|
Karsten Hopp |
527dd2 |
--- 299,323 ----
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
enum soppie
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
! yes = 0,
|
|
Karsten Hopp |
527dd2 |
! no,
|
|
Karsten Hopp |
527dd2 |
! maybe
|
|
Karsten Hopp |
527dd2 |
};
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
typedef enum soppie
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
! yes = 0,
|
|
Karsten Hopp |
527dd2 |
! no,
|
|
Karsten Hopp |
527dd2 |
! maybe
|
|
Karsten Hopp |
527dd2 |
};
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
+ static enum
|
|
Karsten Hopp |
527dd2 |
+ {
|
|
Karsten Hopp |
527dd2 |
+ yes = 0,
|
|
Karsten Hopp |
527dd2 |
+ no,
|
|
Karsten Hopp |
527dd2 |
+ maybe
|
|
Karsten Hopp |
527dd2 |
+ } soppie;
|
|
Karsten Hopp |
527dd2 |
+
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
int a,
|
|
Karsten Hopp |
527dd2 |
b;
|
|
Karsten Hopp |
527dd2 |
*** ../vim-7.3.378/src/testdir/test3.ok 2011-11-30 17:20:18.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
--- src/testdir/test3.ok 2011-12-14 19:37:48.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
***************
|
|
Karsten Hopp |
527dd2 |
*** 299,304 ****
|
|
Karsten Hopp |
527dd2 |
--- 299,311 ----
|
|
Karsten Hopp |
527dd2 |
maybe
|
|
Karsten Hopp |
527dd2 |
};
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
+ static enum
|
|
Karsten Hopp |
527dd2 |
+ {
|
|
Karsten Hopp |
527dd2 |
+ yes = 0,
|
|
Karsten Hopp |
527dd2 |
+ no,
|
|
Karsten Hopp |
527dd2 |
+ maybe
|
|
Karsten Hopp |
527dd2 |
+ } soppie;
|
|
Karsten Hopp |
527dd2 |
+
|
|
Karsten Hopp |
527dd2 |
{
|
|
Karsten Hopp |
527dd2 |
int a,
|
|
Karsten Hopp |
527dd2 |
b;
|
|
Karsten Hopp |
527dd2 |
*** ../vim-7.3.378/src/version.c 2011-12-14 19:22:29.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
--- src/version.c 2011-12-14 20:02:19.000000000 +0100
|
|
Karsten Hopp |
527dd2 |
***************
|
|
Karsten Hopp |
527dd2 |
*** 716,717 ****
|
|
Karsten Hopp |
527dd2 |
--- 716,719 ----
|
|
Karsten Hopp |
527dd2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
527dd2 |
+ /**/
|
|
Karsten Hopp |
527dd2 |
+ 379,
|
|
Karsten Hopp |
527dd2 |
/**/
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
--
|
|
Karsten Hopp |
527dd2 |
You cannot propel yourself forward by patting yourself on the back.
|
|
Karsten Hopp |
527dd2 |
|
|
Karsten Hopp |
527dd2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
527dd2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
527dd2 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
527dd2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|