version.h
Go to the documentation of this file.
1 #ifndef NVIM_VERSION_H
2 #define NVIM_VERSION_H
3 
4 #include "nvim/ex_cmds_defs.h"
5 #include "nvim/macros.h"
6 
7 // defined in version.c
8 extern char* Version;
9 extern char* longVersion;
10 
11 //
12 // Vim version number, name, etc. Patchlevel is defined in version.c.
13 //
14 
15 // Values that change for a new release
16 #define VIM_VERSION_MAJOR 8
17 #define VIM_VERSION_MINOR 0
18 
19 // Values based on the above
20 #define VIM_VERSION_MAJOR_STR STR(VIM_VERSION_MAJOR)
21 #define VIM_VERSION_MINOR_STR STR(VIM_VERSION_MINOR)
22 #define VIM_VERSION_100 (VIM_VERSION_MAJOR * 100 + VIM_VERSION_MINOR)
23 
24 // used for the runtime directory name
25 #define VIM_VERSION_NODOT "vim" VIM_VERSION_MAJOR_STR VIM_VERSION_MINOR_STR
26 // swap file compatibility (max. length is 6 chars)
27 #define VIM_VERSION_SHORT VIM_VERSION_MAJOR_STR "." VIM_VERSION_MINOR_STR
28 
29 #ifdef INCLUDE_GENERATED_DECLARATIONS
30 # include "version.h.generated.h"
31 #endif
32 #endif // NVIM_VERSION_H
macros.h
Version
char * Version
Definition: version.c:39
longVersion
char * longVersion
Definition: version.c:40
ex_cmds_defs.h