4 * Common Trace Format Parser Test
6 * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
22 #include "ctf-scanner.h"
23 #include "ctf-parser.h"
28 int main(int argc
, char **argv
)
30 struct ctf_scanner
*scanner
;
34 scanner
= ctf_scanner_alloc(stdin
);
36 fprintf(stderr
, "Error allocating scanner\n");
39 ctf_scanner_append_ast(scanner
);
41 if (ctf_visitor_print_xml(stdout
, 0, &scanner
->ast
->root
)) {
42 fprintf(stderr
, "error visiting AST for XML output\n");
45 ctf_scanner_free(scanner
);
This page took 0.032084 seconds and 4 git commands to generate.