Remove unused errors
This commit is contained in:
parent
cc742932a2
commit
91807c2b45
|
@ -42,11 +42,8 @@ static uint8_t corelibs_baseven_bits_nth (uint8_t, uint8_t);
|
||||||
enum { // Avoid collision in error numbers
|
enum { // Avoid collision in error numbers
|
||||||
CORELIBS_BASEVEN_ERR_OK = 0,
|
CORELIBS_BASEVEN_ERR_OK = 0,
|
||||||
CORELIBS_BASEVEN_ERR_UNKOWN,
|
CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||||
CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
|
||||||
CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||||
CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
|
||||||
CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||||
CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct corelibs_baseven_interface cl_baseven = {
|
const struct corelibs_baseven_interface cl_baseven = {
|
||||||
|
@ -60,13 +57,10 @@ const struct corelibs_baseven_interface cl_baseven = {
|
||||||
.ok = CORELIBS_BASEVEN_ERR_OK,
|
.ok = CORELIBS_BASEVEN_ERR_OK,
|
||||||
.unknown = CORELIBS_BASEVEN_ERR_UNKOWN,
|
.unknown = CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||||
.mem = {
|
.mem = {
|
||||||
.alloc = CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
|
||||||
.overflow = CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
.overflow = CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||||
},
|
},
|
||||||
.var = {
|
.var = {
|
||||||
.undef = CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||||
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
|
||||||
.ncompat = CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,14 +43,11 @@ struct corelibs_baseven_interface {
|
||||||
unknown; // Unknown error
|
unknown; // Unknown error
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
const cl_baseven_err alloc, // Memory allocation failed
|
const cl_baseven_err overflow; // Not enough memory to run
|
||||||
overflow; // Not enough memory to run
|
|
||||||
} mem;
|
} mem;
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
const cl_baseven_err undef, // Undefined variable
|
const cl_baseven_err inval; // Invalid variable
|
||||||
inval, // Invalid variable
|
|
||||||
ncompat; // Incompatible variable
|
|
||||||
} var;
|
} var;
|
||||||
|
|
||||||
} err;
|
} err;
|
||||||
|
|
Reference in New Issue