Initial checkin of a portable framework for writing small GUI puzzle

games.

[originally from svn r4138]
This commit is contained in:
Simon Tatham
2004-04-25 14:27:58 +00:00
commit 96dbb537ee
12 changed files with 3475 additions and 0 deletions

23
gtk.c Normal file
View File

@ -0,0 +1,23 @@
/*
* gtk.c: GTK front end for my puzzle collection.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "puzzles.h"
void fatal(char *fmt, ...)
{
va_list ap;
fprintf(stderr, "fatal error: ");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
exit(1);
}