Add missing _Imaginary type
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-xml.c
index 5ca930485efe844141ec696d95ebb29222d6d1db..68a2e55436eb78cef033073399d3814cc739747d 100644 (file)
@@ -29,7 +29,7 @@
 #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)
@@ -153,7 +153,10 @@ int ctf_visitor_print_type_specifier(FILE *fd, int depth, struct ctf_node *node)
                fprintf(fd, "bool");
                break;
        case TYPESPEC_COMPLEX:
-               fprintf(fd, "complex");
+               fprintf(fd, "_Complex");
+               break;
+       case TYPESPEC_IMAGINARY:
+               fprintf(fd, "_Imaginary");
                break;
        case TYPESPEC_CONST:
                fprintf(fd, "const");
This page took 0.02357 seconds and 4 git commands to generate.