diff options
Diffstat (limited to 'apps/plugins/puzzles/src/nullfe.c')
-rw-r--r-- | apps/plugins/puzzles/src/nullfe.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/apps/plugins/puzzles/src/nullfe.c b/apps/plugins/puzzles/src/nullfe.c deleted file mode 100644 index 9a57832b6e..0000000000 --- a/apps/plugins/puzzles/src/nullfe.c +++ /dev/null | |||
@@ -1,79 +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 | |||
11 | void frontend_default_colour(frontend *fe, float *output) {} | ||
12 | void get_random_seed(void **randseed, int *randseedsize) | ||
13 | { char *c = snewn(1, char); *c = 0; *randseed = c; *randseedsize = 1; } | ||
14 | void deactivate_timer(frontend *fe) {} | ||
15 | void activate_timer(frontend *fe) {} | ||
16 | struct drawing { char dummy; }; | ||
17 | drawing *drawing_new(const drawing_api *api, midend *me, void *handle) | ||
18 | { return snew(drawing); } | ||
19 | void drawing_free(drawing *dr) { sfree(dr); } | ||
20 | void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize, | ||
21 | int align, int colour, const char *text) {} | ||
22 | void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {} | ||
23 | void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {} | ||
24 | void draw_thick_line(drawing *dr, float thickness, | ||
25 | float x1, float y1, float x2, float y2, int colour) {} | ||
26 | void draw_polygon(drawing *dr, const int *coords, int npoints, | ||
27 | int fillcolour, int outlinecolour) {} | ||
28 | void draw_circle(drawing *dr, int cx, int cy, int radius, | ||
29 | int fillcolour, int outlinecolour) {} | ||
30 | char *text_fallback(drawing *dr, const char *const *strings, int nstrings) | ||
31 | { return dupstr(strings[0]); } | ||
32 | void clip(drawing *dr, int x, int y, int w, int h) {} | ||
33 | void unclip(drawing *dr) {} | ||
34 | void start_draw(drawing *dr) {} | ||
35 | void draw_update(drawing *dr, int x, int y, int w, int h) {} | ||
36 | void end_draw(drawing *dr) {} | ||
37 | struct blitter { char dummy; }; | ||
38 | blitter *blitter_new(drawing *dr, int w, int h) { return snew(blitter); } | ||
39 | void blitter_free(drawing *dr, blitter *bl) { sfree(bl); } | ||
40 | void blitter_save(drawing *dr, blitter *bl, int x, int y) {} | ||
41 | void blitter_load(drawing *dr, blitter *bl, int x, int y) {} | ||
42 | int print_mono_colour(drawing *dr, int grey) { return 0; } | ||
43 | int print_grey_colour(drawing *dr, float grey) { return 0; } | ||
44 | int print_hatched_colour(drawing *dr, int hatch) { return 0; } | ||
45 | int print_rgb_mono_colour(drawing *dr, float r, float g, float b, int grey) | ||
46 | { return 0; } | ||
47 | int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey) | ||
48 | { return 0; } | ||
49 | int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch) | ||
50 | { return 0; } | ||
51 | void print_line_width(drawing *dr, int width) {} | ||
52 | void print_line_dotted(drawing *dr, bool dotted) {} | ||
53 | void status_bar(drawing *dr, const char *text) {} | ||
54 | void document_add_puzzle(document *doc, const game *game, game_params *par, | ||
55 | game_ui *ui, game_state *st, game_state *st2) {} | ||
56 | |||
57 | void fatal(const char *fmt, ...) | ||
58 | { | ||
59 | va_list ap; | ||
60 | |||
61 | fprintf(stderr, "fatal error: "); | ||
62 | |||
63 | va_start(ap, fmt); | ||
64 | vfprintf(stderr, fmt, ap); | ||
65 | va_end(ap); | ||
66 | |||
67 | fprintf(stderr, "\n"); | ||
68 | exit(1); | ||
69 | } | ||
70 | |||
71 | #ifdef DEBUGGING | ||
72 | void debug_printf(const char *fmt, ...) | ||
73 | { | ||
74 | va_list ap; | ||
75 | va_start(ap, fmt); | ||
76 | vfprintf(stdout, fmt, ap); | ||
77 | va_end(ap); | ||
78 | } | ||
79 | #endif | ||