Make CTF metadata parser reentrant
[babeltrace.git] / formats / ctf / metadata / ctf-parser-test.c
CommitLineData
34d3acc4
MD
1#include <stdlib.h>
2#include <stdio.h>
3#include <glib.h>
4#include "ctf-scanner.h"
5#include "ctf-parser.h"
6#include "ctf-ast.h"
7
8extern int yydebug;
9
10int main(int argc, char **argv)
11{
12 struct ctf_scanner *scanner;
13
14 yydebug = 1;
15 scanner = ctf_scanner_alloc(stdin);
16 if (!scanner) {
17 fprintf(stderr, "Error allocating scanner\n");
18 return -1;
19 }
20 ctf_scanner_append_ast(scanner);
21 ctf_scanner_free(scanner);
22 return 0;
23}
24
25
This page took 0.023335 seconds and 4 git commands to generate.