Skip to content

Commit 3278c86

Browse files
authored
Bump version number to 5.0.0 (#546)
* Bump version number to 5.0.0 Since we already introduced breaking API changes, so there should be a way to detect those changes for users. * Remove type cast in VERSION macros Allows preprocesser #if statements to use version macros. * ci: fix meson minimal build
1 parent 2519003 commit 3278c86

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
# Do a few more specialized configurations.
7676
- platform: ubuntu-22.04
7777
mode:
78-
- name: minimal
79-
args: -Dminimal=enabled -Ddecoder=enabled -Davx512=enabled -Dknc=enabled -Dsegment=enabled -Dtests=enabled
78+
name: minimal
79+
args: -Dminimal=enabled -Ddecoder=enabled -Davx512=enabled -Dknc=enabled -Dsegment=enabled -Dtests=enabled
8080
extra_envs: {}
8181
flavor: minsize
8282
exclude:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
55
cmake_policy(SET CMP0091 NEW)
66
endif ()
77

8-
project(Zydis VERSION 4.0.0.0 LANGUAGES C)
8+
project(Zydis VERSION 5.0.0.0 LANGUAGES C)
99

1010
include(GNUInstallDirs)
1111
include(CMakePackageConfigHelpers)

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# per line (i.e. do not split long lines with '\'), and only use '=' to set values
33

44
PROJECT_NAME = Zydis
5-
PROJECT_NUMBER = v4.0.0
5+
PROJECT_NUMBER = v5.0.0
66
OUTPUT_DIRECTORY = ./doc
77
INPUT = ./include ./README.md ./files.dox
88
JAVADOC_AUTOBRIEF = YES

include/Zydis/Zydis.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern "C" {
8686
/**
8787
* A macro that defines the zydis version.
8888
*/
89-
#define ZYDIS_VERSION (ZyanU64)0x0004000000000000
89+
#define ZYDIS_VERSION 0x0005000000000000ULL
9090

9191
/* ---------------------------------------------------------------------------------------------- */
9292
/* Helper macros */
@@ -97,28 +97,28 @@ extern "C" {
9797
*
9898
* @param version The zydis version value
9999
*/
100-
#define ZYDIS_VERSION_MAJOR(version) (ZyanU16)(((version) & 0xFFFF000000000000) >> 48)
100+
#define ZYDIS_VERSION_MAJOR(version) (((version) & 0xFFFF000000000000) >> 48)
101101

102102
/**
103103
* Extracts the minor-part of the zydis version.
104104
*
105105
* @param version The zydis version value
106106
*/
107-
#define ZYDIS_VERSION_MINOR(version) (ZyanU16)(((version) & 0x0000FFFF00000000) >> 32)
107+
#define ZYDIS_VERSION_MINOR(version) (((version) & 0x0000FFFF00000000) >> 32)
108108

109109
/**
110110
* Extracts the patch-part of the zydis version.
111111
*
112112
* @param version The zydis version value
113113
*/
114-
#define ZYDIS_VERSION_PATCH(version) (ZyanU16)(((version) & 0x00000000FFFF0000) >> 16)
114+
#define ZYDIS_VERSION_PATCH(version) (((version) & 0x00000000FFFF0000) >> 16)
115115

116116
/**
117117
* Extracts the build-part of the zydis version.
118118
*
119119
* @param version The zydis version value
120120
*/
121-
#define ZYDIS_VERSION_BUILD(version) (ZyanU16)((version) & 0x000000000000FFFF)
121+
#define ZYDIS_VERSION_BUILD(version) ((version) & 0x000000000000FFFF)
122122

123123
/* ---------------------------------------------------------------------------------------------- */
124124

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'Zydis',
33
'c',
4-
version: '4.0.0',
4+
version: '5.0.0',
55
license: 'MIT',
66
license_files: 'LICENSE',
77
meson_version: '>=1.3',

resources/VersionInfo.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include "winres.h"
2828

2929
VS_VERSION_INFO VERSIONINFO
30-
FILEVERSION 4,0,0,0
31-
PRODUCTVERSION 4,0,0,0
30+
FILEVERSION 5,0,0,0
31+
PRODUCTVERSION 5,0,0,0
3232
FILEFLAGSMASK 0x3fL
3333
#ifdef _DEBUG
3434
FILEFLAGS 0x1L
@@ -45,12 +45,12 @@ BEGIN
4545
BEGIN
4646
VALUE "CompanyName", "zyantific"
4747
VALUE "FileDescription", "Zyan Disassembler Library"
48-
VALUE "FileVersion", "4.0.0.0"
48+
VALUE "FileVersion", "5.0.0.0"
4949
VALUE "InternalName", "Zydis"
5050
VALUE "LegalCopyright", "Copyright \xA9 2014-2024 by zyantific.com"
5151
VALUE "OriginalFilename", "Zydis.dll"
5252
VALUE "ProductName", "Zyan Disassembler Library"
53-
VALUE "ProductVersion", "4.0.0.0"
53+
VALUE "ProductVersion", "5.0.0.0"
5454
END
5555
END
5656
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)