Revert "Remove leading underscores from identifiers directly in lexer"
[babeltrace.git] / include / babeltrace / ctf-text / types.h
index 400e62c689d0ee3319cb706a73f64f54e15436a1..101873a9d5af801bff4508bef1183728ff75e329 100644 (file)
@@ -39,6 +39,7 @@ struct ctf_text_stream_pos {
        int dummy;              /* disable output */
        int print_names;        /* print field names */
        int field_nr;
+       uint64_t last_timestamp;        /* to print delta */
        GString *string;        /* Current string */
 };
 
@@ -74,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.023351 seconds and 4 git commands to generate.