fixed after breaking everything with errno.h and vector.h changes, config still borked
This commit is contained in:
parent
2df9f318a5
commit
cdd6c3976b
18 changed files with 86 additions and 84 deletions
|
|
@ -24,7 +24,7 @@ void ARC_Stack_Create(ARC_Stack **stack){
|
|||
void ARC_Stack_Destroy(ARC_Stack *stack){
|
||||
if(stack->currentSize != 0 || stack->node != NULL){
|
||||
arc_errno = ARC_ERRNO_DATA;
|
||||
ARC_DEBUG_ERR("ARC_Stack_Destroy(stack) called, but stack was not empty");
|
||||
ARC_DEBUG_LOG_ERROR("ARC_Stack_Destroy(stack) called, but stack was not empty");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ void ARC_Stack_Destroy(ARC_Stack *stack){
|
|||
void ARC_Stack_Push(ARC_Stack *stack, void *data){
|
||||
if(stack->currentSize == ~(uint32_t)0){
|
||||
arc_errno = ARC_ERRNO_OVERFLOW;
|
||||
ARC_DEBUG_ERR("ARC_Stack_Push(stack) called, size of stack is maxed, cannot add another node");
|
||||
ARC_DEBUG_LOG_ERROR("ARC_Stack_Push(stack) called, size of stack is maxed, cannot add another node");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -51,14 +51,14 @@ void ARC_Stack_Push(ARC_Stack *stack, void *data){
|
|||
void *ARC_Stack_Pop(ARC_Stack *stack){
|
||||
if(stack->currentSize == 0){
|
||||
arc_errno = ARC_ERRNO_DATA;
|
||||
ARC_DEBUG_ERR("ARC_Stack_Pop(stack) called, but stack was not empty");
|
||||
ARC_DEBUG_LOG_ERROR("ARC_Stack_Pop(stack) called, but stack was not empty");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ARC_StackNode *node = stack->node;
|
||||
if(node == NULL){
|
||||
arc_errno = ARC_ERRNO_NULL;
|
||||
ARC_DEBUG_ERR("ARC_Stack_Pop(stack) called, but node was NULL");
|
||||
ARC_DEBUG_LOG_ERROR("ARC_Stack_Pop(stack) called, but node was NULL");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue