Mayhaps I overengineered versioning
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 14s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 13s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 16s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 13s
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 14s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 13s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 16s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 13s
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -53,12 +53,10 @@ typedef enum dcfg_ValueKind {
|
||||
dcfg_ValueType_FunctionCall,
|
||||
} dcfg_ValueType;
|
||||
|
||||
typedef struct dcfg_Version {
|
||||
int major;
|
||||
int minor;
|
||||
int patch;
|
||||
char const *str;
|
||||
} dcfg_Version;
|
||||
typedef uint64_t dcfg_Version;
|
||||
#define DCFG_GET_MAJOR(v) (((v) >> 48) & 0xFFFF)
|
||||
#define DCFG_GET_MINOR(v) (((v) >> 32) & 0xFFFF)
|
||||
#define DCFG_GET_PATCH(v) ((v) & 0xFFFFFFFF)
|
||||
|
||||
dcfg_Version dcfg_get_version(void);
|
||||
|
||||
|
Reference in New Issue
Block a user