summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2021-10-18 20:27:38 +0200
committerTyge Lovset <[email protected]>2021-10-18 20:27:38 +0200
commit04c4d8045a3de70e82a3036bda3adfb21659ede7 (patch)
treeafb9fd392d6ee54ed9bde678d72a16259f54e91f /examples
parent2de66b77d17fd091562560ce5f14161a3f5076b4 (diff)
downloadSTC-modified-04c4d8045a3de70e82a3036bda3adfb21659ede7.tar.gz
STC-modified-04c4d8045a3de70e82a3036bda3adfb21659ede7.zip
names.txt had dos line-ends also in linux.
Diffstat (limited to 'examples')
-rw-r--r--examples/astar.c2
-rw-r--r--examples/mmap.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/astar.c b/examples/astar.c
index 8c37d070..651886e9 100644
--- a/examples/astar.c
+++ b/examples/astar.c
@@ -26,7 +26,7 @@ point_init(int x, int y, int width)
int
point_compare_priority(const point* a, const point* b)
{
- return a->priorty < b->priorty;
+ return c_default_compare(&a->priorty, &b->priorty);
}
int
diff --git a/examples/mmap.c b/examples/mmap.c
index 2defbd96..8ecaa6f5 100644
--- a/examples/mmap.c
+++ b/examples/mmap.c
@@ -1,7 +1,6 @@
// This implements the multimap c++ example found at:
// https://en.cppreference.com/w/cpp/container/multimap/insert
-#include <stc/cstr.h>
// Map of int => clist_str. Note the negation of c_default_compare
#define i_val_str
#include <stc/clist.h>