projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove underscore prefix from field names (pretty-print)
[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 400e62c689d0ee3319cb706a73f64f54e15436a1..7d9b5bfb70b8a7da34ad88ff7c3b0566e9f1be44 100644
(file)
--- a/
include/babeltrace/ctf-text/types.h
+++ b/
include/babeltrace/ctf-text/types.h
@@
-74,4
+74,13
@@
void print_pos_tabs(struct ctf_text_stream_pos *pos)
*/
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 */
This page took
0.024195 seconds
and
4
git commands to generate.