summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pseudotalloc/pseudotalloc.c5
-rw-r--r--src/pseudotalloc/talloc.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/pseudotalloc/pseudotalloc.c b/src/pseudotalloc/pseudotalloc.c
index c368296c..25425e57 100644
--- a/src/pseudotalloc/pseudotalloc.c
+++ b/src/pseudotalloc/pseudotalloc.c
@@ -46,6 +46,11 @@ void *talloc_named_const(const void *context, size_t size, const char *name)
return pseudotalloc_malloc(size);
}
+void *talloc_named(const void *context, size_t size, const char *fmt, ...)
+{
+ return pseudotalloc_malloc(size);
+}
+
void talloc_set_name_const(const void *ptr, const char *name)
{
}
diff --git a/src/pseudotalloc/talloc.h b/src/pseudotalloc/talloc.h
index fe2efbcf..d257a981 100644
--- a/src/pseudotalloc/talloc.h
+++ b/src/pseudotalloc/talloc.h
@@ -48,6 +48,7 @@ int _talloc_free(void *ptr, const char *location);
#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
void *talloc_named_const(const void *context, size_t size, const char *name);
+void *talloc_named(const void *context, size_t size, const char *fmt, ...);
void talloc_set_name_const(const void *ptr, const char *name);
char *talloc_strdup(const void *t, const char *p);
void *talloc_pool(const void *context, size_t size);