projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add struct/variant/enum named type to type scope
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-visitor-xml.c
diff --git
a/formats/ctf/metadata/ctf-visitor-xml.c
b/formats/ctf/metadata/ctf-visitor-xml.c
index a4d8549f280aa22a3ee116ad54a568b9cb6d245c..1e474781ce92462ffa75c02f0ab2702cca9f5872 100644
(file)
--- a/
formats/ctf/metadata/ctf-visitor-xml.c
+++ b/
formats/ctf/metadata/ctf-visitor-xml.c
@@
-22,15
+22,17
@@
#include <stdlib.h>
#include <assert.h>
#include <glib.h>
#include <stdlib.h>
#include <assert.h>
#include <glib.h>
+#include <inttypes.h>
#include <errno.h>
#include <babeltrace/list.h>
#include "ctf-scanner.h"
#include "ctf-parser.h"
#include "ctf-ast.h"
#include <errno.h>
#include <babeltrace/list.h>
#include "ctf-scanner.h"
#include "ctf-parser.h"
#include "ctf-ast.h"
-#define
printf_dbg(fmt, args...) fprintf(stderr
, "%s: " fmt, __func__, ## args)
+#define
fprintf_dbg(fd, fmt, args...) fprintf(fd
, "%s: " fmt, __func__, ## args)
-static void print_tabs(FILE *fd, int depth)
+static
+void print_tabs(FILE *fd, int depth)
{
int i;
{
int i;
@@
-38,6
+40,7
@@
static void print_tabs(FILE *fd, int depth)
fprintf(fd, "\t");
}
fprintf(fd, "\t");
}
+static
int ctf_visitor_print_unary_expression(FILE *fd, int depth, struct ctf_node *node)
{
int ret = 0;
int ctf_visitor_print_unary_expression(FILE *fd, int depth, struct ctf_node *node)
{
int ret = 0;
@@
-73,34
+76,34
@@
int ctf_visitor_print_unary_expression(FILE *fd, int depth, struct ctf_node *nod
case UNARY_SIGNED_CONSTANT:
print_tabs(fd, depth);
fprintf(fd, "<unary_expression value=");
case UNARY_SIGNED_CONSTANT:
print_tabs(fd, depth);
fprintf(fd, "<unary_expression value=");
- fprintf(fd, "%
lld"
, node->u.unary_expression.u.signed_constant);
+ fprintf(fd, "%
" PRId64
, node->u.unary_expression.u.signed_constant);
fprintf(fd, " />\n");
break;
case UNARY_UNSIGNED_CONSTANT:
print_tabs(fd, depth);
fprintf(fd, "<unary_expression value=");
fprintf(fd, " />\n");
break;
case UNARY_UNSIGNED_CONSTANT:
print_tabs(fd, depth);
fprintf(fd, "<unary_expression value=");
- fprintf(fd, "%
llu"
, node->u.unary_expression.u.signed_constant);
+ fprintf(fd, "%
" PRIu64
, node->u.unary_expression.u.signed_constant);
fprintf(fd, " />\n");
break;
case UNARY_SBRAC:
print_tabs(fd, depth);
fprintf(fd, " />\n");
break;
case UNARY_SBRAC:
print_tabs(fd, depth);
- fprintf(fd, "<unary_expression_sbrac>");
+ fprintf(fd, "<unary_expression_sbrac>
\n
");
ret = ctf_visitor_print_unary_expression(fd, depth + 1,
node->u.unary_expression.u.sbrac_exp);
if (ret)
return ret;
print_tabs(fd, depth);
ret = ctf_visitor_print_unary_expression(fd, depth + 1,
node->u.unary_expression.u.sbrac_exp);
if (ret)
return ret;
print_tabs(fd, depth);
- fprintf(fd, "</unary_expression_sbrac>");
+ fprintf(fd, "</unary_expression_sbrac>
\n
");
break;
case UNARY_NESTED:
print_tabs(fd, depth);
break;
case UNARY_NESTED:
print_tabs(fd, depth);
- fprintf(fd, "<unary_expression_nested>");
+ fprintf(fd, "<unary_expression_nested>
\n
");
ret = ctf_visitor_print_unary_expression(fd, depth + 1,
node->u.unary_expression.u.nested_exp);
if (ret)
return ret;
print_tabs(fd, depth);
ret = ctf_visitor_print_unary_expression(fd, depth + 1,
node->u.unary_expression.u.nested_exp);
if (ret)
return ret;
print_tabs(fd, depth);
- fprintf(fd, "</unary_expression_nested>");
+ fprintf(fd, "</unary_expression_nested>
\n
");
break;
case UNARY_UNKNOWN:
break;
case UNARY_UNKNOWN:
@@
-112,6
+115,7
@@
int ctf_visitor_print_unary_expression(FILE *fd, int depth, struct ctf_node *nod
return 0;
}
return 0;
}
+static
int ctf_visitor_print_type_specifier(FILE *fd, int depth, struct ctf_node *node)
{
print_tabs(fd, depth);
int ctf_visitor_print_type_specifier(FILE *fd, int depth, struct ctf_node *node)
{
print_tabs(fd, depth);
@@
-168,6
+172,7
@@
int ctf_visitor_print_type_specifier(FILE *fd, int depth, struct ctf_node *node)
return 0;
}
return 0;
}
+static
int ctf_visitor_print_type_declarator(FILE *fd, int depth, struct ctf_node *node)
{
int ret = 0;
int ctf_visitor_print_type_declarator(FILE *fd, int depth, struct ctf_node *node)
{
int ret = 0;
This page took
0.026213 seconds
and
4
git commands to generate.