common.h (426B)
1 #ifndef COMMON_H_ 2 #define COMMON_H_ 3 4 #include <assert.h> 5 #include <reading.h> 6 #include <stdint.h> 7 #include <stdio.h> 8 #include <sys/queue.h> 9 10 struct entry { 11 size_t x; 12 size_t y; 13 14 SIMPLEQ_ENTRY(entry) entries; 15 }; 16 17 uint8_t **parse(size_t *h, size_t *w, size_t *pos, char **lines, size_t nlines); 18 void calculate_steps(uint64_t *stepsto, size_t ex, size_t ey, size_t h, 19 size_t w, uint8_t **grid); 20 21 #endif