summaryrefslogtreecommitdiff
path: root/utils/check_expr.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-08-19 15:09:45 -0400
committerCorey Farrell <git@cfware.com>2016-08-19 20:16:36 -0400
commit8061d9f66f636ada714f719be9809ea58cd5c871 (patch)
tree09bb8e63ebce00f7023ef54008a75af1caa50b61 /utils/check_expr.c
parentc6ed91a9c89de71b44045a53cfc73e1b12744cf8 (diff)
Fix naming mismatch of allocator functions.
Allocator functions that take file/line/func parameters are prefixed with single-underscore when MALLOC_DEBUG is not defined, double-underscore when it is defined. This change updates all allocators that accept file/line/func to have the same prototype in either ABI mode. The parameter order of __ast_vasprintf and __ast_asprintf in utils.h have been changed to match that of astmm.h. End-use allocator macro's have been removed from astmm.h and moved to an unconditional part of utils.h. Change-Id: I823bb6ce2b5675b3a4735948f10a3b420e9a023a
Diffstat (limited to 'utils/check_expr.c')
-rw-r--r--utils/check_expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/check_expr.c b/utils/check_expr.c
index f29363c91..36ff13202 100644
--- a/utils/check_expr.c
+++ b/utils/check_expr.c
@@ -42,9 +42,9 @@ enum ast_lock_type {
#define MALLOC_FAILURE_MSG \
ast_log(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file);
-void * attribute_malloc _ast_calloc(size_t num, size_t len, const char *file, int lineno, const char *func);
+void * attribute_malloc __ast_calloc(size_t num, size_t len, const char *file, int lineno, const char *func);
-void * attribute_malloc _ast_calloc(size_t num, size_t len, const char *file, int lineno, const char *func)
+void * attribute_malloc __ast_calloc(size_t num, size_t len, const char *file, int lineno, const char *func)
{
void *p;