X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=test.cpp;h=a3644eac1f354e0e37c0355b792cb541c5364d5a;hp=2c985f0fad87d7ead73d61d3133adc9184e2c0ec;hb=878195bdec6877c9376f6da55ebf5a3a23a3cc69;hpb=aabefd1bfe0c5b08bea9341c1394cfa8b96d754d diff --git a/test.cpp b/test.cpp index 2c985f0..a3644ea 100644 --- a/test.cpp +++ b/test.cpp @@ -16,13 +16,13 @@ static const char *task_bins[] = { "./qcvm" }; -typedef struct { +struct popen_t { FILE *handles[3]; int pipes[3]; int stderr_fd; int stdout_fd; int pid; -} popen_t; +}; static FILE **task_popen(const char *command, const char *mode) { int inhandle [2]; @@ -188,7 +188,7 @@ static int task_pclose(FILE **handles) { * that need not be set), as well as missing tags, and error accordingly * this will result in the task failing. */ -typedef struct { +struct task_template_t { char *description; char *compileflags; char *executeflags; @@ -198,7 +198,7 @@ typedef struct { char **comparematch; char *rulesfile; char *testflags; -} task_template_t; +}; /* * This is very much like a compiler code generator :-). This generates @@ -571,7 +571,7 @@ static void task_template_destroy(task_template_t *tmpl) { * Now comes the task manager, this system allows adding tasks in and out * of a task list. This is the executor of the tasks essentially as well. */ -typedef struct { +struct task_t { task_template_t *tmpl; FILE **runhandles; FILE *stderrlog; @@ -579,7 +579,7 @@ typedef struct { char *stdoutlogfile; char *stderrlogfile; bool compiled; -} task_t; +}; static task_t *task_tasks = NULL;