From b400444adbe80ba1318db51e2485cc574cbb7a77 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 15 Dec 2011 02:24:20 +0000 Subject: [PATCH] Finished BuildBot "console error scan" stuff. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15128 54d463be-8e91-2dee-dedb-b68131a5f0ec --- configure | 34 ++++++++++++++++++++++++++++++++++ src/common/core.c | 2 +- src/common/core.h | 2 +- src/common/showmsg.c | 2 +- 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6061070400..0c088dfa10 100755 --- a/configure +++ b/configure @@ -1404,6 +1404,28 @@ else fi; +# +# debug +# +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_buildbot+set}" = set; then + enableval="$enable_buildbot" + + enable_buildbot="$enableval" + case $enableval in + "no");; + "yes");; + *) { { echo "$as_me:$LINENO: error: invalid argument --enable-buildbot=$enableval... stopping" >&5 +echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;} + { (exit 1); exit 1; }; };; + esac + +else + enable_debug="no" + +fi; + + # # RDTSC as Tick Source # @@ -4469,6 +4491,18 @@ case $enable_debug in ;; esac +# +# Buildbot +# +case $enable_buildbot in + "no") + #default value + ;; + "yes") + CFLAGS="$CFLAGS -g -DBUILDBOT" + ;; +esac + # # RDTSC diff --git a/src/common/core.c b/src/common/core.c index 7a65848983..e05f5a5719 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -29,7 +29,7 @@ void (*shutdown_callback)(void) = NULL; #if defined(BUILDBOT) - bool buildbotflag; + int buildbotflag = 0; #endif int runflag = CORE_ST_RUN; diff --git a/src/common/core.h b/src/common/core.h index 9dff92625c..ecaa2a9d0a 100644 --- a/src/common/core.h +++ b/src/common/core.h @@ -8,7 +8,7 @@ extern int arg_c; extern char **arg_v; #if defined(BUILDBOT) - extern bool buildbotflag; + extern int buildbotflag; #endif /// @see E_CORE_ST diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 812cbcf68e..8492d6db74 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -694,7 +694,7 @@ int _vShowMessage(enum msg_type flag, const char *string, va_list ap) if( flag == MSG_WARNING || flag == MSG_ERROR || flag == MSG_SQL ) { - buildbotflag = true; + buildbotflag = 1; } #endif if(