summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/nullfe.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/nullfe.c')
-rw-r--r--apps/plugins/puzzles/src/nullfe.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/apps/plugins/puzzles/src/nullfe.c b/apps/plugins/puzzles/src/nullfe.c
deleted file mode 100644
index 7cba4e0c23..0000000000
--- a/apps/plugins/puzzles/src/nullfe.c
+++ /dev/null
@@ -1,75 +0,0 @@
1/*
2 * nullfe.c: Null front-end code containing a bunch of boring stub
3 * functions. Used to ensure successful linking when building the
4 * various stand-alone solver binaries.
5 */
6
7#include <stdarg.h>
8
9#include "puzzles.h"
10
11void frontend_default_colour(frontend *fe, float *output) {}
12void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
13 int align, int colour, const char *text) {}
14void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {}
15void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {}
16void draw_thick_line(drawing *dr, float thickness,
17 float x1, float y1, float x2, float y2, int colour) {}
18void draw_polygon(drawing *dr, int *coords, int npoints,
19 int fillcolour, int outlinecolour) {}
20void draw_circle(drawing *dr, int cx, int cy, int radius,
21 int fillcolour, int outlinecolour) {}
22char *text_fallback(drawing *dr, const char *const *strings, int nstrings)
23{ return dupstr(strings[0]); }
24void clip(drawing *dr, int x, int y, int w, int h) {}
25void unclip(drawing *dr) {}
26void start_draw(drawing *dr) {}
27void draw_update(drawing *dr, int x, int y, int w, int h) {}
28void end_draw(drawing *dr) {}
29blitter *blitter_new(drawing *dr, int w, int h) {return NULL;}
30void blitter_free(drawing *dr, blitter *bl) {}
31void blitter_save(drawing *dr, blitter *bl, int x, int y) {}
32void blitter_load(drawing *dr, blitter *bl, int x, int y) {}
33int print_mono_colour(drawing *dr, int grey) { return 0; }
34int print_grey_colour(drawing *dr, float grey) { return 0; }
35int print_hatched_colour(drawing *dr, int hatch) { return 0; }
36int print_rgb_mono_colour(drawing *dr, float r, float g, float b, int grey)
37{ return 0; }
38int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey)
39{ return 0; }
40int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch)
41{ return 0; }
42void print_line_width(drawing *dr, int width) {}
43void print_line_dotted(drawing *dr, bool dotted) {}
44void midend_supersede_game_desc(midend *me, const char *desc,
45 const char *privdesc) {}
46void status_bar(drawing *dr, const char *text) {}
47struct preset_menu *preset_menu_new(void) {return NULL;}
48struct preset_menu *preset_menu_add_submenu(struct preset_menu *parent,
49 char *title) {return NULL;}
50void preset_menu_add_preset(struct preset_menu *parent,
51 char *title, game_params *params) {}
52
53void fatal(const char *fmt, ...)
54{
55 va_list ap;
56
57 fprintf(stderr, "fatal error: ");
58
59 va_start(ap, fmt);
60 vfprintf(stderr, fmt, ap);
61 va_end(ap);
62
63 fprintf(stderr, "\n");
64 exit(1);
65}
66
67#ifdef DEBUGGING
68void debug_printf(const char *fmt, ...)
69{
70 va_list ap;
71 va_start(ap, fmt);
72 vfprintf(stdout, fmt, ap);
73 va_end(ap);
74}
75#endif