blob: ca0f8ff9395ed582ea3b0160cdd7bebbe12b5af4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
//
// Copyright 2008 Johannes Hofmann <Johannes.Hofmann@gmx.de>
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
#include <../config.h>
void
usage() {
fprintf(stderr,
"flcurve %s\n"
VERSION);
}
int
main(int argc, char **argv) {
int c, n, i, err;
while ((c = getopt(argc, argv, "?hs:g:d:f:i:")) != EOF) {
switch (c) {
case '?':
case 'h':
usage();
exit(0);
default:
i = optind - 1;
n = Fl::arg(argc, argv, i);
if (n == 0) {
err++;
} else {
optind = i;
}
break;
}
}
Fl_Window window(800, 600);
window.end();
window.show(1, argv);
return Fl::run();
}
|