1
0
Fork 0

More work to make the binary search tests compile.

This commit is contained in:
wael 2021-11-11 12:29:43 +02:00
parent 2c881d91c3
commit c179b2d67e
2 changed files with 3 additions and 3 deletions

View File

@ -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. */

View File

@ -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