#define INCLUDE_DEFS
#include "config.h"
+/* stub some functions for test so we don't interact with the outside world too much */
+#ifdef TEST
+#define job_start(cmd, data, ndata, dest) \
+ ((void)cmd, (void)data, (void)ndata, (void)dest)
+#define job_run(char** cmd)
+ ((void)cmd, 0)
+#define x11_sel_get(x, selid, str) \
+ ((void)x, (void)selid, (void)str)
+#define x11_sel_get(x, selid, cbfn) \
+ ((void)x, (void)selid, (void)cbfn, (void)1)
+#endif
+
/* predeclare some things */
static void exec(char* cmd, char* arg);
void cut(char* arg);
exit(1);
}
-#ifndef TEST
+#if !defined(TEST)
int main(int argc, char** argv) {
long int line_num = 0;
#define BOOLARG() (EOPTARG(usage()), optarg_[0] == '0' ? 0 : 1)