#include #include "config.h" #include "regexset.h" #include "channel.h" int main(int argc, char **argv) { /* Regex sets must be initialized before config. */ rs_init(); channel_init(); if(!cfg_init()) { /* Free any registered regex sets and channels when config fails. Config will fail if a regex set fails to compile all parts. */ rs_free(); channel_free(); return 1; } /* Parsing stuff goes here. */ cfg_free(); channel_free(); rs_free(); return 0; }