mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 06:43:10 +02:00
34 lines
471 B
C
34 lines
471 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <locale.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "face.h"
|
|
#include "level.h"
|
|
|
|
|
|
static void usage(const char *name)
|
|
{
|
|
fprintf(stderr, "usage: %s top XXXbottomXXX\n", name);
|
|
exit(1);
|
|
}
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
struct face *top;
|
|
|
|
gtk_init(&argc, &argv);
|
|
switch (argc) {
|
|
case 2:
|
|
break;
|
|
default:
|
|
usage(*argv);
|
|
}
|
|
setlocale(LC_ALL, "C"); /* damage control */
|
|
top = read_face(argv[1]);
|
|
level(top);
|
|
|
|
return 0;
|
|
}
|