From bc8e01fd6f1e456bc106422f6465613d9ab34a71 Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Wed, 29 Nov 2023 13:40:41 -0800 Subject: [PATCH] append lf to includes --- .idea/editor.xml | 91 ++++++++++++++++++++++++ README.md | 4 +- include/{binarytree.h => lfbinarytree.h} | 0 include/{bool.h => lfbool.h} | 0 include/{input.h => lfinput.h} | 0 include/{linkedlist.h => lflinkedlist.h} | 0 include/{math.h => lfmath.h} | 2 +- include/{set.h => lfset.h} | 2 +- include/{stack.h => lfstack.h} | 2 +- include/{utility.h => lfutility.h} | 0 include/{vector.h => lfvector.h} | 0 src/binarytree.c | 2 +- src/input.c | 2 +- src/linkedlist.c | 2 +- src/math.c | 2 +- src/set.c | 2 +- src/stack.c | 2 +- src/vector.c | 2 +- tests/tests.c | 12 ++-- 19 files changed, 109 insertions(+), 18 deletions(-) create mode 100644 .idea/editor.xml rename include/{binarytree.h => lfbinarytree.h} (100%) rename include/{bool.h => lfbool.h} (100%) rename include/{input.h => lfinput.h} (100%) rename include/{linkedlist.h => lflinkedlist.h} (100%) rename include/{math.h => lfmath.h} (93%) rename include/{set.h => lfset.h} (96%) rename include/{stack.h => lfstack.h} (91%) rename include/{utility.h => lfutility.h} (100%) rename include/{vector.h => lfvector.h} (100%) diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..a4fac68 --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 52ff5ca..9cba2e6 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Extensive documentation can be found [here](https://fputs.com/docs/libflint/) ## Requirements -Building on Linux requires `libbsd`. +Building on Linux requires `libbsd`. Building on macOS, OpenBSD, or FreeBSD requires no extra dependencies. ## Libraries -`libflint` uses [uthash](https://github.com/troydhanson/uthash) for its hash table implementation. `uthash` is a single header file included in the source code of `libflint`. See the top of `include/uthash.h` for license information +`libflint` includes [uthash](https://github.com/troydhanson/uthash) for a hash table implementation. `uthash` is a single header file included in the source code of `libflint`. See the top of `include/uthash.h` for license information diff --git a/include/binarytree.h b/include/lfbinarytree.h similarity index 100% rename from include/binarytree.h rename to include/lfbinarytree.h diff --git a/include/bool.h b/include/lfbool.h similarity index 100% rename from include/bool.h rename to include/lfbool.h diff --git a/include/input.h b/include/lfinput.h similarity index 100% rename from include/input.h rename to include/lfinput.h diff --git a/include/linkedlist.h b/include/lflinkedlist.h similarity index 100% rename from include/linkedlist.h rename to include/lflinkedlist.h diff --git a/include/math.h b/include/lfmath.h similarity index 93% rename from include/math.h rename to include/lfmath.h index dee977a..34542bb 100644 --- a/include/math.h +++ b/include/lfmath.h @@ -1,7 +1,7 @@ #ifndef LIBFLINT_H_MATH #define LIBFLINT_H_MATH -#include "utility.h" +#include "lfutility.h" int max_int(int a, int b); diff --git a/include/set.h b/include/lfset.h similarity index 96% rename from include/set.h rename to include/lfset.h index c059a11..b2c240f 100644 --- a/include/set.h +++ b/include/lfset.h @@ -1,7 +1,7 @@ #ifndef LIBFLINT_SET_H #define LIBFLINT_SET_H -#include "linkedlist.h" +#include "lflinkedlist.h" #define Set List diff --git a/include/stack.h b/include/lfstack.h similarity index 91% rename from include/stack.h rename to include/lfstack.h index 1b9d0dc..6f0739d 100644 --- a/include/stack.h +++ b/include/lfstack.h @@ -1,7 +1,7 @@ #ifndef LIBFLINT_STACK_H #define LIBFLINT_STACK_H -#include "linkedlist.h" +#include "lflinkedlist.h" #define Stack List diff --git a/include/utility.h b/include/lfutility.h similarity index 100% rename from include/utility.h rename to include/lfutility.h diff --git a/include/vector.h b/include/lfvector.h similarity index 100% rename from include/vector.h rename to include/lfvector.h diff --git a/src/binarytree.c b/src/binarytree.c index 7dbbefe..06e4f16 100644 --- a/src/binarytree.c +++ b/src/binarytree.c @@ -2,7 +2,7 @@ #include #include -#include "binarytree.h" +#include "lfbinarytree.h" void bintree_init(BinTree *tree, void (*destroy)(void *data)) { tree->size = 0; diff --git a/src/input.c b/src/input.c index e0c290a..0c07f52 100644 --- a/src/input.c +++ b/src/input.c @@ -9,7 +9,7 @@ #endif -#include "input.h" +#include "lfinput.h" static FILE* open_file(const char *path, size_t *fsz) { FILE *fp = NULL; diff --git a/src/linkedlist.c b/src/linkedlist.c index 25879c1..1eb166a 100644 --- a/src/linkedlist.c +++ b/src/linkedlist.c @@ -1,7 +1,7 @@ #include #include -#include "linkedlist.h" +#include "lflinkedlist.h" void ll_init(List *list, void (*destroy)(void *data)) { list->size = 0; diff --git a/src/math.c b/src/math.c index 6f738bc..53efd33 100644 --- a/src/math.c +++ b/src/math.c @@ -1,7 +1,7 @@ #include #include -#include "math.h" +#include "lfmath.h" int max_int(int a, int b) { if (a > b) { diff --git a/src/set.c b/src/set.c index 0b35cfa..0857c95 100644 --- a/src/set.c +++ b/src/set.c @@ -1,4 +1,4 @@ -#include "set.h" +#include "lfset.h" void set_init(Set *set, int (*match)(const void *a, const void *b), void (*destroy)(void *data)) { diff --git a/src/stack.c b/src/stack.c index 6e9b8ea..f8d1c49 100644 --- a/src/stack.c +++ b/src/stack.c @@ -1,4 +1,4 @@ -#include "stack.h" +#include "lfstack.h" void stack_init(Stack *stack, void (*destroy)(void *data)) { ll_init(stack, destroy); diff --git a/src/vector.c b/src/vector.c index 517bb25..9477b6a 100644 --- a/src/vector.c +++ b/src/vector.c @@ -5,7 +5,7 @@ #include #endif -#include "vector.h" +#include "lfvector.h" #define VEC_INIT_CAP 2 diff --git a/tests/tests.c b/tests/tests.c index 8730453..280391f 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -2,12 +2,12 @@ #include #include -#include "linkedlist.h" -#include "set.h" -#include "stack.h" -#include "binarytree.h" -#include "vector.h" -#include "math.h" +#include "lflinkedlist.h" +#include "lfset.h" +#include "lfstack.h" +#include "lfbinarytree.h" +#include "lfvector.h" +#include "lfmath.h" void print_ll(List *list) { LL_ITER(list) {