* SOFTWARE.
*/
+#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
-#include <babeltrace/bitfield.h>
+#include <babeltrace/bitfield-internal.h>
#include <babeltrace/ctf-ir/field-types.h>
#include <babeltrace/ref.h>
-#include <babeltrace/align.h>
+#include <babeltrace/align-internal.h>
#include <glib.h>
#include "btr.h"
-#define PRINT_ERR_STREAM btr->err_stream
+#define PRINT_ERR_STREAM (btr ? btr->err_stream : stderr)
#define PRINT_PREFIX "ctf-btr"
-#include "print.h"
+#include "../print.h"
#define DIV8(_x) ((_x) >> 3)
#define BYTES_TO_BITS(_x) ((_x) * 8)
status = read_basic_string_type_and_call(btr, true);
break;
default:
- assert(false);
+ abort();
}
return status;
status = read_basic_string_type_and_call(btr, false);
break;
default:
- assert(false);
+ abort();
}
return status;