common.h (395B)
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 typedef struct entry { 11 int a; 12 int b; 13 14 LIST_ENTRY(entry) entries; 15 } iv; 16 typedef LIST_HEAD(listhead, entry) lh; 17 18 void parse(int *coords, char **lines, size_t nlines); 19 lh *compintervals(int *coords, size_t n, int yl); 20 void clear_lh(lh *head); 21 22 #endif