Get rid of all global variables
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#include "block.h"
|
||||
#include "config.h"
|
||||
#include "util.h"
|
||||
|
||||
#define REFRESH_SIGNAL SIGUSR1
|
||||
|
||||
// Utilise C's adjacent string concatenation to count the number of blocks.
|
||||
#define X(...) "."
|
||||
extern block blocks[LEN(BLOCKS(X)) - 1];
|
||||
enum { BLOCK_COUNT = LEN(BLOCKS(X)) - 1 };
|
||||
#undef X
|
||||
|
||||
#define REFRESH_SIGNAL SIGUSR1
|
||||
|
||||
Reference in New Issue
Block a user