home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.379 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.379
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.379
  11. Problem:    C-indenting wrong for static enum.
  12. Solution:   Skip over "static". (Lech Lorens)
  13. Files:        src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
  14.  
  15.  
  16. *** ../vim-7.3.378/src/misc1.c    2011-11-30 17:20:18.000000000 +0100
  17. --- src/misc1.c    2011-12-14 19:37:48.000000000 +0100
  18. ***************
  19. *** 5138,5143 ****
  20. --- 5138,5146 ----
  21.       if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7]))
  22.       s = cin_skipcomment(s + 7);
  23.   
  24. +     if (STRNCMP(s, "static", 6) == 0 && !vim_isIDc(s[6]))
  25. +     s = cin_skipcomment(s + 6);
  26.       if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4]))
  27.       return TRUE;
  28.   
  29. *** ../vim-7.3.378/src/testdir/test3.in    2011-11-30 17:20:18.000000000 +0100
  30. --- src/testdir/test3.in    2011-12-14 20:03:11.000000000 +0100
  31. ***************
  32. *** 299,316 ****
  33.   
  34.   enum soppie
  35.   {
  36. !     yes = 0,
  37. !     no,
  38. !     maybe
  39.   };
  40.   
  41.   typedef enum soppie
  42.   {
  43. !     yes = 0,
  44. !     no,
  45. !     maybe
  46.   };
  47.   
  48.   {
  49.       int a,
  50.           b;
  51. --- 299,323 ----
  52.   
  53.   enum soppie
  54.   {
  55. ! yes = 0,
  56. ! no,
  57. ! maybe
  58.   };
  59.   
  60.   typedef enum soppie
  61.   {
  62. ! yes = 0,
  63. ! no,
  64. ! maybe
  65.   };
  66.   
  67. + static enum
  68. + {
  69. + yes = 0,
  70. + no,
  71. + maybe
  72. + } soppie;
  73.   {
  74.       int a,
  75.           b;
  76. *** ../vim-7.3.378/src/testdir/test3.ok    2011-11-30 17:20:18.000000000 +0100
  77. --- src/testdir/test3.ok    2011-12-14 19:37:48.000000000 +0100
  78. ***************
  79. *** 299,304 ****
  80. --- 299,311 ----
  81.       maybe
  82.   };
  83.   
  84. + static enum
  85. + {
  86. +     yes = 0,
  87. +     no,
  88. +     maybe
  89. + } soppie;
  90.   {
  91.       int a,
  92.           b;
  93. *** ../vim-7.3.378/src/version.c    2011-12-14 19:22:29.000000000 +0100
  94. --- src/version.c    2011-12-14 20:02:19.000000000 +0100
  95. ***************
  96. *** 716,717 ****
  97. --- 716,719 ----
  98.   {   /* Add new patch number below this line */
  99. + /**/
  100. +     379,
  101.   /**/
  102.  
  103. -- 
  104. You cannot propel yourself forward by patting yourself on the back.
  105.  
  106.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  107. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  108. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  109.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  110.