summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-11-03 23:39:53 +0100
committerSergei Golubchik <sergii@pisem.net>2011-11-03 23:39:53 +0100
commit6edd76785c2fff55f1869ef816da13a8bab6151d (patch)
treec987eb9a81d19b6544fc6688632bedd80f7622d1 /dbug
parent0e007344eae972b9be7d88ca43373cb33662ac1c (diff)
parent11400de10cdfa9047904539fb9e7fbff611d9391 (diff)
downloadmariadb-git-6edd76785c2fff55f1869ef816da13a8bab6151d.tar.gz
merge
Diffstat (limited to 'dbug')
-rw-r--r--dbug/dbug.c12
-rw-r--r--dbug/my_main.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index 8d2d5082b6a..3dce91cd2ca 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -86,6 +86,8 @@
#include <m_string.h>
#include <errno.h>
+#ifndef DBUG_OFF
+
#ifdef HAVE_FNMATCH_H
#include <fnmatch.h>
#else
@@ -424,7 +426,7 @@ void _db_process_(const char *name)
* 0 - a list of functions was not changed
*/
-int DbugParse(CODE_STATE *cs, const char *control)
+static int DbugParse(CODE_STATE *cs, const char *control)
{
const char *end;
int rel, f_used=0;
@@ -661,8 +663,8 @@ int DbugParse(CODE_STATE *cs, const char *control)
(ListFlags(cs->stack->functions) & INCLUDE) ? \
0 : (uint)TRACE_ON)
-void FixTraceFlags_helper(CODE_STATE *cs, const char *func,
- struct _db_stack_frame_ *framep)
+static void FixTraceFlags_helper(CODE_STATE *cs, const char *func,
+ struct _db_stack_frame_ *framep)
{
if (framep->prev)
FixTraceFlags_helper(cs, framep->func, framep->prev);
@@ -687,7 +689,7 @@ void FixTraceFlags_helper(CODE_STATE *cs, const char *func,
#define fflags(cs) cs->stack->out_file ? ListFlags(cs->stack->functions) : TRACE_ON;
-void FixTraceFlags(uint old_fflags, CODE_STATE *cs)
+static void FixTraceFlags(uint old_fflags, CODE_STATE *cs)
{
const char *func;
uint new_fflags, traceon, level;
@@ -2489,3 +2491,5 @@ static void sf_terminate()
return;
}
+
+#endif /* DBUG_OFF */
diff --git a/dbug/my_main.c b/dbug/my_main.c
index 490e1808dd2..d8bffe662e2 100644
--- a/dbug/my_main.c
+++ b/dbug/my_main.c
@@ -3,10 +3,6 @@
fixed so that it could compile and run in MySQL source tree
*/
-#ifdef DBUG_OFF /* We are testing dbug */
-#undef DBUG_OFF
-#endif
-
#include <my_global.h> /* This includes dbug.h */
#include <my_pthread.h>