From db26685460e509344e5856d4bc9d67147ee1f870 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Mon, 1 Oct 2007 23:20:20 +0000 Subject: [PATCH] This mod will allow check_expr to compile in the presence of DEBUG_THREAD situations. At least, it does for me. And it's less expensive than several other approaches I tried. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84329 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/check_expr.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/utils/check_expr.c b/utils/check_expr.c index 3eeff07eb2..70714d40d9 100644 --- a/utils/check_expr.c +++ b/utils/check_expr.c @@ -88,6 +88,22 @@ int __ast_str_helper(struct ast_str **buf, size_t max_len, return res; } +void ast_store_lock_info(enum ast_lock_type type, const char *filename, + int line_num, const char *func, const char *lock_name, void *lock_addr) +{ + /* not a lot to do in a standalone w/o threading! */ +} + +void ast_mark_lock_acquired(void) +{ + /* not a lot to do in a standalone w/o threading! */ +} + +void ast_remove_lock_info(void *lock_addr) +{ + /* not a lot to do in a standalone w/o threading! */ +} + static int global_lineno = 1; static int global_expr_count=0; static int global_expr_max_size=0;