aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..7a186ba
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,27 @@
1#ifndef INCLUDED_COMMON_H
2#define INCLUDED_COMMON_H
3
4extern struct path {
5 u8 *items;
6 u32 count;
7 u32 capacity;
8} path;
9
10extern struct crdf {
11 struct crdf_entry {
12 f32 c;
13 u32 j;
14 } *items;
15 u32 count;
16 u32 capacity;
17} crdf;
18
19f32 build_crdf (u8 i);
20f32 measure_path (void);
21void added_j (u8 j);
22void export_path (u8 path[NODE_COUNT], int generation);
23bool finished (void);
24
25extern f32 (*pheromones_current)[NODE_COUNT];
26
27#endif // INCLUDED_COMMON_H