More work to make the binary search tests compile.
This commit is contained in:
parent
2c881d91c3
commit
c179b2d67e
|
@ -5,7 +5,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "binary_search.h"
|
||||
#include "../utils/swap_void.h"
|
||||
#include "../../utils/swap_void.h"
|
||||
#endif /* BINARY_SEARCH_C */
|
||||
|
||||
/* Note that if the comparison function is NULL, the array pointer is NULL or the search value is NULL, then the function will quit. */
|
||||
|
|
|
@ -38,8 +38,8 @@ stack_tests.out: stack_tests.c
|
|||
tree_tests.out: tree_tests.c
|
||||
gcc -g -fsanitize=address -fsanitize=leak -fsanitize=undefined tree_tests.c -o tree_tests.out
|
||||
|
||||
binary_search.o: ../misc_algorithms/binary_search/binary_search.c ../misc_algorithms/binary_search/binary_search.h
|
||||
gcc -g -fsanitize=address -fsanitize=leak -fsanitize=undefined ../misc_algorithms/binary_search/binary_search.c -o binary_search.o
|
||||
binary_search.o: ../misc_algorithms/search/binary_search.c ../misc_algorithms/search/binary_search.h swap_void.o
|
||||
gcc -g -I ../../utils -fsanitize=address -fsanitize=leak -fsanitize=undefined ../misc_algorithms/search/binary_search.c -o binary_search.o
|
||||
|
||||
binary_search_tests.o: binary_search_tests.c
|
||||
gcc -g -I ../misc_algorithms/binary_search/ -D DEBUG -c binary_search_tests.c -o binary_search_tests.o
|
||||
|
|
Loading…
Reference in New Issue