Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Alex D. | 530fa5ff22 | |
Alex D. | 91807c2b45 |
|
@ -1,7 +1,6 @@
|
|||
SRC = src/baseven.c
|
||||
BIN =
|
||||
|
||||
PREFIX = /usr/local
|
||||
CC = clang
|
||||
DEBUG = 1
|
||||
|
||||
|
|
|
@ -42,11 +42,8 @@ static uint8_t corelibs_baseven_bits_nth (uint8_t, uint8_t);
|
|||
enum { // Avoid collision in error numbers
|
||||
CORELIBS_BASEVEN_ERR_OK = 0,
|
||||
CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||
CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
||||
CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||
CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
||||
CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
||||
};
|
||||
|
||||
const struct corelibs_baseven_interface cl_baseven = {
|
||||
|
@ -60,13 +57,10 @@ const struct corelibs_baseven_interface cl_baseven = {
|
|||
.ok = CORELIBS_BASEVEN_ERR_OK,
|
||||
.unknown = CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||
.mem = {
|
||||
.alloc = CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
||||
.overflow = CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||
},
|
||||
.var = {
|
||||
.undef = CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
||||
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
.ncompat = CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
||||
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -43,14 +43,11 @@ struct corelibs_baseven_interface {
|
|||
unknown; // Unknown error
|
||||
|
||||
const struct {
|
||||
const cl_baseven_err alloc, // Memory allocation failed
|
||||
overflow; // Not enough memory to run
|
||||
const cl_baseven_err overflow; // Not enough memory to run
|
||||
} mem;
|
||||
|
||||
const struct {
|
||||
const cl_baseven_err undef, // Undefined variable
|
||||
inval, // Invalid variable
|
||||
ncompat; // Incompatible variable
|
||||
const cl_baseven_err inval; // Invalid variable
|
||||
} var;
|
||||
|
||||
} err;
|
||||
|
|
Reference in New Issue