Browse Source

cleanup

master
Evan Burkey 10 months ago
parent
commit
49487bda14
  1. 5
      CMakeLists.txt
  2. 2
      include/lfbinarytree.h
  3. 8
      include/lfutility.h

5
CMakeLists.txt

@ -15,10 +15,13 @@ set(SOURCES @@ -15,10 +15,13 @@ set(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)
add_executable(tests tests/tests.c)
target_include_directories(tests PRIVATE include)
target_link_libraries(tests flint)
target_link_libraries(tests flint bsd)
endif()

2
include/lfbinarytree.h

@ -29,7 +29,7 @@ void bintree_rem_left(BinTree *tree, BinTreeNode *node); @@ -29,7 +29,7 @@ void bintree_rem_left(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);

8
include/lfutility.h

@ -1,6 +1,14 @@ @@ -1,6 +1,14 @@
#ifndef 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 {
int x;
int y;

Loading…
Cancel
Save