projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Remove leading underscores from identifiers directly in lexer"
[babeltrace.git]
/
include
/
babeltrace
/
ctf-text
/
types.h
diff --git
a/include/babeltrace/ctf-text/types.h
b/include/babeltrace/ctf-text/types.h
index 0670b3d6dffdf182a09c4963f309a9e72213833b..101873a9d5af801bff4508bef1183728ff75e329 100644
(file)
--- a/
include/babeltrace/ctf-text/types.h
+++ b/
include/babeltrace/ctf-text/types.h
@@
-24,7
+24,7
@@
#include <stdint.h>
#include <unistd.h>
#include <glib.h>
#include <stdint.h>
#include <unistd.h>
#include <glib.h>
-#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace
-internal
.h>
#include <babeltrace/types.h>
#include <babeltrace/format.h>
#include <babeltrace/types.h>
#include <babeltrace/format.h>
@@
-39,6
+39,8
@@
struct ctf_text_stream_pos {
int dummy; /* disable output */
int print_names; /* print field names */
int field_nr;
int dummy; /* disable output */
int print_names; /* print field names */
int field_nr;
+ uint64_t last_timestamp; /* to print delta */
+ GString *string; /* Current string */
};
static inline
};
static inline
@@
-68,4
+70,18
@@
void print_pos_tabs(struct ctf_text_stream_pos *pos)
fprintf(pos->fp, "\t");
}
fprintf(pos->fp, "\t");
}
+/*
+ * Check if the field must be printed.
+ */
+int print_field(struct definition *definition);
+
+static inline
+const char *rem_(const char *str)
+{
+ if (str[0] == '_')
+ return &str[1];
+ else
+ return str;
+}
+
#endif /* _BABELTRACE_CTF_TEXT_TYPES_H */
#endif /* _BABELTRACE_CTF_TEXT_TYPES_H */
This page took
0.023935 seconds
and
4
git commands to generate.