fix: remove duplicate makefile rules and duplicate main functions in test_gui.c
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
32
test_gui.c
32
test_gui.c
@@ -19,35 +19,3 @@ int main(void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "engine.h"
|
||||
#include "gui.h"
|
||||
|
||||
int main(void) {
|
||||
Engine engine;
|
||||
if (engine_init(&engine, "test-gui") != 0) {
|
||||
fprintf(stderr, "Failed to initialize engine\n");
|
||||
return 1;
|
||||
}
|
||||
engine.control_channel = 0;
|
||||
int ret = gui_main(&engine);
|
||||
engine_cleanup(&engine);
|
||||
return ret;
|
||||
}
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "engine.h"
|
||||
#include "gui.h"
|
||||
|
||||
int main(void) {
|
||||
Engine engine;
|
||||
if (engine_init(&engine, "test-gui") != 0) {
|
||||
fprintf(stderr, "Failed to initialize engine\n");
|
||||
return 1;
|
||||
}
|
||||
engine.control_channel = 0;
|
||||
int ret = gui_main(&engine);
|
||||
engine_cleanup(&engine);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user