More detailed version numbering, partly after Simon Sobisch; replace

hardwired version numbers elsewhere with these.
This commit is contained in:
William McBrine 2019-01-06 02:16:34 -05:00
parent 6cbb0fed03
commit af16a73b89
4 changed files with 20 additions and 9 deletions

View File

@ -1,8 +1,9 @@
#include <windows.h>
#include "../curses.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,7,0,0
PRODUCTVERSION 3,7,0,0
FILEVERSION PDC_VER_MAJOR,PDC_VER_MINOR,0,0
PRODUCTVERSION PDC_VER_MAJOR,PDC_VER_MINOR,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
@ -19,12 +20,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "PDCurses.org"
VALUE "FileDescription", "PDCurses Library"
VALUE "FileVersion", "3.7.0.0"
VALUE "FileVersion", PDC_VERDOT ".0.0"
VALUE "InternalName", "PDCurses"
VALUE "LegalCopyright", "Public Domain"
VALUE "OriginalFilename", "pdcurses.dll"
VALUE "ProductName", "PDCurses"
VALUE "ProductVersion", "3.7.0.0"
VALUE "ProductVersion", PDC_VERDOT ".0.0"
END
END
BLOCK "VarFileInfo"

View File

@ -21,13 +21,18 @@ Define before inclusion (only those needed):
Defined by this header:
PDC_BUILD Defines API build version.
PDCURSES Enables access to PDCurses-only routines.
PDC_BUILD Defines API build version.
PDC_VER_MAJOR Major version number
PDC_VER_MINOR Minor version number
**man-end****************************************************************/
#define PDC_BUILD 3701
#define PDCURSES 1 /* PDCurses-only routines */
#define PDC_BUILD 3702
#define PDC_VER_MAJOR 3
#define PDC_VER_MINOR 7
#define PDC_VERDOT "3.7"
#define CHTYPE_LONG 1 /* size of chtype; long */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L

View File

@ -326,8 +326,13 @@ int main(int argc, char **argv)
init_pair(5, COLOR_BLUE, COLOR_WHITE);
wattrset(win, COLOR_PAIR(5) | A_BLINK);
mvwaddstr(win, height - 2, 2,
" PDCurses 3.7 - DOS, OS/2, Windows, X11, SDL");
mvwaddstr(win, height - 2,
#ifdef PDC_VERDOT
2, " PDCurses " PDC_VERDOT
#else
3, " PDCurses"
#endif
" - DOS, OS/2, Windows, X11, SDL");
wrefresh(win);
/* Draw running messages */

View File

@ -95,7 +95,7 @@ initscr
char ttytype[128];
const char *_curses_notice = "PDCurses 3.7 - Public Domain 2018";
const char *_curses_notice = "PDCurses " PDC_VERDOT " - Public Domain 2019";
SCREEN *SP = (SCREEN*)NULL; /* curses variables */
WINDOW *curscr = (WINDOW *)NULL; /* the current screen image */