add UC_VERSION_{MAJOR, MINOR, EXTRA}
This commit is contained in:
@ -9,6 +9,11 @@ module Common =
|
|||||||
let UC_API_MAJOR = 1
|
let UC_API_MAJOR = 1
|
||||||
|
|
||||||
let UC_API_MINOR = 0
|
let UC_API_MINOR = 0
|
||||||
|
let UC_VERSION_MAJOR = 1
|
||||||
|
|
||||||
|
let UC_VERSION_MINOR = 0
|
||||||
|
|
||||||
|
let UC_VERSION_EXTRA = 0
|
||||||
let UC_SECOND_SCALE = 1000000
|
let UC_SECOND_SCALE = 1000000
|
||||||
let UC_MILISECOND_SCALE = 1000
|
let UC_MILISECOND_SCALE = 1000
|
||||||
let UC_ARCH_ARM = 1
|
let UC_ARCH_ARM = 1
|
||||||
|
@ -4,6 +4,11 @@ const (
|
|||||||
API_MAJOR = 1
|
API_MAJOR = 1
|
||||||
|
|
||||||
API_MINOR = 0
|
API_MINOR = 0
|
||||||
|
VERSION_MAJOR = 1
|
||||||
|
|
||||||
|
VERSION_MINOR = 0
|
||||||
|
|
||||||
|
VERSION_EXTRA = 0
|
||||||
SECOND_SCALE = 1000000
|
SECOND_SCALE = 1000000
|
||||||
MILISECOND_SCALE = 1000
|
MILISECOND_SCALE = 1000
|
||||||
ARCH_ARM = 1
|
ARCH_ARM = 1
|
||||||
|
@ -6,6 +6,11 @@ public interface UnicornConst {
|
|||||||
public static final int UC_API_MAJOR = 1;
|
public static final int UC_API_MAJOR = 1;
|
||||||
|
|
||||||
public static final int UC_API_MINOR = 0;
|
public static final int UC_API_MINOR = 0;
|
||||||
|
public static final int UC_VERSION_MAJOR = 1;
|
||||||
|
|
||||||
|
public static final int UC_VERSION_MINOR = 0;
|
||||||
|
|
||||||
|
public static final int UC_VERSION_EXTRA = 0;
|
||||||
public static final int UC_SECOND_SCALE = 1000000;
|
public static final int UC_SECOND_SCALE = 1000000;
|
||||||
public static final int UC_MILISECOND_SCALE = 1000;
|
public static final int UC_MILISECOND_SCALE = 1000;
|
||||||
public static final int UC_ARCH_ARM = 1;
|
public static final int UC_ARCH_ARM = 1;
|
||||||
|
@ -71,7 +71,7 @@ for _path in _path_list:
|
|||||||
else:
|
else:
|
||||||
raise ImportError("ERROR: fail to load the dynamic library.")
|
raise ImportError("ERROR: fail to load the dynamic library.")
|
||||||
|
|
||||||
__version__ = "%s.%s" % (uc.UC_API_MAJOR, uc.UC_API_MINOR)
|
__version__ = "%u.%u.%u" % (uc.UC_VERSION_MAJOR, uc.UC_VERSION_MINOR, uc.UC_VERSION_EXTRA)
|
||||||
|
|
||||||
# setup all the function prototype
|
# setup all the function prototype
|
||||||
def _setup_prototype(lib, fname, restype, *argtypes):
|
def _setup_prototype(lib, fname, restype, *argtypes):
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
UC_API_MAJOR = 1
|
UC_API_MAJOR = 1
|
||||||
|
|
||||||
UC_API_MINOR = 0
|
UC_API_MINOR = 0
|
||||||
|
UC_VERSION_MAJOR = 1
|
||||||
|
|
||||||
|
UC_VERSION_MINOR = 0
|
||||||
|
|
||||||
|
UC_VERSION_EXTRA = 0
|
||||||
UC_SECOND_SCALE = 1000000
|
UC_SECOND_SCALE = 1000000
|
||||||
UC_MILISECOND_SCALE = 1000
|
UC_MILISECOND_SCALE = 1000
|
||||||
UC_ARCH_ARM = 1
|
UC_ARCH_ARM = 1
|
||||||
|
@ -67,6 +67,12 @@ typedef size_t uc_hook;
|
|||||||
#define UC_API_MAJOR 1
|
#define UC_API_MAJOR 1
|
||||||
#define UC_API_MINOR 0
|
#define UC_API_MINOR 0
|
||||||
|
|
||||||
|
// Unicorn package version
|
||||||
|
#define UC_VERSION_MAJOR UC_API_MAJOR
|
||||||
|
#define UC_VERSION_MINOR UC_API_MINOR
|
||||||
|
#define UC_VERSION_EXTRA 0
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Macro to create combined version which can be compared to
|
Macro to create combined version which can be compared to
|
||||||
result of uc_version() API.
|
result of uc_version() API.
|
||||||
|
Reference in New Issue
Block a user