Split off mapreg code from script.c

* new mapserver files, mapreg.h, mapreg_txt.c, mapreg_sql.c
 * removed MAPREGSQL from project files / makefiles
 * mapreg storage engine is now fully dependent on the server type
 * added config settings mapreg_txt and mapreg_db to inter config
 * added get_str() function to complement add_str()
 * fixed txt mapreg code allowing too long variable names

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13081 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage
2008-08-15 11:14:45 +00:00
parent efef65a62f
commit dcc2cdb5da
23 changed files with 624 additions and 401 deletions

View File

@@ -50,27 +50,6 @@ AC_ARG_ENABLE(
)
#
# mapregsql
#
AC_ARG_ENABLE(
[mapregsql],
AC_HELP_STRING(
[--enable-mapregsql],
[Makes map-wide script variables be saved to SQL instead of TXT files in the sql map-server. (disabled by default)]
),
[
enable_mapregsql="$enableval"
case $enableval in
no);;
yes);;
*) AC_MSG_ERROR([[invalid argument --enable-mapregsql=$enableval... stopping]]);;
esac
],
[enable_mapregsql="no"]
)
#
# debug
#
@@ -338,14 +317,6 @@ if test -n "$enable_packetver" ; then
fi
#
# Mapregsql
#
if test "$enable_mapregsql" = "yes" ; then
CFLAGS="$CFLAGS -DMAPREGSQL"
fi
#
# Debug
#