blob: 6dcd6ea082c23d60c772049f18ff0bad2ec30a0f (
plain) (
blame)
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
|
#include "parse.h"
#include <stdlib.h>
struct option ccopt;
static void
flushstd(void)
{
ioflush(&bstdout);
ioflush(&bstderr);
}
int
main(int argc, char **argv)
{
struct parser pr;
atexit(flushstd);
if (argc < 2) {
efmt("usage: %s [options] <file>\n", *argv);
return 1;
}
targ_init("amd64-sysv");
initparser(&pr, argv[1]);
parse(&pr);
}
|