fix -p, so we don't need to supply a pattern
[shallot.git] / src / globals.h
blob0249a6a643eccf7ed0ffbfe3dd6684df560c81a4
1 #ifndef GLOBALS_H
2 #define GLOBALS_H
4 #include "config.h"
6 #include <regex.h>
7 #include <stdint.h>
8 #include <pthread.h>
10 // global variables (saves us the trouble of passing pointers around)
11 // TODO: stop being lazy and pass this stuff where it's needed
12 // TODO: also put settings in a struct
13 uint64_t loop, elim;
14 uint8_t found, monitor, maxexectime;
15 pthread_t lucky_thread;
16 regex_t *regex;
18 #endif