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