Fix incorrect uses of ctype.h (passing it uncast chars, or other
[sgt-puzzles/ydirson.git] / nullfe.c
blobf80a50c4ba209440c1023d186f4be1115fee4d64
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 */
7 #include <stdarg.h>
9 #include "puzzles.h"
11 void frontend_default_colour(frontend *fe, float *output) {}
12 void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
13 int align, int colour, char *text) {}
14 void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {}
15 void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {}
16 void draw_polygon(drawing *dr, int *coords, int npoints,
17 int fillcolour, int outlinecolour) {}
18 void draw_circle(drawing *dr, int cx, int cy, int radius,
19 int fillcolour, int outlinecolour) {}
20 char *text_fallback(drawing *dr, const char *const *strings, int nstrings)
21 { return dupstr(strings[0]); }
22 void clip(drawing *dr, int x, int y, int w, int h) {}
23 void unclip(drawing *dr) {}
24 void start_draw(drawing *dr) {}
25 void draw_update(drawing *dr, int x, int y, int w, int h) {}
26 void end_draw(drawing *dr) {}
27 blitter *blitter_new(drawing *dr, int w, int h) {return NULL;}
28 void blitter_free(drawing *dr, blitter *bl) {}
29 void blitter_save(drawing *dr, blitter *bl, int x, int y) {}
30 void blitter_load(drawing *dr, blitter *bl, int x, int y) {}
31 int print_mono_colour(drawing *dr, int grey) { return 0; }
32 int print_grey_colour(drawing *dr, float grey) { return 0; }
33 int print_hatched_colour(drawing *dr, int hatch) { return 0; }
34 int print_rgb_mono_colour(drawing *dr, float r, float g, float b, int grey)
35 { return 0; }
36 int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey)
37 { return 0; }
38 int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch)
39 { return 0; }
40 void print_line_width(drawing *dr, int width) {}
41 void print_line_dotted(drawing *dr, int dotted) {}
42 void midend_supersede_game_desc(midend *me, char *desc, char *privdesc) {}
43 void status_bar(drawing *dr, char *text) {}
45 void fatal(char *fmt, ...)
47 va_list ap;
49 fprintf(stderr, "fatal error: ");
51 va_start(ap, fmt);
52 vfprintf(stderr, fmt, ap);
53 va_end(ap);
55 fprintf(stderr, "\n");
56 exit(1);
59 #ifdef DEBUGGING
60 void debug_printf(char *fmt, ...)
62 va_list ap;
63 va_start(ap, fmt);
64 vfprintf(stdout, fmt, ap);
65 va_end(ap);
67 #endif