main.h (289B)
1 #ifndef MAIN_H 2 #define MAIN_H 3 4 #include <signal.h> 5 6 #include "config.h" 7 #include "util.h" 8 9 #define REFRESH_SIGNAL SIGUSR1 10 11 // Utilise C's adjacent string concatenation to count the number of blocks. 12 #define X(...) "." 13 enum { BLOCK_COUNT = LEN(BLOCKS(X)) - 1 }; 14 #undef X 15 16 #endif // MAIN_H