comparison src/version.c @ 17053:d5fa04016df0 v8.1.1526

patch 8.1.1526: no numerical value for the patchlevel commit https://github.com/vim/vim/commit/37df9a4401f6737d6216306ea77a7e080c942aea Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 14 14:39:51 2019 +0200 patch 8.1.1526: no numerical value for the patchlevel Problem: No numerical value for the patchlevel. Solution: Add v:versionlong.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Jun 2019 14:45:06 +0200
parents 221d4b82bc0b
children f4de7ccdfd8c
comparison
equal deleted inserted replaced
17052:4f290fef4173 17053:d5fa04016df0
776 }; 776 };
777 777
778 static int included_patches[] = 778 static int included_patches[] =
779 { /* Add new patch number below this line */ 779 { /* Add new patch number below this line */
780 /**/ 780 /**/
781 1526,
782 /**/
781 1525, 783 1525,
782 /**/ 784 /**/
783 1524, 785 1524,
784 /**/ 786 /**/
785 1523, 787 1523,
3845 }; 3847 };
3846 3848
3847 int 3849 int
3848 highest_patch(void) 3850 highest_patch(void)
3849 { 3851 {
3850 int i; 3852 // this relies on the highest patch number to be the first entry
3851 int h = 0; 3853 return included_patches[0];
3852
3853 for (i = 0; included_patches[i] != 0; ++i)
3854 if (included_patches[i] > h)
3855 h = included_patches[i];
3856 return h;
3857 } 3854 }
3858 3855
3859 #if defined(FEAT_EVAL) || defined(PROTO) 3856 #if defined(FEAT_EVAL) || defined(PROTO)
3860 /* 3857 /*
3861 * Return TRUE if patch "n" has been included. 3858 * Return TRUE if patch "n" has been included.