2016-11-20 20:16:41 +00:00
|
|
|
/*
|
|
|
|
* nullfe.c: Null front-end code containing a bunch of boring stub
|
|
|
|
* functions. Used to ensure successful linking when building the
|
|
|
|
* various stand-alone solver binaries.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "puzzles.h"
|
|
|
|
|
|
|
|
void frontend_default_colour(frontend *fe, float *output) {}
|
|
|
|
void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
|
2017-10-23 21:19:29 +00:00
|
|
|
int align, int colour, const char *text) {}
|
2016-11-20 20:16:41 +00:00
|
|
|
void draw_rect(drawing *dr, int x, int y, int w, int h, int colour) {}
|
|
|
|
void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour) {}
|
|
|
|
void draw_thick_line(drawing *dr, float thickness,
|
|
|
|
float x1, float y1, float x2, float y2, int colour) {}
|
|
|
|
void draw_polygon(drawing *dr, int *coords, int npoints,
|
|
|
|
int fillcolour, int outlinecolour) {}
|
|
|
|
void draw_circle(drawing *dr, int cx, int cy, int radius,
|
|
|
|
int fillcolour, int outlinecolour) {}
|
|
|
|
char *text_fallback(drawing *dr, const char *const *strings, int nstrings)
|
|
|
|
{ return dupstr(strings[0]); }
|
|
|
|
void clip(drawing *dr, int x, int y, int w, int h) {}
|
|
|
|
void unclip(drawing *dr) {}
|
|
|
|
void start_draw(drawing *dr) {}
|
|
|
|
void draw_update(drawing *dr, int x, int y, int w, int h) {}
|
|
|
|
void end_draw(drawing *dr) {}
|
|
|
|
blitter *blitter_new(drawing *dr, int w, int h) {return NULL;}
|
|
|
|
void blitter_free(drawing *dr, blitter *bl) {}
|
|
|
|
void blitter_save(drawing *dr, blitter *bl, int x, int y) {}
|
|
|
|
void blitter_load(drawing *dr, blitter *bl, int x, int y) {}
|
|
|
|
int print_mono_colour(drawing *dr, int grey) { return 0; }
|
|
|
|
int print_grey_colour(drawing *dr, float grey) { return 0; }
|
|
|
|
int print_hatched_colour(drawing *dr, int hatch) { return 0; }
|
|
|
|
int print_rgb_mono_colour(drawing *dr, float r, float g, float b, int grey)
|
|
|
|
{ return 0; }
|
|
|
|
int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey)
|
|
|
|
{ return 0; }
|
|
|
|
int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch)
|
|
|
|
{ return 0; }
|
|
|
|
void print_line_width(drawing *dr, int width) {}
|
2018-12-22 03:13:13 +00:00
|
|
|
void print_line_dotted(drawing *dr, bool dotted) {}
|
2017-10-23 21:19:29 +00:00
|
|
|
void midend_supersede_game_desc(midend *me, const char *desc,
|
|
|
|
const char *privdesc) {}
|
|
|
|
void status_bar(drawing *dr, const char *text) {}
|
2017-04-29 22:21:56 +00:00
|
|
|
struct preset_menu *preset_menu_new(void) {return NULL;}
|
|
|
|
struct preset_menu *preset_menu_add_submenu(struct preset_menu *parent,
|
|
|
|
char *title) {return NULL;}
|
|
|
|
void preset_menu_add_preset(struct preset_menu *parent,
|
|
|
|
char *title, game_params *params) {}
|
2016-11-20 20:16:41 +00:00
|
|
|
|
2017-10-23 21:19:29 +00:00
|
|
|
void fatal(const char *fmt, ...)
|
2016-11-20 20:16:41 +00:00
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
fprintf(stderr, "fatal error: ");
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vfprintf(stderr, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef DEBUGGING
|
2017-10-23 21:19:29 +00:00
|
|
|
void debug_printf(const char *fmt, ...)
|
2016-11-20 20:16:41 +00:00
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vfprintf(stdout, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
#endif
|