summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-15 02:24:20 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-15 02:24:20 +0000
commita7514d132281ddeb8436197f7e2c1af87168a346 (patch)
treee31f97991a7a2b3fb6b0cfd8072195f944135baa
parentb2d15eaef8b56c36881cd4aac858ada9a4eddb43 (diff)
downloadhercules-a7514d132281ddeb8436197f7e2c1af87168a346.tar.gz
hercules-a7514d132281ddeb8436197f7e2c1af87168a346.tar.bz2
hercules-a7514d132281ddeb8436197f7e2c1af87168a346.tar.xz
hercules-a7514d132281ddeb8436197f7e2c1af87168a346.zip
Finished BuildBot "console error scan" stuff.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15128 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rwxr-xr-xconfigure34
-rw-r--r--src/common/core.c2
-rw-r--r--src/common/core.h2
-rw-r--r--src/common/showmsg.c2
4 files changed, 37 insertions, 3 deletions
diff --git a/configure b/configure
index 606107040..0c088dfa1 100755
--- a/configure
+++ b/configure
@@ -1405,6 +1405,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
#
# Check whether --enable-rdtsc or --disable-rdtsc was given.
@@ -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 7a6584898..e05f5a571 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 9dff92625..ecaa2a9d0 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 812cbcf68..8492d6db7 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(