* Common Trace Format Object Stack.
*/
+#include <stdlib.h>
+
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/OBJSTACK"
#include "logging.hpp"
-#include "objstack.hpp"
-
-#include <stdlib.h>
-#include "common/list.h"
-#include "common/macros.h"
#include "common/align.h"
+#include "common/list.h"
+
+#include "objstack.hpp"
#define OBJSTACK_ALIGN 8 /* Object stack alignment */
#define OBJSTACK_INIT_LEN 128
char __attribute__((aligned(OBJSTACK_ALIGN))) data[];
};
-BT_HIDDEN
struct objstack *objstack_create(void)
{
struct objstack *objstack;
free(node);
}
-BT_HIDDEN
void objstack_destroy(struct objstack *objstack)
{
struct objstack_node *node, *p;
return new_node;
}
-BT_HIDDEN
void *objstack_alloc(struct objstack *objstack, size_t len)
{
struct objstack_node *last_node;