X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=7d9b5bfb70b8a7da34ad88ff7c3b0566e9f1be44;hp=1b05523e5430585afd3ed9984294825fbd3d413b;hb=de913cfdf87242ec3ff54c72a318ebb8714e5465;hpb=d335f0f72a86c7cdcc18e524c74b82a51ad01b16 diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 1b05523e..7d9b5bfb 100644 --- a/include/babeltrace/ctf-text/types.h +++ b/include/babeltrace/ctf-text/types.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -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 */