Move stack.h and stack.c to lib

This commit is contained in:
David Adrian 2013-10-11 11:04:04 -04:00
parent bc516445ef
commit 2453404604
3 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ void push(stack_t* stack, void* elt)
{
if (stack->cur_size == stack->max_size) {
stack->max_size *= 2;
xrealloc(stack->arr, stack->max_size);;
xrealloc(stack->arr, stack->max_size);
}
stack->arr[stack->cur_size++] = elt;
}

View File

@ -11,6 +11,7 @@ SET(LIB_SOURCES
${PROJECT_SOURCE_DIR}/lib/logger.c
${PROJECT_SOURCE_DIR}/lib/random.c
${PROJECT_SOURCE_DIR}/lib/rijndael-alg-fst.c
${PROJECT_SOURCE_DIR}/lib/stack.c
${PROJECT_SOURCE_DIR}/lib/xalloc.c
)
@ -49,7 +50,6 @@ SET(SOURCES
monitor.c
recv.c
send.c
stack.c
state.c
validate.c
zmap.c