This commit is contained in:
Evan Burkey 2022-03-30 16:36:00 -07:00
parent 8d942e846f
commit 6463faf8b6
3 changed files with 13 additions and 2 deletions

View File

@ -15,10 +15,13 @@ set(SOURCES
) )
add_library(flint ${SOURCES}) add_library(flint ${SOURCES})
if (NOT (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") AND NOT (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"))
target_link_libraries(flint bsd)
endif()
if(${CMAKE_PROJECT_NAME} STREQUAL flint) if(${CMAKE_PROJECT_NAME} STREQUAL flint)
add_executable(tests tests/tests.c) add_executable(tests tests/tests.c)
target_include_directories(tests PRIVATE include) target_include_directories(tests PRIVATE include)
target_link_libraries(tests flint) target_link_libraries(tests flint bsd)
endif() endif()

View File

@ -29,7 +29,7 @@ void bintree_rem_left(BinTree *tree, BinTreeNode *node);
void bintree_rem_right(BinTree *tree, BinTreeNode *node); void bintree_rem_right(BinTree *tree, BinTreeNode *node);
int bintree_merge(BinTree *merge, BinTree *left, BinTree *right, void *data); //int bintree_merge(BinTree *merge, BinTree *left, BinTree *right, void *data);
void bintree_debug_print(BinTree *tree); void bintree_debug_print(BinTree *tree);

View File

@ -1,6 +1,14 @@
#ifndef LIBFLINT_H_UTILITY #ifndef LIBFLINT_H_UTILITY
#define LIBFLINT_H_UTILITY #define LIBFLINT_H_UTILITY
/**
* \struct Point
* \brief Representation of a point on a two dimensional grid
* \var int x
* x point on the 2d grid
* \var int y
* y point on the 2d grid
*/
typedef struct Point { typedef struct Point {
int x; int x;
int y; int y;