summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-23 08:13:46 +0200
committerTyge Løvset <[email protected]>2021-09-23 08:13:46 +0200
commit7b5ad58d20dcf3561662a294183fceab0d0ee73c (patch)
tree6a3dec1ac0f65a886c1287c1468bb1bf705d92f0 /tests
parent6b0cee466ec405a8b8051da56fc63ed3e2930846 (diff)
downloadSTC-modified-7b5ad58d20dcf3561662a294183fceab0d0ee73c.tar.gz
STC-modified-7b5ad58d20dcf3561662a294183fceab0d0ee73c.zip
Some more documentation in README.md.
Added support for i_del template arg/define for destroy function. For maps, i_keydel / i_valdel is still required and error is given if i_del is defined.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_new_list.c12
-rw-r--r--tests/test_new_pque.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_new_list.c b/tests/test_new_list.c
index f0983b76..a38936b0 100644
--- a/tests/test_new_list.c
+++ b/tests/test_new_list.c
@@ -1,5 +1,5 @@
-#include "cstr.h"
-#include "forward.h"
+#include <stc/cstr.h>
+#include <stc/forward.h>
forward_clist(i32, int);
forward_clist(pnt, struct Point);
@@ -12,7 +12,7 @@ struct MyStruct {
#define F_tag i32
#define i_val int
-#include "clist.h"
+#include <stc/clist.h>
struct Point { int x, y; } typedef Point;
int point_compare(const Point* a, const Point* b) {
@@ -22,13 +22,13 @@ int point_compare(const Point* a, const Point* b) {
#define F_tag pnt
#define i_val Point
#define i_cmp point_compare
-#include "clist.h"
+#include <stc/clist.h>
#define i_val float
-#include "clist.h"
+#include <stc/clist.h>
#define i_val_str
-#include "clist.h"
+#include <stc/clist.h>
int main()
diff --git a/tests/test_new_pque.c b/tests/test_new_pque.c
index b9750c44..1fb90123 100644
--- a/tests/test_new_pque.c
+++ b/tests/test_new_pque.c
@@ -8,10 +8,10 @@ struct MyStruct {
};
#define i_val int
-#include "cstack.h"
+#include <stc/cstack.h>
#define i_val int
-#include "cpque.h"
+#include <stc/cpque.h>
struct Point { int x, y; } typedef Point;
@@ -22,7 +22,7 @@ int Point_cmp(const Point* a, const Point* b) {
#define F_tag pnt // F: was forward declared.
#define i_val Point
#define i_cmp Point_cmp
-#include "cpque.h"
+#include <stc/cpque.h>
#include <stdio.h>