Move stack.h and stack.c to lib
This commit is contained in:
parent
bc516445ef
commit
2453404604
@ -28,7 +28,7 @@ void push(stack_t* stack, void* elt)
|
|||||||
{
|
{
|
||||||
if (stack->cur_size == stack->max_size) {
|
if (stack->cur_size == stack->max_size) {
|
||||||
stack->max_size *= 2;
|
stack->max_size *= 2;
|
||||||
xrealloc(stack->arr, stack->max_size);;
|
xrealloc(stack->arr, stack->max_size);
|
||||||
}
|
}
|
||||||
stack->arr[stack->cur_size++] = elt;
|
stack->arr[stack->cur_size++] = elt;
|
||||||
}
|
}
|
@ -11,6 +11,7 @@ SET(LIB_SOURCES
|
|||||||
${PROJECT_SOURCE_DIR}/lib/logger.c
|
${PROJECT_SOURCE_DIR}/lib/logger.c
|
||||||
${PROJECT_SOURCE_DIR}/lib/random.c
|
${PROJECT_SOURCE_DIR}/lib/random.c
|
||||||
${PROJECT_SOURCE_DIR}/lib/rijndael-alg-fst.c
|
${PROJECT_SOURCE_DIR}/lib/rijndael-alg-fst.c
|
||||||
|
${PROJECT_SOURCE_DIR}/lib/stack.c
|
||||||
${PROJECT_SOURCE_DIR}/lib/xalloc.c
|
${PROJECT_SOURCE_DIR}/lib/xalloc.c
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -49,7 +50,6 @@ SET(SOURCES
|
|||||||
monitor.c
|
monitor.c
|
||||||
recv.c
|
recv.c
|
||||||
send.c
|
send.c
|
||||||
stack.c
|
|
||||||
state.c
|
state.c
|
||||||
validate.c
|
validate.c
|
||||||
zmap.c
|
zmap.c
|
||||||
|
Loading…
Reference in New Issue
Block a user