Karsten Hopp aac635
To: vim-dev@vim.org
Karsten Hopp aac635
Subject: Patch 7.2.058
Karsten Hopp aac635
Fcc: outbox
Karsten Hopp aac635
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp aac635
Mime-Version: 1.0
Karsten Hopp aac635
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp aac635
Content-Transfer-Encoding: 8bit
Karsten Hopp aac635
------------
Karsten Hopp aac635
Karsten Hopp aac635
Patch 7.2.058
Karsten Hopp aac635
Problem:    Can't add a patch name to the ":version" output.
Karsten Hopp aac635
Solution:   Add the extra_patches array.
Karsten Hopp aac635
Files:	    src/version.c
Karsten Hopp aac635
Karsten Hopp aac635
Karsten Hopp aac635
*** ../vim-7.2.057/src/version.c	Sat Nov 29 20:18:44 2008
Karsten Hopp aac635
--- src/version.c	Sun Nov 30 12:12:31 2008
Karsten Hopp aac635
***************
Karsten Hopp aac635
*** 794,799 ****
Karsten Hopp aac635
--- 796,814 ----
Karsten Hopp aac635
      0
Karsten Hopp aac635
  };
Karsten Hopp aac635
  
Karsten Hopp aac635
+ /*
Karsten Hopp aac635
+  * Place to put a short description when adding a feature with a patch.
Karsten Hopp aac635
+  * Keep it short, e.g.,: "relative numbers", "persistent undo".
Karsten Hopp aac635
+  * Also add a comment marker to separate the lines.
Karsten Hopp aac635
+  * See the official Vim patches for the diff format: It must use a context of
Karsten Hopp aac635
+  * one line only.  Use "diff -C2".
Karsten Hopp aac635
+  */
Karsten Hopp aac635
+ static char *(extra_patches[]) =
Karsten Hopp aac635
+ {   /* Add your patch description below this line */
Karsten Hopp aac635
+ /**/
Karsten Hopp aac635
+     NULL
Karsten Hopp aac635
+ };
Karsten Hopp aac635
+ 
Karsten Hopp aac635
      int
Karsten Hopp aac635
  highest_patch()
Karsten Hopp aac635
  {
Karsten Hopp aac635
***************
Karsten Hopp aac635
*** 939,944 ****
Karsten Hopp aac635
--- 954,972 ----
Karsten Hopp aac635
  	}
Karsten Hopp aac635
      }
Karsten Hopp aac635
  
Karsten Hopp aac635
+     /* Print the list of extra patch descriptions if there is at least one. */
Karsten Hopp aac635
+     if (extra_patches[0] != NULL)
Karsten Hopp aac635
+     {
Karsten Hopp aac635
+ 	MSG_PUTS(_("\nExtra patches: "));
Karsten Hopp aac635
+ 	s = "";
Karsten Hopp aac635
+ 	for (i = 0; extra_patches[i] != NULL; ++i)
Karsten Hopp aac635
+ 	{
Karsten Hopp aac635
+ 	    MSG_PUTS(s);
Karsten Hopp aac635
+ 	    s = ", ";
Karsten Hopp aac635
+ 	    MSG_PUTS(extra_patches[i]);
Karsten Hopp aac635
+ 	}
Karsten Hopp aac635
+     }
Karsten Hopp aac635
+ 
Karsten Hopp aac635
  #ifdef MODIFIED_BY
Karsten Hopp aac635
      MSG_PUTS("\n");
Karsten Hopp aac635
      MSG_PUTS(_("Modified by "));
Karsten Hopp aac635
*** ../vim-7.2.057/src/version.c	Sat Nov 29 20:18:44 2008
Karsten Hopp aac635
--- src/version.c	Sun Nov 30 12:12:31 2008
Karsten Hopp aac635
***************
Karsten Hopp aac635
*** 678,679 ****
Karsten Hopp aac635
--- 678,681 ----
Karsten Hopp aac635
  {   /* Add new patch number below this line */
Karsten Hopp aac635
+ /**/
Karsten Hopp aac635
+     58,
Karsten Hopp aac635
  /**/
Karsten Hopp aac635
Karsten Hopp aac635
-- 
Karsten Hopp aac635
ARTHUR:    Well, it doesn't matter.  Will you go and tell your master that
Karsten Hopp aac635
           Arthur from the Court of Camelot is here.
Karsten Hopp aac635
GUARD #1:  Listen, in order to maintain air-speed velocity, a swallow
Karsten Hopp aac635
           needs to beat its wings 43 times every second, right?
Karsten Hopp aac635
ARTHUR:    Please!
Karsten Hopp aac635
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp aac635
Karsten Hopp aac635
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp aac635
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp aac635
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp aac635
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///