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 3db8a1069ef97625a667cf28eb5dd26bfc243ae5..101873a9d5af801bff4508bef1183728ff75e329 100644
(file)
--- a/
include/babeltrace/ctf-text/types.h
+++ b/
include/babeltrace/ctf-text/types.h
@@
-75,4
+75,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.022848 seconds
and
4
git commands to generate.