summaryrefslogtreecommitdiff
path: root/bindings/swig
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/swig')
-rw-r--r--bindings/swig/Makefile.am95
-rw-r--r--bindings/swig/Makefile.oth22
-rw-r--r--bindings/swig/Makefile.swig578
-rwxr-xr-xbindings/swig/examples/mod2zmod.pl84
-rw-r--r--bindings/swig/listkey.i92
-rw-r--r--bindings/swig/localemgr.i25
-rw-r--r--bindings/swig/lzsscompress.i12
-rw-r--r--bindings/swig/package/Makefile.am96
-rw-r--r--bindings/swig/package/README.cvs10
-rwxr-xr-xbindings/swig/package/autogen.sh16
-rw-r--r--bindings/swig/package/configure.ac41
-rw-r--r--bindings/swig/package/perl.m471
-rw-r--r--bindings/swig/package/php4.m433
-rw-r--r--bindings/swig/package/python.m4117
-rw-r--r--bindings/swig/package/swig.m429
-rw-r--r--bindings/swig/package/sword.m4172
-rw-r--r--bindings/swig/package/tcl.m4114
-rw-r--r--bindings/swig/package/zlib.m4111
-rw-r--r--bindings/swig/perl/Changes6
-rw-r--r--bindings/swig/perl/README35
-rw-r--r--bindings/swig/perl/Sword.cxx10209
-rw-r--r--bindings/swig/perl/Sword.pm1426
-rw-r--r--bindings/swig/perl/test.pl17
-rw-r--r--bindings/swig/php/Sword.cpp10396
-rw-r--r--bindings/swig/php/Sword.php24
-rw-r--r--bindings/swig/php/php_Sword.h261
-rw-r--r--bindings/swig/python/README.txt1
-rw-r--r--bindings/swig/python/Sword.cxx5062
-rw-r--r--bindings/swig/python/Sword.py796
-rw-r--r--bindings/swig/rawcom.i15
-rw-r--r--bindings/swig/rawgenbook.i22
-rw-r--r--bindings/swig/rawld.i13
-rw-r--r--bindings/swig/rawld4.i13
-rw-r--r--bindings/swig/rawtext.i12
-rw-r--r--bindings/swig/swbuf.i65
-rw-r--r--bindings/swig/swcom.i11
-rw-r--r--bindings/swig/swcompress.i17
-rw-r--r--bindings/swig/swconfig.i43
-rw-r--r--bindings/swig/swfiltermgr.i22
-rw-r--r--bindings/swig/swgenbook.i11
-rw-r--r--bindings/swig/swig-perl.doxygen177
-rw-r--r--bindings/swig/swkey.i75
-rw-r--r--bindings/swig/swld.i11
-rw-r--r--bindings/swig/swmgr.i59
-rw-r--r--bindings/swig/swmodule.i100
-rw-r--r--bindings/swig/sword.i52
-rw-r--r--bindings/swig/sword.pl104
-rw-r--r--bindings/swig/swposition.i15
-rw-r--r--bindings/swig/swtext.i11
-rw-r--r--bindings/swig/treekey.i48
-rw-r--r--bindings/swig/treekeyidx.i19
-rw-r--r--bindings/swig/versekey.i128
-rw-r--r--bindings/swig/zcom.i13
-rw-r--r--bindings/swig/zipcompress.i12
-rw-r--r--bindings/swig/zld.i13
-rw-r--r--bindings/swig/ztext.i13
56 files changed, 31045 insertions, 0 deletions
diff --git a/bindings/swig/Makefile.am b/bindings/swig/Makefile.am
new file mode 100644
index 0000000..45a37ef
--- /dev/null
+++ b/bindings/swig/Makefile.am
@@ -0,0 +1,95 @@
+
+if RUNSWIG
+PERLSWIG=perlswig
+TCLSWIG=tclswig
+PYTHONSWIG=pythonswig
+PHPSWIG=phpswig
+else
+PERLSWIG=
+TCLSWIG=
+PYTHONSWIG=
+PHPSWIG=
+endif
+
+all: $(PERLBUILD) $(TCLBUILD) $(PYTHONBUILD) $(PHPBUILD)
+ echo "built"
+
+perl_make: perl_makebuild
+ cd perl && make
+
+perlswig: sword.i
+ mkdir -p perl
+ $(SWIG) -perl -c++ -shadow -o perl/Sword.cxx -I$(top_srcdir) $(SWORD_INCLUDES) $(top_srcdir)/sword.i
+
+perl_makebuild: $(PERLSWIG)
+ mkdir -p perl
+ echo "writing perl/Makefile.PL"
+ @echo "#! /usr/bin/perl" > perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "use ExtUtils::MakeMaker;" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "# See lib/ExtUtils/MakeMaker.pm for details of how to influence" >> perl/Makefile.PL
+ @echo "# the contents of the Makefile that is written." >> perl/Makefile.PL
+ @echo "WriteMakefile(" >> perl/Makefile.PL
+ @echo " 'NAME' => 'Sword'," >> perl/Makefile.PL
+ @echo " 'VERSION' => '$(VERSION)'," >> perl/Makefile.PL
+ @echo " 'INC' => '$(SWORD_INCLUDES)'," >> perl/Makefile.PL
+ @echo " 'DEFINE' => '-DSWIG'," >> perl/Makefile.PL
+ @echo " 'LIBS' => '$(LIB_SWORD) -lz'," >> perl/Makefile.PL
+ @echo " 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1" >> perl/Makefile.PL
+ @echo " ($$] >= 5.005 ? ## Add these new keywords supported since 5.005" >> perl/Makefile.PL
+ @echo " (ABSTRACT => 'Sword Project perl bindings', # retrieve abstract from module" >> perl/Makefile.PL
+ @echo " AUTHOR => 'Sword Project <sword-devel@crosswire.org>') : ())," >> perl/Makefile.PL
+ @echo ");" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "rename 'Makefile', 'Makefile.old' or die \"can't rename Makefile\";" >> perl/Makefile.PL
+ @echo "open(INPUT, '<Makefile.old') or die \"can't open input Makefile.old\";" >> perl/Makefile.PL
+ @echo "open(OUTPUT, '>Makefile') or die \"can't open output Makefile\";" >> perl/Makefile.PL
+ @echo "while (<INPUT>) {" >> perl/Makefile.PL
+ @echo " s/\-lsword/\-lsword \-lstdc\+\+/;" >> perl/Makefile.PL
+ @echo " print OUTPUT \"$$""_\";" >> perl/Makefile.PL
+ @echo "}" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "close INPUT;" >> perl/Makefile.PL
+ @echo "close OUTPUT;" >> perl/Makefile.PL
+ cd perl && $(PERL) Makefile.PL && make clean
+ @echo "\.old" > perl/MANIFEST.SKIP
+ @echo "~$$" >> perl/MANIFEST.SKIP
+ @echo "\.bak" >> perl/MANIFEST.SKIP
+ @echo "^CVS" >> perl/MANIFEST.SKIP
+ @echo "Makefile$$" >> perl/MANIFEST.SKIP
+ cd perl && $(PERL) Makefile.PL && make manifest
+
+tclswig: sword.i
+ mkdir -p tcl
+ $(SWIG) -tcl -c++ -namespace -pkgversion $(VERSION) -o tcl/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
+python_make: python_makebuild
+ cd python && $(PYTHON) setup.py build_ext $(SWORD_INCLUDES) $(LIB_SWORD)
+
+pythonswig: sword.i
+ mkdir -p python
+ $(SWIG) -python -c++ -shadow -o python/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
+python_makebuild: $(PYTHONSWIG)
+ mkdir -p python
+ echo "writing python/setup.py"
+ @echo "#! /usr/bin/python" > python/setup.py
+ @echo "" >> python/setup.py
+ @echo "from distutils.core import setup, Extension" >> python/setup.py
+ @echo "setup (name = \"sword\"," >> python/setup.py
+ @echo " version = \"$(VERSION)\"," >> python/setup.py
+ @echo " maintainer = \"Sword Developers\"," >> python/setup.py
+ @echo " maintainer_email = \"sword-devel@crosswire.org\"," >> python/setup.py
+ @echo " url = \"http://www.crosswire.org/sword\"," >> python/setup.py
+ @echo " py_modules = [\"Sword\"]," >> python/setup.py
+ @echo " ext_modules = [Extension(\"sword\", [\"Sword.cxx\"]," >> python/setup.py
+ @echo " define_macros=[('SWIG',1)])], " >> python/setup.py
+ @echo ")" >> python/setup.py
+
+
+
+phpswig: sword.i
+ mkdir -p php
+ $(SWIG) -php4 -c++ -fullmake -o php/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
diff --git a/bindings/swig/Makefile.oth b/bindings/swig/Makefile.oth
new file mode 100644
index 0000000..44f00ce
--- /dev/null
+++ b/bindings/swig/Makefile.oth
@@ -0,0 +1,22 @@
+TOP = $(PWD)
+SWIG = swig
+#SWIGOPT = -Wall -proxy
+SWIGOPT = -shadow
+CXXSRCS =
+TARGET = sword
+INTERFACE = sword.i
+LIBS = -lm -lz -lsword
+INCLUDE = -I$(TOP)/../../include/
+
+all::
+ $(MAKE) -f $(TOP)/Makefile.swig CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' SWIGOPT='$(SWIGOPT)' INTERFACE='$(INTERFACE)' LIBS='$(LIBS)' INCLUDE='$(INCLUDE)' perl5_cpp
+
+static::
+ $(MAKE) -f $(TOP)/Makefile.swig CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ TARGET='myperl' INTERFACE='$(INTERFACE)' INCLUDE='$INCLUDE' perl5_cpp_static
+
+clean::
+ rm -f *_wrap* *.o *~ *.so myperl *.pyc .~* core
+
+check: all
diff --git a/bindings/swig/Makefile.swig b/bindings/swig/Makefile.swig
new file mode 100644
index 0000000..9b8271a
--- /dev/null
+++ b/bindings/swig/Makefile.swig
@@ -0,0 +1,578 @@
+# Generated automatically from Makefile.in by configure.
+# ------------------------------------------------------------
+# SWIG Examples Makefile
+#
+# This file is used by the examples to build modules. Assuming
+# you ran configure, this file will probably work. However,
+# it's not perfect so you might need to do some hand tweaking.
+#
+# Other notes:
+#
+# 1. Take a look at the prefixes below. Since SWIG works with
+# multiple target languages, you may need to find out where
+# certain packages have been installed. Set the prefixes
+# accordingly.
+#
+# 2. To use this makefile, simply set SRCS, INTERFACE, INCLUDE, LIBS,
+# TARGET, and do a
+# $(MAKE) -f Makefile.template.in SRCS='$(SRCS)' \
+# INCLUDE='$(INCLUDE) LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' \
+# TARGET='$(TARGET)' method
+#
+# 'method' describes what is being built.
+#---------------------------------------------------------------
+
+TARGET =
+CC = gcc
+CXX = c++
+CFLAGS =
+prefix = /usr/local
+exec_prefix= ${prefix}
+SRCS =
+INCLUDE =
+LIBS =
+INTERFACE =
+SWIGOPT =
+SWIG = swig
+RUNTIMEDIR = $(exec_prefix)/lib
+
+LIBM = -lieee -lm
+LIBC =
+LIBCRYPT = -lcrypt
+SYSLIBS = $(LIBM) $(LIBC) $(LIBCRYPT)
+
+libtool_comp = $(TOP)/../Tools/libtool --mode compile
+libtool_link = $(TOP)/../Tools/libtool --mode link
+
+# X11 options
+
+XLIB = -L/usr/X11R6/lib -lX11
+XINCLUDE = -I/usr/X11R6/include
+
+IWRAP = $(INTERFACE:.i=_wrap.i)
+ISRCS = $(IWRAP:.i=.c)
+ICXXSRCS = $(IWRAP:.i=.cxx)
+IOBJS = $(IWRAP:.i=.o)
+
+##################################################################
+# Dynamic loading for C++
+# If you are going to be building dynamic loadable modules in C++,
+# you may need to edit this line appropriately.
+#
+# This line works for g++, but I'm not sure what it might be
+# for other C++ compilers
+##################################################################
+
+CPP_DLLIBS = #-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \
+ -L/usr/local/lib -lg++ -lstdc++ -lgcc
+
+# Solaris workshop 5.0
+# CPP_DLLIBS = -L/opt/SUNWspro/lib -lCrun
+
+# Symbols used for using shared libraries
+SO= .so
+LDSHARED= gcc -shared
+CCSHARED= -fpic
+CXXSHARED= gcc -shared
+
+# This is used for building shared libraries with a number of C++
+# compilers. If it doesn't work, comment it out.
+CXXSHARED= c++ -shared
+
+OBJS = $(SRCS:.c=.o) $(CXXSRCS:.cxx=.o)
+
+##################################################################
+##### Tcl/Tk ######
+##################################################################
+
+# Set these to your local copy of Tcl/Tk.
+
+TCL_INCLUDE =
+TCL_LIB =
+TCL_OPTS = -ldl
+TK_OPTS = -ltk -ltcl -ldl
+
+# Extra Tcl specific dynamic linking options
+TCL_DLNK =
+
+# -----------------------------------------------------------
+# Build a new version of the tclsh shell
+# -----------------------------------------------------------
+
+
+tclsh: $(SRCS)
+ $(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACE)
+ $(CC) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE) \
+ $(TCL_LIB) $(TCL_OPTS) $(LIBS) $(SYSLIBS) -o $(TARGET)
+
+tclsh_cpp: $(SRCS)
+ $(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACE)
+ $(CXX) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(TCL_INCLUDE) \
+ $(TCL_LIB) $(TCL_OPTS) $(LIBS) $(SYSLIBS) -o $(TARGET)
+
+# -----------------------------------------------------------
+# Build a new copy of wish
+# -----------------------------------------------------------
+
+wish: $(SRCS)
+ $(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACE)
+ $(CC) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE) \
+ $(XINCLUDE) $(TCL_LIB) $(TK_OPTS) $(XLIB) $(LIBS) $(SYSLIBS) -o $(TARGET)
+
+
+wish_cpp: $(SRCS)
+ $(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACE)
+ $(CXX) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(TCL_INCLUDE) \
+ $(XINCLUDE) $(TCL_LIB) $(TK_OPTS) $(XLIB) $(LIBS) $(SYSLIBS) -o $(TARGET)
+
+# -----------------------------------------------------------
+# Build a Tcl dynamic loadable module (you might need to tweak this)
+# -----------------------------------------------------------
+
+tcl: $(SRCS)
+ $(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+# -----------------------------------------------------------
+# Build a Tcl7.5 dynamic loadable module for C++
+# -----------------------------------------------------------
+
+tcl_cpp: $(SRCS)
+ $(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(TCL_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# -----------------------------------------------------------
+# Build a Tcl7.5 dynamic loadable module, linked against SWIG runtime lib
+# -----------------------------------------------------------
+
+TCL_RUNTIME=-L$(RUNTIMEDIR) -lswigtcl8
+
+tcl_multi: $(SRCS)
+ $(SWIG) -c -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(TCL_RUNTIME) $(TCL_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+tcl_multi_cpp: $(SRCS)
+ $(SWIG) -c -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(TCL_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(TCL_RUNTIME) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+##################################################################
+##### PERL 5 ######
+##################################################################
+
+# You need to set this variable to the Perl5 directory containing the
+# files "perl.h", "EXTERN.h" and "XSUB.h". With Perl5.003, it's
+# usually something like /usr/local/lib/perl5/arch-osname/5.003/CORE.
+
+PERL5_INCLUDE= /usr/lib/perl5/5.6.1/i386-linux/CORE
+
+# Extra Perl specific dynamic linking options
+PERL5_DLNK =
+
+# ----------------------------------------------------------------
+# Build a Perl5 dynamically loadable module (C)
+# ----------------------------------------------------------------
+
+perl5: $(SRCS)
+ $(SWIG) -perl5 $(SWIGOPT) $(INTERFACE)
+ $(CC) -c -Dbool=char $(CCSHARED) $(CFLAGS) -DSWIG $(SRCS) $(ISRCS) $(INCLUDE) -I$(PERL5_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PERL5_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a Perl5 dynamically loadable module (C++)
+# ----------------------------------------------------------------
+
+perl5_cpp: $(SRCS)
+ $(SWIG) -perl5 -c++ $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) -DSWIG -Dexplicit= $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) -I$(PERL5_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(PERL5_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a Perl5 dynamically loadable module, linked against SWIG runtime lib
+# ----------------------------------------------------------------
+
+PERL5_RUNTIME=-L$(RUNTIMEDIR) -lswigpl
+
+perl5_multi: $(SRCS)
+ $(SWIG) -c -perl5 $(SWIGOPT) $(INTERFACE)
+ $(CC) -c -DSWIG -Dbool=char $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) -I$(PERL5_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PERL5_RUNTIME) $(PERL5_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+perl5_multi_cpp: $(SRCS)
+ $(SWIG) -c -perl5 -c++ $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) -DSWIG -Dexplicit= $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) -I$(PERL5_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(PERL5_RUNTIME) $(PERL5_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a module from existing XS C source code. (ie. from xsubpp).
+# ----------------------------------------------------------------
+perl5_xs: $(SRCS)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(INCLUDE) -I$(PERL5_INCLUDE)
+ $(LDSHARED) $(OBJS) $(LIBS) -o $(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a statically linked Perl5 executable
+# ----------------------------------------------------------------
+
+PERL5_LIB = -L$(PERL5_INCLUDE) -lperl.so -ldl $(SYSLIBS)
+
+perl5_static: $(SRCS)
+ $(SWIG) -perl5 -static -lperlmain.i $(SWIGOPT) $(INTERFACE)
+ $(CC) $(CFLAGS) -Dbool=char $(SRCS) $(ISRCS) $(INCLUDE) -I$(PERL5_INCLUDE) $(PERL5_LIB) $(LIBS) -o $(TARGET)
+
+perl5_static_cpp: $(SRCS)
+ $(SWIG) -perl5 -c++ -static -lperlmain.i $(SWIGOPT) $(INTERFACE)
+ $(CXX) $(CFLAGS) -Dexplicit= $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) -I$(PERL5_INCLUDE) $(PERL5_LIB) $(LIBS) -o $(TARGET)
+
+
+##################################################################
+##### PYTHON ######
+##################################################################
+
+# Make sure these locate your Python installation
+PYTHON_INCLUDE= -DHAVE_CONFIG_H
+PYTHON_LIB =
+
+# Extra Python specific dynamic linking options
+PYTHON_DLNK =
+
+# ----------------------------------------------------------------
+# Build a C dynamically loadable module
+# ----------------------------------------------------------------
+
+python: $(SRCS)
+ $(SWIG) -python $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) $(PYTHON_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PYTHON_DLNK) $(LIBS) -o $(TARGET)module$(SO)
+
+# -----------------------------------------------------------------
+# Build a C++ dynamically loadable module
+# -----------------------------------------------------------------
+
+python_cpp: $(SRCS)
+ $(SWIG) -c++ -python $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) $(PYTHON_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(PYTHON_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)module$(SO)
+
+# -----------------------------------------------------------------
+# Build a dynamically loadable module, linked against SWIG Runtime lib
+# -----------------------------------------------------------------
+
+PYTHON_RUNTIME=-L$(RUNTIMEDIR) -lswigpy
+
+python_multi: $(SRCS)
+ $(SWIG) -c -python $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) $(PYTHON_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PYTHON_RUNTIME) $(PYTHON_DLNK) $(LIBS) -o $(TARGET)module$(SO)
+
+python_multi_cpp: $(SRCS)
+ $(SWIG) -c -c++ -python $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) $(PYTHON_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(PYTHON_RUNTIME) $(PYTHON_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)module$(SO)
+
+
+# -----------------------------------------------------------------
+# Build statically linked Python interpreter
+#
+# These should only be used in conjunction with the %include embed.i
+# library file
+# -----------------------------------------------------------------
+
+#TKINTER = -L/usr/X11R6.3/lib -L/usr/local/compat/lib -ltk4.0 -ltcl7.4 -lX11
+TKINTER =
+PYTHON_LIBOPTS = -lpython2.2 -ldl $(TKINTER) $(SYSLIBS)
+
+python_static: $(SRCS)
+ $(SWIG) -python -lembed.i $(SWIGOPT) $(INTERFACE)
+ $(CC) $(CFLAGS) -Xlinker -export-dynamic $(ISRCS) $(SRCS) $(INCLUDE) \
+ $(PYTHON_INCLUDE) $(LIBS) -L$(PYTHON_LIB) $(PYTHON_LIBOPTS) -o $(TARGET)
+
+python_static_cpp: $(SRCS)
+ $(SWIG) -c++ -python -lembed.i $(SWIGOPT) $(INTERFACE)
+ $(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) \
+ $(PYTHON_INCLUDE) $(LIBS) -L$(PYTHON_LIB) $(PYTHON_LIBOPTS) -o $(TARGET)
+
+# -----------------------------------------------------------------
+# Cleaning the python examples
+# -----------------------------------------------------------------
+
+python_clean:
+ rm -f *_wrap* *.o *~ *$(SO) mypython *.pyc .~* core
+
+##################################################################
+##### GUILE ######
+##################################################################
+
+# Make sure these locate your Guile installation
+GUILE_INCLUDE =
+GUILE_LIB =
+
+# ----------------------------------------------------------------
+# Build a C dynamically loadable module
+# ----------------------------------------------------------------
+
+guile: $(SRCS)
+ $(SWIG) -guile -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o lib$(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build a C++ dynamically loadable module
+# -----------------------------------------------------------------
+
+guile_cpp: $(SRCS)
+ $(SWIG) -c++ -guile -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build a dynamically loadable module with passive linkage
+# -----------------------------------------------------------------
+
+guile_passive: $(SRCS)
+ $(SWIG) -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o lib$(TARGET)$(SO)
+
+guile_passive_cpp: $(SRCS)
+ $(SWIG) -c++ -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build a dynamically loadable module with passive linkage,
+# linked against SWIG runtime lib
+# -----------------------------------------------------------------
+
+GUILE_RUNTIME=-L$(RUNTIMEDIR) -lswigguile
+
+guile_passive_multi: $(SRCS)
+ $(SWIG) -c -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(GUILE_RUNTIME) $(LIBS) -o lib$(TARGET)$(SO)
+
+guile_passive_multi_cpp: $(SRCS)
+ $(SWIG) -c -c++ -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDE) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(GUILE_RUNTIME) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build statically linked Guile interpreter
+# -----------------------------------------------------------------
+
+GUILE_LIBOPTS = -ldl $(SYSLIBS)
+
+guile_static: $(SRCS)
+ $(SWIG) -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
+ $(CC) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) \
+ -DSWIGINIT="SCM scm_init_$(TARGET)_module(void); scm_init_$(TARGET)_module();" \
+ $(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
+
+guile_static_cpp: $(SRCS)
+ $(SWIG) -c++ -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
+ $(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) \
+ -DSWIGINIT="SCM scm_init_$(TARGET)_module(void); scm_init_$(TARGET)_module();" \
+ $(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
+
+guile_simple: $(SRCS)
+ $(SWIG) -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACE)
+ $(CC) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) \
+ $(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
+
+guile_simple_cpp: $(SRCS)
+ $(SWIG) -c++ -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACE)
+ $(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) \
+ $(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
+
+##################################################################
+##### JAVA ######
+##################################################################
+
+# You need to set this variable to the java directories containing the
+# files "jni.h" and "md.h"
+# usually something like /usr/java/include and /usr/java/include/<arch-osname>.
+JAVA_INCLUDE=
+
+# Extra Java specific dynamic linking options
+JAVA_DLNK =
+JAVALIBPREFIX = lib
+
+# ----------------------------------------------------------------
+# Build a java dynamically loadable module (C)
+# ----------------------------------------------------------------
+
+java: $(SRCS)
+ $(SWIG) -java $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(JAVA_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) -o $(JAVALIBPREFIX)$(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a java dynamically loadable module (C++)
+# ----------------------------------------------------------------
+
+java_cpp: $(SRCS)
+ $(SWIG) -java -c++ $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(JAVA_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(JAVALIBPREFIX)$(TARGET)$(SO)
+
+# ----------------------------------------------------------------
+# Build a java dynamically loadable module
+# ----------------------------------------------------------------
+
+java_multi: $(SRCS)
+ $(SWIG) -java $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(JAVA_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) -o $(JAVALIBPREFIX)$(TARGET)$(SO)
+
+java_multi_cpp: $(SRCS)
+ $(SWIG) -java -c++ $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(JAVA_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(JAVALIBPREFIX)$(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Cleaning the java examples
+# -----------------------------------------------------------------
+
+java_clean:
+ mv main.java main.java.tmp
+ rm -f *_wrap* *.o core *~ *$(SO) *.class *.java
+ mv main.java.tmp main.java
+
+##################################################################
+##### MZSCHEME ######
+##################################################################
+
+MZC = test -n "" &&
+
+# ----------------------------------------------------------------
+# Build a C/C++ dynamically loadable module
+# ----------------------------------------------------------------
+
+mzscheme: $(SRCS)
+ $(SWIG) -mzscheme $(SWIGOPT) $(INTERFACE)
+ $(MZC) ++ccf "$(INCLUDE)" --cc $(ISRCS) $(SRCS)
+ $(MZC) --ld $(TARGET)$(SO) $(OBJS) $(IOBJS)
+
+mzscheme_cpp: $(SRCS)
+ $(SWIG) -mzscheme -c++ $(SWIGOPT) $(INTERFACE)
+ $(MZC) ++ccf "$(INCLUDE)" --cc $(ICXXSRCS) $(SRCS) $(CXXSRCS)
+ $(MZC) --ld $(TARGET)$(SO) $(OBJS) $(IOBJS) $(CPP_DLLIBS)
+
+# ----------------------------------------------------------------
+# Build a dynamically loadable module, linked against SWIG runtime
+# ----------------------------------------------------------------
+
+MZSCHEME_RUNTIME=-L$(RUNTIMEDIR) -lswigmz
+
+mzscheme_multi: $(SRCS)
+ $(SWIG) -c -mzscheme $(SWIGOPT) $(INTERFACE)
+ $(MZC) ++ccf "$(INCLUDE)" --cc $(ISRCS) $(SRCS)
+ $(MZC) --ld $(TARGET)$(SO) $(OBJS) $(IOBJS) $(MZSCHEME_RUNTIME)
+
+mzscheme_multi_cpp: $(SRCS)
+ $(SWIG) -c -mzscheme -c++ $(SWIGOPT) $(INTERFACE)
+ $(MZC) ++ccf "$(INCLUDE)" --cc $(ICXXSRCS) $(SRCS) $(CXXSRCS)
+ $(MZC) --ld $(TARGET)$(SO) $(OBJS) $(IOBJS) $(MZSCHEME_RUNTIME) $(CPP_DLLIBS)
+
+##################################################################
+##### RUBY ######
+##################################################################
+
+# Make sure these locate your Ruby installation
+RUBY_CFLAGS= -DHAVE_CONFIG_H
+RUBY_INCLUDE= -I/usr/local/lib/ruby/1.4/arch
+RUBY_LIB = /usr/local/lib/ruby/1.4/arch
+RUBY_DLNK =
+
+# ----------------------------------------------------------------
+# Build a C dynamically loadable module
+# ----------------------------------------------------------------
+
+ruby: $(SRCS)
+ $(SWIG) -ruby $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) $(RUBY_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(RUBY_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build a C++ dynamically loadable module
+# -----------------------------------------------------------------
+
+ruby_cpp: $(SRCS)
+ $(SWIG) -c++ -ruby $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) $(RUBY_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(RUBY_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build a dynamically loadable module, linked against SWIG runtime lib
+# -----------------------------------------------------------------
+
+RUBY_RUNTIME=-L$(RUNTIMEDIR) -lswigrb
+
+ruby_multi: $(SRCS)
+ $(SWIG) -c -ruby $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) $(RUBY_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(RUBY_RUNTIME) $(RUBY_DLNK) $(LIBS) -o $(TARGET)$(SO)
+
+ruby_multi_cpp: $(SRCS)
+ $(SWIG) -c -c++ -ruby $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) $(RUBY_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(RUBY_RUNTIME) $(RUBY_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# -----------------------------------------------------------------
+# Build statically linked Ruby interpreter
+#
+# These should only be used in conjunction with the %include embed.i
+# library file
+# -----------------------------------------------------------------
+
+RUBY_LIBOPTS = -lruby -lm -ldl $(SYSLIBS)
+
+ruby_static: $(SRCS)
+ $(SWIG) -ruby -lembed.i $(SWIGOPT) $(INTERFACE)
+ $(CC) $(CFLAGS) $(RUBY_CFLAGS) -Xlinker -export-dynamic $(ISRCS) $(SRCS) $(INCLUDE) \
+ $(RUBY_INCLUDE) $(LIBS) -L$(RUBY_LIB) $(RUBY_LIBOPTS) -o $(TARGET)
+
+ruby_cpp_static: $(SRCS)
+ $(SWIG) -c++ -ruby -lembed.i $(SWIGOPT) $(INTERFACE)
+ $(CXX) $(CFLAGS) $(RUBY_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) \
+ $(RUBY_INCLUDE) $(LIBS) -L$(RUBY_LIB) $(RUBY_LIBOPTS) -o $(TARGET)
+
+
+# -------------------------------------------------------------------
+# Build a PHP4 dynamically loadable module (C)
+# -------------------------------------------------------------------
+
+PHP4_INCLUDE =
+
+php4: $(SRCS)
+ $(SWIG) -php4 $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(PHP4_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o $(TARGET)$(SO)
+
+# --------------------------------------------------------------------
+# Build a PHP4 dynamically loadable module (C++)
+# --------------------------------------------------------------------
+
+php4_cpp: $(SRCS)
+ $(SWIG) -php4 -c++ $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDE) $(PHP4_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)
+
+# ---------------------------------------------------------------------
+# Build a dynamically loadable module, linked against SWIG Runtime lib
+# ---------------------------------------------------------------------
+
+PHP4_RUNTIME=-L$(RUNTIMEDIR) -lswigphp4
+
+php4_multi: $(SRCS)
+ $(SWIG) -c -php4 $(SWIGOPT) $(INTERFACE)
+ $(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDE) $(PHP4_INCLUDE)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PHP4_RUNTIME) $(PHP4_DLNK) $(LIBS) -o $(TARGET)module$(SO)
+
+php4_multi_cpp: $(SRCS)
+ $(SWIG) -c -c++ -php4 $(SWIGOPT) $(INTERFACE)
+ $(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDE) $(PHP4_INCLUDE)
+ $(CXXSHARED) $(OBJS) $(IOBJS) $(PHP4_RUNTIME) $(PHP4_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)module$(SO)
diff --git a/bindings/swig/examples/mod2zmod.pl b/bindings/swig/examples/mod2zmod.pl
new file mode 100755
index 0000000..2cc205c
--- /dev/null
+++ b/bindings/swig/examples/mod2zmod.pl
@@ -0,0 +1,84 @@
+#!/usr/bin/perl
+
+# This program converts a given module into a compressed module of the same type.
+# This is just an example to demomstrate the power of the Perl Sword bindings.
+# The code is almost written the same way the C++ of mod2zmod.cpp code was written
+
+use Sword;
+use strict;
+
+my $appname = "mod2zmod.pl";
+
+sub printUsage()
+{
+ print "\n$appname - Convert a module into a compressed module of the same type.\n";
+ print "Usage: $appname <module> <datapth> [blocktype [compresstype]]\n";
+ print("datapath: the directory in which to write the zModule\n");
+ print("blockType : (default 4)\n\t2 - verses\n\t3 - chapters\n\t4 - books\n");
+ print("compressType: (default 1):\n\t1 - LZSS\n\t2 - Zip\n\n");
+
+ exit(-1);
+}
+
+#main part of the program
+if (scalar(@ARGV) < 2 || scalar(@ARGV) > 4) {
+ printUsage;
+}
+
+#initialization stuff
+my $datapath = $ARGV[1];
+my $blockType = defined $ARGV[2] ? $ARGV[2] : 4;
+my $compressType = defined $ARGV[3] ? $ARGV[3] : 1;
+my $mgr = new Sword::SWMgr();
+my $module = $mgr->module($ARGV[0]);
+my $compressor = ($compressType == 1) ? new Sword::LZSSCompress() : new Sword::ZipCompress();
+
+my $newmod;
+
+if ($module->Type() eq "Biblical Texts") {
+ if (!Sword::zText::createModule( $datapath, $blockType )) {
+ print "$appname: Couldn't create module in $datapath";
+ exit(-1);
+ }
+ $newmod = new Sword::zText( $datapath, 0, 0, $blockType, $compressor );
+
+} elsif ($module->Type() eq "Lexicons / Dictionaries") {
+ if (!Sword::zLD::createModule( $datapath )){
+ print "$appname: Couldn't create module in $datapath";
+ exit(-1);
+ }
+ $newmod = new Sword::zLD( $datapath, 0, 0, $blockType, $compressor)
+} elsif ($module->Type() eq "Commentaries") {
+ if (!Sword::zCom::createModule( $datapath, $blockType )){
+ print "$appname: Couldn't create module in $datapath";
+ exit(-1);
+ }
+ $newmod = new Sword::zCom( $datapath, 0, 0, $blockType, $compressor)
+}
+
+# now copy the content of the module!
+
+my $buffer;
+
+$module->top();
+$module->setSkipConsecutiveLinks(0);
+do {
+ my $key = $module->Key();
+ if (($buffer eq $module->getRawEntry()) &&($buffer ne "")) {
+ print "Adding [", $key->getText(), "] link to: \n";
+ $newmod->writeLink($key);
+ }
+ else {
+ $buffer = $module->getRawEntry();
+ if ($buffer ne "") {
+ $newmod->SetKey($key);
+ $newmod->write($buffer);
+ # print "Added ", $key->getText(), "\n";
+ }
+ else {
+ print "Skipping empty ", $key->getText(), "\n";
+ }
+ }
+} while($module->next());
+
+print "The new module is now available in $datapath!\n";
diff --git a/bindings/swig/listkey.i b/bindings/swig/listkey.i
new file mode 100644
index 0000000..62fe87d
--- /dev/null
+++ b/bindings/swig/listkey.i
@@ -0,0 +1,92 @@
+%{
+#include "listkey.h"
+using namespace sword;
+%}
+
+class ListKey : public SWKey {
+public:
+ /** initializes instance of ListKey
+ *
+ * @param ikey text key
+ */
+ ListKey (const char *ikey = 0);
+ ListKey (ListKey const &k);
+
+ /** Cleans up instance of ListKey
+ */
+ virtual ~ ListKey ();
+
+ virtual SWKey *clone () const;
+
+ /** Clears out elements of list
+ */
+ virtual void ClearList ();
+
+ /** Returns number of elements in list
+ * @return number of elements in list
+ */
+ virtual int Count ();
+
+ /** Removes current element from list
+ */
+ virtual void Remove ();
+
+ /** Sets key to element number
+ *
+ * @param ielement element number to set to
+ * @return error status
+ */
+ //virtual char SetToElement (int ielement, SW_POSITION = TOP);
+%extend {
+ virtual char SetToElement(int element) {
+ return self->SetToElement(element, TOP);
+ };
+}
+
+ /** Gets a key element number
+ *
+ * @param pos element number to get (or default current)
+ * @return Key or null on error
+ */
+ virtual SWKey* GetElement (int pos = -1);
+
+ /** Adds an element to the list
+ * @param ikey the element to add
+ */
+ //ListKey & operator << (const SWKey &ikey);
+ virtual void add(const SWKey &ikey);
+
+ /** Equates this ListKey to another ListKey object
+ *
+ * @param ikey other ListKey object
+ */
+ virtual void copyFrom(const ListKey & ikey);
+ //virtual void copyFrom(const SWKey & ikey) { SWKey::copyFrom(ikey); }
+
+ /** Positions this key
+ *
+ * @param p position
+ * @return *this
+ */
+ virtual void setPosition(SW_POSITION);
+
+ /** Decrements a number of elements
+ */
+ virtual void decrement(int step);
+
+ /** Increments a number of elements
+ */
+ virtual void increment(int step);
+
+ virtual char Traversable ();
+ virtual long Index () const;
+
+ /**
+ * Returns the index for the new one given as as parameter.
+ * The first parameter is the new index.
+ */
+ virtual long Index (long index);
+
+ //SWKEY_OPERATORS
+ //ListKey & operator =(const ListKey &key) { copyFrom(key); return *this; }
+};
diff --git a/bindings/swig/localemgr.i b/bindings/swig/localemgr.i
new file mode 100644
index 0000000..8fb7487
--- /dev/null
+++ b/bindings/swig/localemgr.i
@@ -0,0 +1,25 @@
+%{
+#include <localemgr.h>
+
+using namespace std;
+using namespace sword;
+%}
+
+typedef map < SWBuf, SWLocale *, less < string > >LocaleMap;
+
+class LocaleMgr {
+public:
+ LocaleMgr (const char *iConfigPath = 0);
+ virtual ~LocaleMgr ();
+ virtual SWLocale *getLocale (const char *name);
+ virtual std::list < SWBuf > getAvailableLocales ();
+ //virtual const char *translate (const char *name, const char *text);
+ virtual const char *getDefaultLocaleName();
+ virtual void setDefaultLocaleName (const char *name);
+
+%extend {
+ static LocaleMgr* const getSystemLocaleMgr() {
+ return &(LocaleMgr::systemLocaleMgr);
+ };
+}
+};
diff --git a/bindings/swig/lzsscompress.i b/bindings/swig/lzsscompress.i
new file mode 100644
index 0000000..e83ba24
--- /dev/null
+++ b/bindings/swig/lzsscompress.i
@@ -0,0 +1,12 @@
+%{
+#include <lzsscomprs.h>
+using namespace sword;
+%}
+
+class LZSSCompress : public SWCompress {
+public:
+ LZSSCompress ();
+ virtual ~LZSSCompress ();
+ virtual void Encode (void);
+ virtual void Decode (void);
+};
diff --git a/bindings/swig/package/Makefile.am b/bindings/swig/package/Makefile.am
new file mode 100644
index 0000000..c8a50e3
--- /dev/null
+++ b/bindings/swig/package/Makefile.am
@@ -0,0 +1,96 @@
+EXTRA_DIST = *.i
+
+if RUNSWIG
+PERLSWIG=perlswig
+TCLSWIG=tclswig
+PYTHONSWIG=pythonswig
+PHPSWIG=phpswig
+else
+PERLSWIG=
+TCLSWIG=
+PYTHONSWIG=
+PHPSWIG=
+endif
+
+all: $(PERLBUILD) $(TCLBUILD) $(PYTHONBUILD) $(PHPBUILD)
+ echo "built"
+
+perl_make: perl_makebuild
+ cd perl && make
+
+perlswig: sword.i
+ mkdir -p perl
+ $(SWIG) -perl -c++ -shadow -o perl/Sword.cxx -I$(top_srcdir) $(SWORD_INCLUDES) $(top_srcdir)/sword.i
+
+perl_makebuild: $(PERLSWIG)
+ mkdir -p perl
+ echo "writing perl/Makefile.PL"
+ @echo "#! /usr/bin/perl" > perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "use ExtUtils::MakeMaker;" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "# See lib/ExtUtils/MakeMaker.pm for details of how to influence" >> perl/Makefile.PL
+ @echo "# the contents of the Makefile that is written." >> perl/Makefile.PL
+ @echo "WriteMakefile(" >> perl/Makefile.PL
+ @echo " 'NAME' => 'Sword'," >> perl/Makefile.PL
+ @echo " 'VERSION' => '$(VERSION)'," >> perl/Makefile.PL
+ @echo " 'INC' => '$(SWORD_INCLUDES)'," >> perl/Makefile.PL
+ @echo " 'DEFINE' => '-DSWIG'," >> perl/Makefile.PL
+ @echo " 'LIBS' => '$(LIB_SWORD) -lz'," >> perl/Makefile.PL
+ @echo " 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1" >> perl/Makefile.PL
+ @echo " ($$] >= 5.005 ? ## Add these new keywords supported since 5.005" >> perl/Makefile.PL
+ @echo " (ABSTRACT => 'Sword Project perl bindings', # retrieve abstract from module" >> perl/Makefile.PL
+ @echo " AUTHOR => 'Sword Project <sword-devel@crosswire.org>') : ())," >> perl/Makefile.PL
+ @echo ");" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "rename 'Makefile', 'Makefile.old' or die \"can't rename Makefile\";" >> perl/Makefile.PL
+ @echo "open(INPUT, '<Makefile.old') or die \"can't open input Makefile.old\";" >> perl/Makefile.PL
+ @echo "open(OUTPUT, '>Makefile') or die \"can't open output Makefile\";" >> perl/Makefile.PL
+ @echo "while (<INPUT>) {" >> perl/Makefile.PL
+ @echo " s/\-lsword/\-lsword \-lstdc\+\+/;" >> perl/Makefile.PL
+ @echo " print OUTPUT \"$$""_\";" >> perl/Makefile.PL
+ @echo "}" >> perl/Makefile.PL
+ @echo "" >> perl/Makefile.PL
+ @echo "close INPUT;" >> perl/Makefile.PL
+ @echo "close OUTPUT;" >> perl/Makefile.PL
+ cd perl && $(PERL) Makefile.PL && make clean
+ @echo "\.old" > perl/MANIFEST.SKIP
+ @echo "~$$" >> perl/MANIFEST.SKIP
+ @echo "\.bak" >> perl/MANIFEST.SKIP
+ @echo "^CVS" >> perl/MANIFEST.SKIP
+ @echo "Makefile$$" >> perl/MANIFEST.SKIP
+ cd perl && $(PERL) Makefile.PL && make manifest
+
+tclswig: sword.i
+ mkdir -p tcl
+ $(SWIG) -tcl -c++ -namespace -pkgversion $(VERSION) -o tcl/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
+python_make: python_makebuild
+ cd python && $(PYTHON) setup.py build_ext $(SWORD_INCLUDES) $(LIB_SWORD)
+
+pythonswig: sword.i
+ mkdir -p python
+ $(SWIG) -python -c++ -shadow -o python/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
+python_makebuild: $(PYTHONSWIG)
+ mkdir -p python
+ echo "writing python/setup.py"
+ @echo "#! /usr/bin/python" > python/setup.py
+ @echo "" >> python/setup.py
+ @echo "from distutils.core import setup, Extension" >> python/setup.py
+ @echo "setup (name = \"sword\"," >> python/setup.py
+ @echo " version = \"$(VERSION)\"," >> python/setup.py
+ @echo " maintainer = \"Sword Developers\"," >> python/setup.py
+ @echo " maintainer_email = \"sword-devel@crosswire.org\"," >> python/setup.py
+ @echo " url = \"http://www.crosswire.org/sword\"," >> python/setup.py
+ @echo " py_modules = [\"Sword\"]," >> python/setup.py
+ @echo " ext_modules = [Extension(\"sword\", [\"Sword.cxx\"]," >> python/setup.py
+ @echo " define_macros=[('SWIG',1)])], " >> python/setup.py
+ @echo ")" >> python/setup.py
+
+
+
+phpswig: sword.i
+ mkdir -p php
+ $(SWIG) -php4 -c++ -fullmake -o php/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
diff --git a/bindings/swig/package/README.cvs b/bindings/swig/package/README.cvs
new file mode 100644
index 0000000..db24038
--- /dev/null
+++ b/bindings/swig/package/README.cvs
@@ -0,0 +1,10 @@
+README
+------
+
+To build the sword bindings for Sword you require
+
+SWIG 1.3 (see http://www.swig.org)
+one of perl, python, tcl, php
+Sword 1.5.6
+
+First run ./autogen.sh to generate this directory
diff --git a/bindings/swig/package/autogen.sh b/bindings/swig/package/autogen.sh
new file mode 100755
index 0000000..dac8704
--- /dev/null
+++ b/bindings/swig/package/autogen.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+echo "*** copying swig files"
+cp -a ../*.i .
+
+ACLOCAL="$AUTODIR""aclocal"
+echo "*** Recreating aclocal.m4"
+echo "$ACLOCAL"
+ $ACLOCAL -I .;
+
+echo "*** Recreating configure"
+AUTOCONF="$AUTODIR""autoconf"
+ $AUTOCONF;
+
+echo "*** Recreating the Makefile.in files"
+AUTOMAKE="$AUTODIR""automake"
+ $AUTOMAKE -ac --foreign;
diff --git a/bindings/swig/package/configure.ac b/bindings/swig/package/configure.ac
new file mode 100644
index 0000000..63b7a43
--- /dev/null
+++ b/bindings/swig/package/configure.ac
@@ -0,0 +1,41 @@
+# ---------------------------------------------------------------------
+# Initialisation
+# ---------------------------------------------------------------------
+AC_INIT(swordbindings, 1.5.6, sword-bugs@crosswire.org)
+AC_CONFIG_SRCDIR(sword.i)
+AC_PREREQ(2.52)
+AC_REVISION($Revision: 1.1 $)
+AM_INIT_AUTOMAKE(swordbindings,1.5.6)
+
+# ---------------------------------------------------------------------
+# Check Programs
+# ---------------------------------------------------------------------
+AC_LANG(C++)
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_INSTALL
+SW_PROG_SWIG
+
+# ---------------------------------------------------------------------
+# Check libraries
+# ---------------------------------------------------------------------
+SW_CHECK_SWORD(1.5.5.99)
+
+# ---------------------------------------------------------------------
+# Misc
+# ---------------------------------------------------------------------
+AM_MAINTAINER_MODE
+
+# ---------------------------------------------------------------------
+# Check Scripting languages
+# ---------------------------------------------------------------------
+SW_FIND_PERL
+SW_FIND_PYTHON
+SW_FIND_PHP4
+SW_FIND_TCL
+
+# ---------------------------------------------------------------------
+# Final output
+# ---------------------------------------------------------------------
+AC_CONFIG_FILES(Makefile)
+AC_OUTPUT
diff --git a/bindings/swig/package/perl.m4 b/bindings/swig/package/perl.m4
new file mode 100644
index 0000000..9add0b3
--- /dev/null
+++ b/bindings/swig/package/perl.m4
@@ -0,0 +1,71 @@
+#----------------------------------------------------------------
+# Look for Perl5
+#----------------------------------------------------------------
+
+AC_DEFUN(SW_FIND_PERL,
+[
+
+
+PERLBIN=
+PERLSWIG=
+
+AC_ARG_WITH(perl,[ --with-perl=path Set location of Perl5 executable],[ PERLBIN="$withval"], [PERLBIN=])
+
+# First figure out what the name of Perl5 is
+
+if test -z "$PERLBIN"; then
+AC_PATH_PROGS(PERL, perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl)
+else
+AC_PATH_PROG(PERL, perl, , $PERLBIN)
+#PERL="$PERLBIN"
+fi
+
+
+AC_MSG_CHECKING(for Perl5 header files)
+if test -n "$PERL"; then
+ PERL5DIR=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
+ if test "$PERL5DIR" != ""; then
+ dirs="$PERL5DIR $PERL5DIR/CORE"
+ PERL5EXT=none
+ PERLBUILD=perl_make
+ for i in $dirs; do
+ if test -r $i/perl.h; then
+ AC_MSG_RESULT($i)
+ PERL5EXT="$i"
+ break;
+ fi
+ done
+ if test "$PERL5EXT" = none; then
+ PERL5EXT="$PERL5DIR/CORE"
+ AC_MSG_RESULT(could not locate perl.h...using $PERL5EXT)
+ fi
+
+ AC_MSG_CHECKING(for Perl5 library)
+ PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; print $_') 2>/dev/null`
+ if test "$PERL5LIB" = "" ; then
+ AC_MSG_RESULT(not found)
+ else
+ AC_MSG_RESULT($PERL5LIB)
+ fi
+ else
+ AC_MSG_RESULT(unable to determine perl5 configuration)
+ PERL5EXT=$PERL5DIR
+ fi
+else
+ AC_MSG_RESULT(could not figure out how to run perl5)
+# PERL5EXT="/usr/local/lib/perl/archname/5.003/CORE"
+fi
+
+# Only cygwin (Windows) needs the library for dynamic linking
+case $ac_sys_system/$ac_sys_release in
+CYGWIN*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";;
+*)PERL5DYNAMICLINKING="";;
+esac
+
+
+AC_SUBST(PERL5EXT)
+AC_SUBST(PERL5DYNAMICLINKING)
+AC_SUBST(PERL5LIB)
+AC_SUBST(PERLBUILD)
+
+])
diff --git a/bindings/swig/package/php4.m4 b/bindings/swig/package/php4.m4
new file mode 100644
index 0000000..d184ec2
--- /dev/null
+++ b/bindings/swig/package/php4.m4
@@ -0,0 +1,33 @@
+#-------------------------------------------------------------------------
+# Look for Php4
+#-------------------------------------------------------------------------
+
+AC_DEFUN(SW_FIND_PHP4,
+[
+
+PHP4BIN=
+
+AC_ARG_WITH(php4,[ --with-php4=path Set location of PHP4 executable],[ PHP4BIN="$withval"], [PHP4BIN=])
+
+if test -z "$PHP4BIN"; then
+AC_PATH_PROGS(PHP4, php php4)
+else
+PHP4="$PHP4BIN"
+fi
+AC_MSG_CHECKING(for PHP4 header files)
+dirs="/usr/include/php /usr/local/include/php /usr/local/apache/php /usr/include/php4 /usr/local/include/php4 /usr/local/apache/php4"
+for i in $dirs; do
+ if test -r $i/php_config.h -o -r $i/php_version.h; then
+ AC_MSG_RESULT($i)
+ PHP4EXT="$i"
+ PHP4INC="-I$PHP4EXT -I$PHP4EXT/Zend -I$PHP4EXT/main -I$PHP4EXT/TSRM"
+ break;
+ fi
+done
+if test -z "$PHP4INC"; then
+ AC_MSG_RESULT(not found)
+fi
+
+AC_SUBST(PHP4INC)
+
+])
diff --git a/bindings/swig/package/python.m4 b/bindings/swig/package/python.m4
new file mode 100644
index 0000000..a047ea4
--- /dev/null
+++ b/bindings/swig/package/python.m4
@@ -0,0 +1,117 @@
+#----------------------------------------------------------------
+# Look for Python
+#----------------------------------------------------------------
+
+AC_DEFUN(SW_FIND_PYTHON,
+[
+
+PYINCLUDE=
+PYLIB=
+PYPACKAGE=
+PYTHONBUILD=
+
+# I don't think any of this commented stuff works anymore
+
+#PYLINK="-lModules -lPython -lObjects -lParser"
+
+#AC_ARG_WITH(py,[ --with-py=path Set location of Python],[
+# PYPACKAGE="$withval"], [PYPACKAGE=])
+#AC_ARG_WITH(pyincl,[ --with-pyincl=path Set location of Python include directory],[
+# PYINCLUDE="$withval"], [PYINCLUDE=])
+#AC_ARG_WITH(pylib,[ --with-pylib=path Set location of Python library directory],[
+# PYLIB="$withval"], [PYLIB=])
+
+#if test -z "$PYINCLUDE"; then
+# if test -n "$PYPACKAGE"; then
+# PYINCLUDE="$PYPACKAGE/include"
+# fi
+#fi
+
+#if test -z "$PYLIB"; then
+# if test -n "$PYPACKAGE"; then
+# PYLIB="$PYPACKAGE/lib"
+# fi
+#fi
+
+AC_ARG_WITH(python,[ --with-python=path Set location of Python executable],[ PYBIN="$withval"], [PYBIN=])
+
+# First figure out the name of the Python executable
+
+if test -z "$PYBIN"; then
+AC_PATH_PROGS(PYTHON, $prefix/bin/python python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python)
+else
+PYTHON="$PYBIN"
+fi
+
+if test -n "$PYTHON"; then
+ AC_MSG_CHECKING(for Python prefix)
+ PYPREFIX=`($PYTHON -c "import sys; print sys.prefix") 2>/dev/null`
+ AC_MSG_RESULT($PYPREFIX)
+ AC_MSG_CHECKING(for Python exec-prefix)
+ PYEPREFIX=`($PYTHON -c "import sys; print sys.exec_prefix") 2>/dev/null`
+ AC_MSG_RESULT($PYEPREFIX)
+
+
+ # Note: I could not think of a standard way to get the version string from different versions.
+ # This trick pulls it out of the file location for a standard library file.
+
+ AC_MSG_CHECKING(for Python version)
+
+ # Need to do this hack since autoconf replaces __file__ with the name of the configure file
+ filehack="file__"
+ PYVERSION=`($PYTHON -c "import string,operator; print operator.getitem(string.split(string.__$filehack,'/'),-2)")`
+ AC_MSG_RESULT($PYVERSION)
+
+ # Set the include directory
+
+ AC_MSG_CHECKING(for Python header files)
+ if test -r $PYPREFIX/include/$PYVERSION/Python.h; then
+ PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/lib/$PYVERSION/config"
+ fi
+ if test -z "$PYINCLUDE"; then
+ if test -r $PYPREFIX/include/Py/Python.h; then
+ PYINCLUDE="-I$PYPREFIX/include/Py -I$PYEPREFIX/lib/python/lib"
+ fi
+ fi
+ AC_MSG_RESULT($PYINCLUDE)
+
+ # Set the library directory blindly. This probably won't work with older versions
+ AC_MSG_CHECKING(for Python library)
+ dirs="$PYVERSION/config $PYVERSION/lib python/lib"
+ for i in $dirs; do
+ if test -d $PYEPREFIX/lib/$i; then
+ PYLIB="$PYEPREFIX/lib/$i"
+ PYTHONBUILD=python_make
+ break
+ fi
+ done
+ if test -z "$PYLIB"; then
+ AC_MSG_RESULT(Not found)
+ else
+ AC_MSG_RESULT($PYLIB)
+ fi
+
+ # Check for really old versions
+ if test -r $PYLIB/libPython.a; then
+ PYLINK="-lModules -lPython -lObjects -lParser"
+ else
+ PYLINK="-l$PYVERSION"
+ fi
+fi
+
+# Only cygwin (Windows) needs the library for dynamic linking
+case $ac_sys_system/$ac_sys_release in
+CYGWIN*) PYTHONDYNAMICLINKING="-L$PYLIB $PYLINK"
+ PYINCLUDE="-DUSE_DL_IMPORT $PYINCLUDE"
+ ;;
+*)PYTHONDYNAMICLINKING="";;
+esac
+
+
+AC_SUBST(PYINCLUDE)
+AC_SUBST(PYLIB)
+AC_SUBST(PYLINK)
+AC_SUBST(PYTHONBUILD)
+AC_SUBST(PYTHONDYNAMICLINKING)
+
+])
diff --git a/bindings/swig/package/swig.m4 b/bindings/swig/package/swig.m4
new file mode 100644
index 0000000..9ff89d7
--- /dev/null
+++ b/bindings/swig/package/swig.m4
@@ -0,0 +1,29 @@
+#----------------------------------------------------------------
+# Look for SWIG
+#----------------------------------------------------------------
+
+AC_DEFUN(SW_PROG_SWIG,
+[
+
+AC_ARG_WITH(swigbin,[ --with-swigbin=path Set location of swig executable],[ SWIGBIN="$withval"], [SWIGBIN=])
+AC_ARG_ENABLE(swig,[ --enable-swig=path Run swig to generate new source default=no],, enable_swig=no)
+
+if test -z "$SWIGBIN"; then
+AC_PATH_PROG(SWIG, swig)
+else
+AC_PATH_PROG(SWIG, swig, "not found", $SWIGBIN)
+fi
+
+runswig=true
+if test x"$SWIG"="xnot found"; then
+ runswig=false
+fi
+if test x"$enable_swig"="xno"; then
+ runswig=false
+fi
+
+AM_CONDITIONAL(RUNSWIG, test x$runswig = xtrue)
+
+#ac_cv_swigversion=``
+
+])
diff --git a/bindings/swig/package/sword.m4 b/bindings/swig/package/sword.m4
new file mode 100644
index 0000000..f22da68
--- /dev/null
+++ b/bindings/swig/package/sword.m4
@@ -0,0 +1,172 @@
+## -*- autoconf -*-
+dnl This file was created by Joachim Ansorg <jansorg@gmx.de>
+dnl It provides macord for the autoconf package to find the Sword library on your system.
+
+dnl ----------------------------------------------------------------------
+dnl Check wheter to use static linking
+dnl first parameter is the required version
+dnl second is whether to use static sword library
+dnl ----------------------------------------------------------------------
+AC_DEFUN(SW_CHECK_SWORD,
+[
+dnl AC_MSG_CHECKING([for a Sword installation])
+
+dnl The option for the configure script
+AC_ARG_WITH(sword-dir,
+[ --with-sword-dir=DIR Patch where Sword is being installed (default=/usr) ],
+[
+ ac_sword_dir=$withval
+],ac_sword_dir=/usr
+)
+
+AC_ARG_ENABLE(static-sword,
+[ --enable-static-sword Link to the static Sword library],
+ ac_static_sword="YES",
+ [ ac_static_sword="$2" ]
+)
+
+dnl try to find Sword library files
+AC_MSG_CHECKING([for Sword library files])
+AC_REQUIRE([AC_FIND_ZLIB])
+ac_sword_library_dirs="$ac_sword_dir/lib /usr/lib /usr/lib/sword /usr/local/lib /usr/local/lib/sword /usr/local/sword/lib"
+
+if test "$ac_static_sword" = "YES"; then
+ SEARCH_LIBS="libsword.a";
+else
+ SEARCH_LIBS="libsword.a libsword.so";
+fi
+
+
+AC_CACHE_VAL(ac_cv_sword_libdir, AC_FIND_FILE($SEARCH_LIBS, $ac_sword_library_dirs, ac_cv_sword_libdir))
+
+if test "$ac_cv_sword_libdir" = "NO"; then
+ AC_MSG_ERROR(SWORD library not found. Try to use configure with --with-sword-dir=/your/SWORD/path!);
+fi
+
+if test "$ac_static_sword" = "YES"; then
+ LIB_SWORD="$ac_cv_sword_libdir/libsword.a";
+else
+ LIB_SWORD="-L$ac_cv_sword_libdir -lsword";
+fi
+
+#AC_SUBST(SWORD_LIBRARY_PATH)
+AC_SUBST(LIB_SWORD)
+all_libraries="$all_libraries -L$ac_cv_sword_libdir"
+
+if test "$ac_static_sword" = "YES"; then
+ MESSAGE="static library $ac_cv_sword_libdir/libsword.a";
+else
+ MESSAGE="$ac_cv_sword_libdir";
+fi
+AC_MSG_RESULT([$MESSAGE])
+
+
+
+dnl -- try to find Swords include files --
+AC_MSG_CHECKING([for Sword include files])
+ac_sword_include_dirs="$ac_sword_dir/include/sword $ac_sword_dir/include /usr/include/sword /usr/include /usr/local/include/sword /usr/local/include /usr/local/sword/include /usr/local/sword/include/sword"
+
+AC_CACHE_VAL(ac_cv_sword_incdir, AC_FIND_FILE(swmgr.h, $ac_sword_include_dirs, ac_cv_sword_incdir))
+
+if test "$ac_cv_sword_incdir" = "NO"; then
+ AC_MSG_ERROR([The Sword include file files were not found.
+Please try to use configure with --with-sword-dir=/your/SWORD/path !
+])
+fi
+
+SWORD_INCLUDES="-I$ac_cv_sword_incdir"
+AC_SUBST(SWORD_INCLUDES)
+all_includes="$all_includes -I$ac_cv_sword_incdir"
+
+AC_MSG_RESULT([$ac_cv_sword_incdir])
+
+
+
+dnl -- check if Sword matches the minimum version --
+AC_MSG_CHECKING([if you have Sword $1 or later])
+
+AC_CACHE_VAL(ac_cv_installed_sword_version,
+[
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
+ac_LIBRARY_PATH="$LIBRARY_PATH"
+ac_cxxflags_safe="$CXXFLAGS"
+ac_ldflags_safe="$LDFLAGS"
+ac_libs_safe="$LIBS"
+
+CXXFLAGS="$CXXFLAGS -I$"
+LDFLAGS="$LDFLAGS -L$ac_cv_sword_libdir"
+LIBS="$LIB_SWORD -lz"
+LD_LIBRARY_PATH="$ac_cv_sword_libdir"
+export LD_LIBRARY_PATH
+LIBRARY_PATH=
+export LIBRARY_PATH
+
+cat > conftest.$ac_ext <<EOF
+#include <iostream.h>
+#include <swversion.h>
+using std::cout;
+using std::endl;
+using sword::SWVersion;
+
+int main(int argc, char* argv[]) {
+ if (argc != 2) {
+ cout << SWVersion::currentVersion << endl;
+ }
+ else if (argc == 2)
+ {
+ if (SWVersion(&argv[[1]]) < SWVersion::currentVersion || SWVersion(&argv[[1]]) == SWVersion::currentVersion)
+ {
+ cout << 0 << endl;
+ return 0;
+ }
+ else
+ {
+ cout << 1 << endl;
+ return 1; //version not recent enough
+ }
+ }
+ return 0;
+}
+EOF
+
+ac_link='${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+if AC_TRY_EVAL(ac_link) && test -s conftest; then
+ if test -x conftest; then
+ eval ac_cv_installed_sword_version=`./conftest 2>&5`
+ echo "configure: ac_cv_installed_sword_version=$ac_cv_installed_sword_version" >&AC_FD_CC
+ eval sword_test_returncode=`./conftest $1 2>&5`;
+ echo "configure: sword_test_returncode=$sword_test_returncode" >&AC_FD_CC
+ fi
+else
+ echo "configure: failed program was:" >&AC_FD_CC
+ cat conftest.$ac_ext >&AC_FD_CC
+fi
+
+rm -f conftest*
+CXXFLAGS="$ac_cxxflags_safe"
+LDFLAGS="$ac_ldflags_safe"
+LIBS="$ac_libs_safe"
+
+LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
+export LD_LIBRARY_PATH
+LIBRARY_PATH="$ac_LIBRARY_PATH"
+export LIBRARY_PATH
+AC_LANG_RESTORE
+])
+
+right_version="ok";
+if test "x$sword_test_returncode" = "x1"; then
+ echo "configure: changing right_version" >&AC_FD_CC
+ right_version="wrong version";
+fi;
+
+AC_MSG_RESULT([$ac_cv_installed_sword_version])
+echo "configure: right_version=$right_version" >&AC_FD_CC
+if test "x$right_version" != "xok"; then
+ AC_MSG_ERROR([Your Sword installation is not recent enough! $sword_test_returncode Please
+upgrade to version $1!]);
+fi;
+
+])
diff --git a/bindings/swig/package/tcl.m4 b/bindings/swig/package/tcl.m4
new file mode 100644
index 0000000..9b99c7f
--- /dev/null
+++ b/bindings/swig/package/tcl.m4
@@ -0,0 +1,114 @@
+#--------------------------------------------------------------------
+# Try to locate the Tcl package
+#--------------------------------------------------------------------
+
+AC_DEFUN(SW_FIND_TCL,
+[
+
+
+TCLINCLUDE=
+TCLLIB=
+TCLPACKAGE=
+#TCLSWIG=
+
+AC_ARG_WITH(tclconfig,[ --with-tclconfig=path Set location of tclConfig.sh],
+ with_tclconfig="$withval")
+AC_ARG_WITH(tcl,[ --with-tcl=path Set location of Tcl package],[
+ TCLPACKAGE="$withval"], [TCLPACKAGE=])
+AC_ARG_WITH(tclincl,[ --with-tclincl=path Set location of Tcl include directory],[
+ TCLINCLUDE="-I$withval"], [TCLINCLUDE=])
+AC_ARG_WITH(tcllib,[ --with-tcllib=path Set location of Tcl library directory],[
+ TCLLIB="-L$withval"], [TCLLIB=])
+
+AC_MSG_CHECKING([for Tcl configuration])
+# First check to see if --with-tclconfig was specified.
+if test x"${with_tclconfig}" != x ; then
+ if test -f "${with_tclconfig}/tclConfig.sh" ; then
+ TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
+ else
+ AC_MSG_ERROR([${with_tcl} directory doesn't contain tclConfig.sh])
+ fi
+fi
+# check in a few common install locations
+if test x"${TCLCONFIG}" = x ; then
+ for i in `ls -d /usr/lib 2>/dev/null` \
+ `ls -d ${prefix}/lib 2>/dev/null` \
+ `ls -d /usr/local/lib 2>/dev/null` ; do
+ if test -f "$i/tclConfig.sh" ; then
+ TCLCONFIG=`(cd $i; pwd)`
+ break
+ fi
+ done
+fi
+if test x"${TCLCONFIG}" = x ; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
+ . $TCLCONFIG/tclConfig.sh
+ TCLINCLUDE=-I$TCL_PREFIX/include
+ TCLLIB=$TCL_LIB_SPEC
+fi
+
+if test -z "$TCLINCLUDE"; then
+ if test -n "$TCLPACKAGE"; then
+ TCLINCLUDE="-I$TCLPACKAGE/include"
+ fi
+fi
+
+if test -z "$TCLLIB"; then
+ if test -n "$TCLPACKAGE"; then
+ TCLLIB="-L$TCLPACKAGE/lib -ltcl"
+ fi
+fi
+
+AC_MSG_CHECKING(for Tcl header files)
+if test -z "$TCLINCLUDE"; then
+AC_TRY_CPP([#include <tcl.h>], , TCLINCLUDE="")
+if test -z "$TCLINCLUDE"; then
+ dirs="$prefix/include /usr/local/include /usr/include /opt/local/include"
+ for i in $dirs ; do
+ if test -r $i/tcl.h; then
+ AC_MSG_RESULT($i)
+ TCLINCLUDE="-I$i"
+ break
+ fi
+ done
+fi
+if test -z "$TCLINCLUDE"; then
+# TCLINCLUDE="-I/usr/local/include"
+ AC_MSG_RESULT(not found)
+fi
+else
+ AC_MSG_RESULT($TCLINCLUDE)
+fi
+
+AC_MSG_CHECKING(for Tcl library)
+if test -z "$TCLLIB"; then
+dirs="$prefix/lib /usr/local/lib /usr/lib /opt/local/lib"
+for i in $dirs ; do
+ if test -r $i/libtcl.a; then
+ AC_MSG_RESULT($i)
+ TCLLIB="-L$i -ltcl"
+ break
+ fi
+done
+if test -z "$TCLLIB"; then
+ AC_MSG_RESULT(not found)
+# TCLLIB="-L/usr/local/lib"
+fi
+else
+AC_MSG_RESULT($TCLLIB)
+fi
+
+# Only cygwin (Windows) needs the library for dynamic linking
+case $ac_sys_system/$ac_sys_release in
+CYGWIN*) TCLDYNAMICLINKING="$TCLLIB";;
+*)TCLDYNAMICLINKING="";;
+esac
+
+AC_SUBST(TCLINCLUDE)
+AC_SUBST(TCLLIB)
+AC_SUBST(TCLDYNAMICLINKING)
+#AC_SUBST(TCLSWIG)
+
+])
diff --git a/bindings/swig/package/zlib.m4 b/bindings/swig/package/zlib.m4
new file mode 100644
index 0000000..952e5bd
--- /dev/null
+++ b/bindings/swig/package/zlib.m4
@@ -0,0 +1,111 @@
+## -*- autoconf -*-
+
+
+AC_DEFUN(AC_FIND_ZLIB,
+[
+AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
+AC_MSG_CHECKING([for libz])
+AC_CACHE_VAL(ac_cv_lib_z,
+[
+AC_LANG_C
+kde_save_LIBS="$LIBS"
+LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
+kde_save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
+AC_TRY_LINK(dnl
+[
+#include<zlib.h>
+],
+ [return (zlibVersion() == ZLIB_VERSION); ],
+ eval "ac_cv_lib_z='-lz'",
+ eval "ac_cv_lib_z=no")
+LIBS="$kde_save_LIBS"
+CFLAGS="$kde_save_CFLAGS"
+])dnl
+if test ! "$ac_cv_lib_z" = no; then
+ AC_DEFINE_UNQUOTED(HAVE_LIBZ, 1, [Define if you have libz])
+ LIBZ="$ac_cv_lib_z"
+ AC_SUBST(LIBZ)
+ AC_MSG_RESULT($ac_cv_lib_z)
+else
+ AC_MSG_ERROR(not found. Check your installation and look into config.log)
+ LIBZ=""
+ AC_SUBST(LIBZ)
+fi
+])
+
+AC_DEFUN(KDE_CHECK_EXTRA_LIBS,
+[
+AC_MSG_CHECKING(for extra includes)
+AC_ARG_WITH(extra-includes, [ --with-extra-includes=DIR
+ adds non standard include paths],
+ kde_use_extra_includes="$withval",
+ kde_use_extra_includes=NONE
+)
+kde_extra_includes=
+if test -n "$kde_use_extra_includes" && \
+ test "$kde_use_extra_includes" != "NONE"; then
+
+ ac_save_ifs=$IFS
+ IFS=':'
+ for dir in $kde_use_extra_includes; do
+ kde_extra_includes="$kde_extra_includes $dir"
+ USER_INCLUDES="$USER_INCLUDES -I$dir"
+ done
+ IFS=$ac_save_ifs
+ kde_use_extra_includes="added"
+else
+ kde_use_extra_includes="no"
+fi
+AC_SUBST(USER_INCLUDES)
+
+AC_MSG_RESULT($kde_use_extra_includes)
+
+kde_extra_libs=
+AC_MSG_CHECKING(for extra libs)
+AC_ARG_WITH(extra-libs, [ --with-extra-libs=DIR adds non standard library paths],
+ kde_use_extra_libs=$withval,
+ kde_use_extra_libs=NONE
+)
+if test -n "$kde_use_extra_libs" && \
+ test "$kde_use_extra_libs" != "NONE"; then
+
+ ac_save_ifs=$IFS
+ IFS=':'
+ for dir in $kde_use_extra_libs; do
+ kde_extra_libs="$kde_extra_libs $dir"
+ KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
+ USER_LDFLAGS="$USER_LDFLAGS -L$dir"
+ done
+ IFS=$ac_save_ifs
+ kde_use_extra_libs="added"
+else
+ kde_use_extra_libs="no"
+fi
+
+AC_SUBST(USER_LDFLAGS)
+
+AC_MSG_RESULT($kde_use_extra_libs)
+
+])
+
+dnl ------------------------------------------------------------------------
+dnl Find a file (or one of more files in a list of dirs)
+dnl ------------------------------------------------------------------------
+dnl
+AC_DEFUN(AC_FIND_FILE,
+[
+$3=NO
+for i in $2;
+do
+ for j in $1;
+ do
+ echo "configure: __oline__: $i/$j" >&AC_FD_CC
+ if test -r "$i/$j"; then
+ echo "taking that" >&AC_FD_CC
+ $3=$i
+ break 2
+ fi
+ done
+done
+])
diff --git a/bindings/swig/perl/Changes b/bindings/swig/perl/Changes
new file mode 100644
index 0000000..724061a
--- /dev/null
+++ b/bindings/swig/perl/Changes
@@ -0,0 +1,6 @@
+Revision history for Perl extension sword.
+
+1.5.5 Wed Oct 2 23:52:35 2002
+ - original version; created by h2xs 1.21 with options
+ -X -n Sword -v 1.5.5
+
diff --git a/bindings/swig/perl/README b/bindings/swig/perl/README
new file mode 100644
index 0000000..af3aace
--- /dev/null
+++ b/bindings/swig/perl/README
@@ -0,0 +1,35 @@
+sword version 1.5.5
+===================
+
+The README is used to introduce the module and provide instructions on
+how to install the module, any machine dependencies it may have (for
+example C compilers and installed libraries) and any other information
+that should be provided before the module is installed.
+
+A README file is required for CPAN modules since CPAN extracts the
+README file from a module distribution so that people browsing the
+archive can use it get an idea of the modules uses. It is usually a
+good idea to provide version information here so that people can
+decide whether fixes for the module are worth downloading.
+
+INSTALLATION
+
+To install this module type the following:
+
+ perl Makefile.PL
+ make
+ make test
+ make install
+
+DEPENDENCIES
+
+This module requires these other modules and libraries:
+
+ blah blah blah
+
+COPYRIGHT AND LICENCE
+
+Put the correct copyright and licence information here.
+
+Copyright (C) 2002 Crosswire Bible Society
+
diff --git a/bindings/swig/perl/Sword.cxx b/bindings/swig/perl/Sword.cxx
new file mode 100644
index 0000000..f7384b0
--- /dev/null
+++ b/bindings/swig/perl/Sword.cxx
@@ -0,0 +1,10209 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.19
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+
+#ifdef __cplusplus
+template<class T> class SwigValueWrapper {
+ T *tt;
+public:
+ inline SwigValueWrapper() : tt(0) { }
+ inline ~SwigValueWrapper() { if (tt) delete tt; }
+ inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
+ inline operator T&() const { return *tt; }
+ inline T *operator&() { return tt; }
+};
+#endif
+
+/***********************************************************************
+ * common.swg
+ *
+ * This file contains generic SWIG runtime support for pointer
+ * type checking as well as a few commonly used macros to control
+ * external linkage.
+ *
+ * Author : David Beazley (beazley@cs.uchicago.edu)
+ *
+ * Copyright (c) 1999-2000, The University of Chicago
+ *
+ * This file may be freely redistributed without license or fee provided
+ * this copyright message remains intact.
+ ************************************************************************/
+
+#include <string.h>
+
+#if defined(_WIN32) || defined(__WIN32__)
+# if defined(_MSC_VER)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) extern a
+# else
+# define SWIGEXPORT(a) __declspec(dllexport) a
+# define SWIGIMPORT(a) extern a
+# endif
+# else
+# if defined(__BORLANDC__)
+# define SWIGEXPORT(a) a _export
+# define SWIGIMPORT(a) a _export
+# else
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
+# endif
+# endif
+#else
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
+#endif
+
+#ifdef SWIG_GLOBAL
+#define SWIGRUNTIME(a) SWIGEXPORT(a)
+#else
+#define SWIGRUNTIME(a) static a
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *(*swig_converter_func)(void *);
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
+
+typedef struct swig_type_info {
+ const char *name;
+ swig_converter_func converter;
+ const char *str;
+ void *clientdata;
+ swig_dycast_func dcast;
+ struct swig_type_info *next;
+ struct swig_type_info *prev;
+} swig_type_info;
+
+#ifdef SWIG_NOINCLUDE
+
+SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
+SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
+SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
+SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
+SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
+SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
+SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
+
+#else
+
+static swig_type_info *swig_type_list = 0;
+
+/* Register a type mapping with the type-checking */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeRegister(swig_type_info *ti)
+{
+ swig_type_info *tc, *head, *ret, *next;
+ /* Check to see if this type has already been registered */
+ tc = swig_type_list;
+ while (tc) {
+ if (strcmp(tc->name, ti->name) == 0) {
+ /* Already exists in the table. Just add additional types to the list */
+ if (tc->clientdata) ti->clientdata = tc->clientdata;
+ head = tc;
+ next = tc->next;
+ goto l1;
+ }
+ tc = tc->prev;
+ }
+ head = ti;
+ next = 0;
+
+ /* Place in list */
+ ti->prev = swig_type_list;
+ swig_type_list = ti;
+
+ /* Build linked lists */
+ l1:
+ ret = head;
+ tc = ti + 1;
+ /* Patch up the rest of the links */
+ while (tc->name) {
+ head->next = tc;
+ tc->prev = head;
+ head = tc;
+ tc++;
+ }
+ if (next) next->prev = head; /**/
+ head->next = next;
+ return ret;
+}
+
+/* Check the typename */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeCheck(char *c, swig_type_info *ty)
+{
+ swig_type_info *s;
+ if (!ty) return 0; /* Void pointer */
+ s = ty->next; /* First element always just a name */
+ do {
+ if (strcmp(s->name,c) == 0) {
+ if (s == ty->next) return s;
+ /* Move s to the top of the linked list */
+ s->prev->next = s->next;
+ if (s->next) {
+ s->next->prev = s->prev;
+ }
+ /* Insert s as second element in the list */
+ s->next = ty->next;
+ if (ty->next) ty->next->prev = s;
+ ty->next = s;
+ s->prev = ty; /**/
+ return s;
+ }
+ s = s->next;
+ } while (s && (s != ty->next));
+ return 0;
+}
+
+/* Cast a pointer up an inheritance hierarchy */
+SWIGRUNTIME(void *)
+SWIG_TypeCast(swig_type_info *ty, void *ptr)
+{
+ if ((!ty) || (!ty->converter)) return ptr;
+ return (*ty->converter)(ptr);
+}
+
+/* Dynamic pointer casting. Down an inheritance hierarchy */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
+{
+ swig_type_info *lastty = ty;
+ if (!ty || !ty->dcast) return ty;
+ while (ty && (ty->dcast)) {
+ ty = (*ty->dcast)(ptr);
+ if (ty) lastty = ty;
+ }
+ return lastty;
+}
+
+/* Return the name associated with this type */
+SWIGRUNTIME(const char *)
+SWIG_TypeName(const swig_type_info *ty) {
+ return ty->name;
+}
+
+/* Search for a swig_type_info structure */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeQuery(const char *name) {
+ swig_type_info *ty = swig_type_list;
+ while (ty) {
+ if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
+ if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
+ ty = ty->prev;
+ }
+ return 0;
+}
+
+/* Set the clientdata field for a type */
+SWIGRUNTIME(void)
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
+ swig_type_info *tc, *equiv;
+ if (ti->clientdata == clientdata) return;
+ ti->clientdata = clientdata;
+ equiv = ti->next;
+ while (equiv) {
+ if (!equiv->converter) {
+ tc = swig_type_list;
+ while (tc) {
+ if ((strcmp(tc->name, equiv->name) == 0))
+ SWIG_TypeClientData(tc,clientdata);
+ tc = tc->prev;
+ }
+ }
+ equiv = equiv->next;
+ }
+}
+#endif
+
+#ifdef __cplusplus
+}
+
+#endif
+
+/* -----------------------------------------------------------------------------
+ * perl5.swg
+ *
+ * Perl5 runtime library
+ * $Header: /cvs/core/sword/bindings/swig/perl/Sword.cxx,v 1.14 2003/07/17 21:38:30 dglassey Exp $
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGPERL
+#define SWIGPERL5
+#ifdef __cplusplus
+/* Needed on some windows machines---since MS plays funny
+ games with the header files under C++ */
+#include <math.h>
+#include <stdlib.h>
+extern "C" {
+#endif
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+/* Get rid of free and malloc defined by perl */
+#undef free
+#undef malloc
+
+#ifndef pTHX_
+#define pTHX_
+#endif
+
+#include <string.h>
+#ifdef __cplusplus
+}
+#endif
+
+/* Macro to call an XS function */
+
+#ifdef PERL_OBJECT
+#define SWIG_CALLXS(_name) _name(cv,pPerl)
+#else
+#ifndef MULTIPLICITY
+#define SWIG_CALLXS(_name) _name(cv)
+#else
+#define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
+#endif
+#endif
+
+/* Macros for low-level exception handling */
+#define SWIG_fail goto fail
+#define SWIG_croak(x) { if ((_swigerr = (const char *) x)) goto fail; }
+#define SWIG_MAX_ERRMSG 256
+
+/* Note: SwigMagicFuncHack is a typedef used to get the C++
+ compiler to just shut up already */
+
+#ifdef PERL_OBJECT
+#define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
+typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef int (CPerlObj::*SwigMagicFuncHack)(SV *, MAGIC *);
+#ifdef __cplusplus
+}
+#endif
+
+#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
+#define SWIGCLASS_STATIC
+#else
+#define MAGIC_PPERL
+#define SWIGCLASS_STATIC static
+#ifndef MULTIPLICITY
+#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
+typedef int (*SwigMagicFunc)(SV *, MAGIC *);
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef int (*SwigMagicFuncHack)(SV *, MAGIC *);
+#ifdef __cplusplus
+}
+#endif
+
+
+#else
+#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
+typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef int (*SwigMagicFuncHack)(struct interpreter *, SV *, MAGIC *);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+#endif
+
+#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
+#define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
+#endif
+
+/* Modifications for newer Perl 5.005 releases */
+
+#if !defined(PERL_REVISION) || ((PERL_REVISION >= 5) && ((PERL_VERSION < 5) || ((PERL_VERSION == 5) && (PERL_SUBVERSION < 50))))
+#ifndef PL_sv_yes
+#define PL_sv_yes sv_yes
+#endif
+#ifndef PL_sv_undef
+#define PL_sv_undef sv_undef
+#endif
+#ifndef PL_na
+#define PL_na na
+#endif
+#endif
+
+#include <stdlib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef SWIG_NOINCLUDE
+
+#ifndef PERL_OBJECT
+extern int SWIG_ConvertPtr(SV *, void **, swig_type_info *, int flags);
+extern void SWIG_MakePtr(SV *, void *, swig_type_info *, int flags);
+#else
+extern int _SWIG_ConvertPtr(CPerlObj *, SV *, void **, swig_type_info *,int flags);
+extern void _SWIG_MakePtr(CPerlObj *, SV *, void *, swig_type_info *, int flags);
+#define SWIG_ConvertPtr(a,b,c,d) _SWIG_ConvertPtr(pPerl,a,b,c,d)
+#define SWIG_MakePtr(a,b,c,d) _SWIG_MakePtr(pPerl,a,b,c,d)
+#endif
+
+#else
+
+/* Function for getting a pointer value */
+
+#ifndef PERL_OBJECT
+SWIGRUNTIME(int)
+SWIG_ConvertPtr(SV *sv, void **ptr, swig_type_info *_t, int flags)
+#else
+#define SWIG_ConvertPtr(a,b,c,d) _SWIG_ConvertPtr(pPerl,a,b,c,d)
+SWIGRUNTIME(int)
+_SWIG_ConvertPtr(CPerlObj *pPerl, SV *sv, void **ptr, swig_type_info *_t, int flags)
+#endif
+{
+ char *_c;
+ swig_type_info *tc;
+ IV tmp;
+
+ /* If magical, apply more magic */
+ if (SvGMAGICAL(sv))
+ mg_get(sv);
+
+ /* Check to see if this is an object */
+ if (sv_isobject(sv)) {
+ SV *tsv = (SV*) SvRV(sv);
+ if ((SvTYPE(tsv) == SVt_PVHV)) {
+ MAGIC *mg;
+ if (SvMAGICAL(tsv)) {
+ mg = mg_find(tsv,'P');
+ if (mg) {
+ SV *rsv = mg->mg_obj;
+ if (sv_isobject(rsv)) {
+ tmp = SvIV((SV*)SvRV(rsv));
+ }
+ }
+ } else {
+ return -1;
+ }
+ } else {
+ tmp = SvIV((SV*)SvRV(sv));
+ }
+ if (!_t) {
+ *(ptr) = (void *) tmp;
+ return 0;
+ }
+ } else if (! SvOK(sv)) { /* Check for undef */
+ *(ptr) = (void *) 0;
+ return 0;
+ } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
+ *(ptr) = (void *) 0;
+ if (!SvROK(sv))
+ return 0;
+ else
+ return -1;
+ } else { /* Don't know what it is */
+ *(ptr) = (void *) 0;
+ return -1;
+ }
+ if (_t) {
+ /* Now see if the types match */
+ _c = HvNAME(SvSTASH(SvRV(sv)));
+ tc = SWIG_TypeCheck(_c,_t);
+ if (!tc) {
+ *ptr = (void *) tmp;
+ return -1;
+ }
+ *ptr = SWIG_TypeCast(tc,(void *)tmp);
+ return 0;
+ }
+ *ptr = (void *) tmp;
+ return 0;
+}
+#ifndef PERL_OBJECT
+SWIGRUNTIME(void)
+SWIG_MakePtr(SV *sv, void *ptr, swig_type_info *t,int flags)
+#else
+#define SWIG_MakePtr(a,b,c,d) _SWIG_MakePtr(pPerl,a,b,c,d)
+SWIGRUNTIME(void)
+_SWIG_MakePtr(CPerlObj *pPerl, SV *sv, void *ptr, swig_type_info *t, int flags)
+#endif
+{
+ sv_setref_pv(sv, (char *) t->name, ptr);
+}
+
+#endif
+
+typedef XS(SwigPerlWrapper);
+typedef SwigPerlWrapper *SwigPerlWrapperPtr;
+
+/* Structure for command table */
+typedef struct {
+ const char *name;
+ SwigPerlWrapperPtr wrapper;
+} swig_command_info;
+
+/* Information for constant table */
+
+#define SWIG_INT 1
+#define SWIG_FLOAT 2
+#define SWIG_STRING 3
+#define SWIG_POINTER 4
+#define SWIG_BINARY 5
+
+/* Constant information structure */
+typedef struct swig_constant_info {
+ int type;
+ const char *name;
+ long lvalue;
+ double dvalue;
+ void *pvalue;
+ swig_type_info **ptype;
+} swig_constant_info;
+
+#ifdef __cplusplus
+}
+#endif
+
+/* Structure for variable table */
+typedef struct {
+ const char *name;
+ SwigMagicFunc set;
+ SwigMagicFunc get;
+ swig_type_info **type;
+} swig_variable_info;
+
+/* Magic variable code */
+#ifndef PERL_OBJECT
+#define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
+ #ifndef MULTIPLICITY
+ static void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int \
+(*get)(SV *,MAGIC *)) {
+ #else
+ static void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*,\
+ SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) {
+ #endif
+#else
+#define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
+static void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) {
+#endif
+ MAGIC *mg;
+ sv_magic(sv,sv,'U',(char *) name,strlen(name));
+ mg = mg_find(sv,'U');
+ mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
+ mg->mg_virtual->svt_get = (SwigMagicFuncHack) get;
+ mg->mg_virtual->svt_set = (SwigMagicFuncHack) set;
+ mg->mg_virtual->svt_len = 0;
+ mg->mg_virtual->svt_clear = 0;
+ mg->mg_virtual->svt_free = 0;
+}
+
+
+
+
+
+
+#ifdef do_open
+ #undef do_open
+#endif
+#ifdef do_close
+ #undef do_close
+#endif
+#ifdef scalar
+ #undef scalar
+#endif
+#ifdef list
+ #undef list
+#endif
+#ifdef apply
+ #undef apply
+#endif
+#ifdef convert
+ #undef convert
+#endif
+#ifdef Error
+ #undef Error
+#endif
+#ifdef form
+ #undef form
+#endif
+#ifdef vform
+ #undef vform
+#endif
+#ifdef LABEL
+ #undef LABEL
+#endif
+#ifdef METHOD
+ #undef METHOD
+#endif
+#ifdef Move
+ #undef Move
+#endif
+#ifdef yylex
+ #undef yylex
+#endif
+#ifdef yyparse
+ #undef yyparse
+#endif
+#ifdef yyerror
+ #undef yyerror
+#endif
+#ifdef invert
+ #undef invert
+#endif
+#ifdef ref
+ #undef ref
+#endif
+
+
+/* -------- TYPES TABLE (BEGIN) -------- */
+
+#define SWIGTYPE_p_SWLocale swig_types[0]
+#define SWIGTYPE_p_SWMgr swig_types[1]
+#define SWIGTYPE_p_SWCom swig_types[2]
+#define SWIGTYPE_p_RawLD4 swig_types[3]
+#define SWIGTYPE_p_ListKey swig_types[4]
+#define SWIGTYPE_p_SWKey swig_types[5]
+#define SWIGTYPE_p_ConfigEntMap swig_types[6]
+#define SWIGTYPE_p_p_char swig_types[7]
+#define SWIGTYPE_p_RawLD swig_types[8]
+#define SWIGTYPE_p_char swig_types[9]
+#define SWIGTYPE_p_TreeKey swig_types[10]
+#define SWIGTYPE_p_StringList swig_types[11]
+#define SWIGTYPE_p_bool swig_types[12]
+#define SWIGTYPE_p_SWFilterMgr swig_types[13]
+#define SWIGTYPE_p_SWLD swig_types[14]
+#define SWIGTYPE_p_SWTextDirection swig_types[15]
+#define SWIGTYPE_p_RawText swig_types[16]
+#define SWIGTYPE_p_f_char_p_void__void swig_types[17]
+#define SWIGTYPE_p_VerseKey swig_types[18]
+#define SWIGTYPE_p_SWBuf swig_types[19]
+#define SWIGTYPE_p_ModMap swig_types[20]
+#define SWIGTYPE_p_zCom swig_types[21]
+#define SWIGTYPE_p_SectionMap swig_types[22]
+#define SWIGTYPE_p_SWDisplay swig_types[23]
+#define SWIGTYPE_p_AttributeTypeList swig_types[24]
+#define SWIGTYPE_p_SWText swig_types[25]
+#define SWIGTYPE_p_std__listTSWBuf_t swig_types[26]
+#define SWIGTYPE_p_TreeKeyIdx swig_types[27]
+#define SWIGTYPE_p_SWCompress swig_types[28]
+#define SWIGTYPE_p_LZSSCompress swig_types[29]
+#define SWIGTYPE_p_ZipCompress swig_types[30]
+#define SWIGTYPE_p_SW_POSITION swig_types[31]
+#define SWIGTYPE_p_SWModule swig_types[32]
+#define SWIGTYPE_p_zLD swig_types[33]
+#define SWIGTYPE_p_SWGenBook swig_types[34]
+#define SWIGTYPE_p_RawCom swig_types[35]
+#define SWIGTYPE_p_RawGenBook swig_types[36]
+#define SWIGTYPE_p_SWConfig swig_types[37]
+#define SWIGTYPE_p_LocaleMgr swig_types[38]
+#define SWIGTYPE_p_int swig_types[39]
+#define SWIGTYPE_p_SWTextMarkup swig_types[40]
+#define SWIGTYPE_p_zText swig_types[41]
+#define SWIGTYPE_p_SWTextEncoding swig_types[42]
+#define SWIGTYPE_p_unsigned_long swig_types[43]
+static swig_type_info *swig_types[45];
+
+/* -------- TYPES TABLE (END) -------- */
+
+#define SWIG_init boot_Sword
+
+#define SWIG_name "Swordc::boot_Sword"
+#define SWIG_prefix "Swordc::"
+
+#ifdef __cplusplus
+extern "C"
+#endif
+#ifndef PERL_OBJECT
+#ifndef MULTIPLICITY
+SWIGEXPORT(void) SWIG_init (CV* cv);
+#else
+SWIGEXPORT(void) SWIG_init (pTHXo_ CV* cv);
+#endif
+#else
+SWIGEXPORT(void) SWIG_init (CV *cv, CPerlObj *);
+#endif
+
+
+#undef bool
+#undef assert
+#undef LOCAL
+#undef list
+
+
+#include <stdio.h>
+#include <string>
+//#include <map>
+#include <defs.h>
+//#include <multimapwdef.h>
+#include "swconfig.h"
+
+using namespace sword;
+using namespace std;
+
+
+#define SWIG_MemoryError 1
+#define SWIG_IOError 2
+#define SWIG_RuntimeError 3
+#define SWIG_IndexError 4
+#define SWIG_TypeError 5
+#define SWIG_DivisionByZero 6
+#define SWIG_OverflowError 7
+#define SWIG_SyntaxError 8
+#define SWIG_ValueError 9
+#define SWIG_SystemError 10
+#define SWIG_UnknownError 99
+
+
+#define SWIG_exception(a,b) SWIG_croak(b)
+
+
+#include <vector>
+#include <algorithm>
+#include <stdexcept>
+
+
+#include <string>
+
+void SWConfig_set(SWConfig *self,char const *group,char const *entry,char const *value){
+ self->Sections[group][entry] = value;
+ }
+char const *SWConfig_get(SWConfig *self,char const *group,char const *entry){
+ return self->Sections[group][entry].c_str();
+ }
+
+#include <swmgr.h>
+using namespace sword;
+
+int const SWMgr_moduleCount(SWMgr *self){
+ return self->Modules.size();
+ }
+SWModule *SWMgr_getModuleAt(SWMgr *self,int const pos){
+ if (pos < 0 || pos > self->Modules.size() )
+ return 0;
+
+ ModMap::iterator it = self->Modules.begin();
+
+ for (int i = 0; i < pos; ++i) {
+ it++;
+ }
+
+ if ( it != self->Modules.end() ) {
+ return (*it).second;
+ }
+
+ return 0;
+ }
+
+#include "swmodule.h"
+using namespace sword;
+
+bool const SWModule_next(SWModule *self){
+ (*self)++;
+ return !self->Error();
+ }
+bool const SWModule_prev(SWModule *self){
+ (*self)--;
+ return !self->Error();
+ }
+bool const SWModule_inc(SWModule *self,int const howFar){
+ (*self)+=howFar;
+ return !self->Error();
+ }
+bool const SWModule_dec(SWModule *self,int const howFar){
+ (*self)-=howFar;
+ return !self->Error();
+ }
+void SWModule_setPosition(SWModule *self,SW_POSITION pos){
+ (*self) = pos;
+ }
+void SWModule_top(SWModule *self){
+ (*self) = TOP;
+ }
+void SWModule_bottom(SWModule *self){
+ (*self) = BOTTOM;
+ }
+char const *SWModule_text(SWModule *self){
+ return (const char*)*self;
+ }
+char const *SWModule_StripText(SWModule *self){
+ return self->StripText();
+ }
+void SWModule_write(SWModule *self,char const *text){
+ (*self) << text;
+ }
+void SWModule_writeLink(SWModule *self,SWKey const *key){
+ (*self) << key;
+ }
+
+#include "swkey.h"
+#include "versekey.h"
+using namespace sword;
+
+void SWKey_setPersist(SWKey *self,signed char persists){
+ self->Persist(persists);
+ }
+void SWKey_next(SWKey *self){
+ (*self)++;
+ }
+void SWKey_prev(SWKey *self){
+ (*self)++;
+ }
+void SWKey_setKey(SWKey *self,SWKey const *key){
+ self->copyFrom(*key);
+ }
+VerseKey *SWKey_toVerseKey(SWKey *self){
+ return dynamic_cast<VerseKey*>(self);
+ }
+
+#include "versekey.h"
+#include "listkey.h"
+using namespace sword;
+
+int const VerseKey_bookCount(VerseKey *self,int const testament){
+ if ( (testament < 1) || (testament > 2) ) {
+ return 0;
+ };
+ return self->BMAX[testament-1];
+ }
+char const *VerseKey_bookName(VerseKey *self,int const testament,int const book){
+ if ( (testament < 1) || (testament > 2) ) {
+ return "";
+ };
+ if ( (book < 1) || (book > self->BMAX[testament-1]) ) {
+ return "";
+ }
+
+ return self->books[testament-1][book-1].name;
+ }
+int const VerseKey_chapterCount(VerseKey *self,int const testament,int const book){
+ if ( (testament < 1) || (testament > 2) ) {
+ return 0;
+ };
+ if ( (book < 1) || (book > self->BMAX[testament-1]) ) {
+ return 0;
+ }
+
+ return self->books[testament-1][book-1].chapmax;
+ }
+int const VerseKey_verseCount(VerseKey *self,int const testament,int const book,int const chapter){
+ if ( (testament < 1) || (testament > 2) ) {
+ return 0;
+ };
+ if ( (book < 1) || (book > self->BMAX[testament-1]) ) {
+ return 0;
+ }
+ if ( (chapter < 1) || (chapter > self->books[testament-1][book-1].chapmax) ) {
+ return 0;
+ }
+
+ return self->books[testament-1][book-1].versemax[chapter-1];
+
+ }
+
+#include "listkey.h"
+using namespace sword;
+
+char ListKey_SetToElement(ListKey *self,int element){
+ return self->SetToElement(element, SW_POSITION(((char)1)));
+ }
+
+#include "treekey.h"
+using namespace sword;
+
+
+#include "treekeyidx.h"
+using namespace sword;
+
+
+#include <localemgr.h>
+
+using namespace std;
+using namespace sword;
+
+LocaleMgr *const LocaleMgr_getSystemLocaleMgr(){
+ return &(LocaleMgr::systemLocaleMgr);
+ }
+
+#include <swfiltermgr.h>
+using namespace sword;
+
+
+#include "swtext.h"
+using namespace sword;
+
+
+#include "rawtext.h"
+using namespace sword;
+
+
+#include "ztext.h"
+using namespace sword;
+
+
+#include "swcom.h"
+using namespace sword;
+
+
+#include "rawcom.h"
+using namespace sword;
+
+
+#include "zcom.h"
+using namespace sword;
+
+
+#include "swgenbook.h"
+using namespace sword;
+
+
+#include "rawgenbook.h"
+#include "treekeyidx.h"
+#include "swkey.h"
+using namespace sword;
+
+TreeKeyIdx *RawGenBook_getTreeKey(RawGenBook *self){
+ return ( (TreeKeyIdx *) ( (SWKey *) (*self) ) );
+ }
+
+#include "swld.h"
+using namespace sword;
+
+
+#include "rawld.h"
+using namespace sword;
+
+
+#include "rawld4.h"
+using namespace sword;
+
+
+#include "zld.h"
+using namespace sword;
+
+
+#include <swcomprs.h>
+using namespace sword;
+
+
+#include <lzsscomprs.h>
+using namespace sword;
+
+
+#include <zipcomprs.h>
+using namespace sword;
+
+
+#include "swbuf.h"
+using namespace sword;
+
+#ifdef PERL_OBJECT
+#define MAGIC_CLASS _wrap_Sword_var::
+class _wrap_Sword_var : public CPerlObj {
+public:
+#else
+#define MAGIC_CLASS
+#endif
+SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *sv, MAGIC *mg) {
+ MAGIC_PPERL
+ sv = sv; mg = mg;
+ croak("Value is read-only.");
+ return 0;
+}
+
+
+#ifdef PERL_OBJECT
+};
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+XS(_wrap_SWConfig_filename_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ SWBuf *arg2 = (SWBuf *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWConfig_filename_set(self,filename);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_filename_set. Expected _p_SWConfig");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWConfig_filename_set. Expected _p_SWBuf");
+ }
+ }
+ if (arg1) (arg1)->filename = *arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_filename_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ SWBuf *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWConfig_filename_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_filename_get. Expected _p_SWConfig");
+ }
+ }
+ result = (SWBuf *)& ((arg1)->filename);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWBuf,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_Sections_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ SectionMap arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWConfig_Sections_set(self,Sections);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_Sections_set. Expected _p_SWConfig");
+ }
+ }
+ {
+ SectionMap * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SectionMap,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWConfig_Sections_set. Expected _p_SectionMap");
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Sections = arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_Sections_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ SectionMap result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWConfig_Sections_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_Sections_get. Expected _p_SWConfig");
+ }
+ }
+ result = ((arg1)->Sections);
+
+ {
+ SectionMap * resultobj = new SectionMap((SectionMap &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_SectionMap,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWConfig) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_SWConfig(ifilename);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (SWConfig *)new SWConfig((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWConfig,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWConfig) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWConfig(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWConfig. Expected _p_SWConfig");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_Load) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWConfig_Load(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_Load. Expected _p_SWConfig");
+ }
+ }
+ (arg1)->Load();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_Save) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWConfig_Save(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_Save. Expected _p_SWConfig");
+ }
+ }
+ (arg1)->Save();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *arg4 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 4) || (items > 4)) {
+ SWIG_croak("Usage: SWConfig_set(self,group,entry,value);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_set. Expected _p_SWConfig");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ if (!SvOK((SV*) ST(3))) arg4 = 0;
+ else arg4 = (char *) SvPV(ST(3), PL_na);
+ SWConfig_set(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWConfig_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWConfig_get(self,group,entry);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWConfig_get. Expected _p_SWConfig");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ result = (char *)SWConfig_get(arg1,(char const *)arg2,(char const *)arg3);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_findConfig) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char **arg2 = (char **) 0 ;
+ char **arg3 = (char **) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWMgr_findConfig(configType,prefixPath,configPath);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_p_char,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWMgr_findConfig. Expected _p_p_char");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_p_char,0) < 0) {
+ SWIG_croak("Type error in argument 3 of SWMgr_findConfig. Expected _p_p_char");
+ }
+ }
+ SWMgr::findConfig(arg1,arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_config_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ SWConfig *arg2 = (SWConfig *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_config_set(self,config);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_config_set. Expected _p_SWMgr");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWMgr_config_set. Expected _p_SWConfig");
+ }
+ }
+ if (arg1) (arg1)->config = arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_config_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_config_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_config_get. Expected _p_SWMgr");
+ }
+ }
+ result = (SWConfig *) ((arg1)->config);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWConfig,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_sysconfig_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ SWConfig *arg2 = (SWConfig *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_sysconfig_set(self,sysconfig);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_sysconfig_set. Expected _p_SWMgr");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWMgr_sysconfig_set. Expected _p_SWConfig");
+ }
+ }
+ if (arg1) (arg1)->sysconfig = arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_sysconfig_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_sysconfig_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_sysconfig_get. Expected _p_SWMgr");
+ }
+ }
+ result = (SWConfig *) ((arg1)->sysconfig);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWConfig,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_Modules_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ ModMap arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_Modules_set(self,Modules);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_Modules_set. Expected _p_SWMgr");
+ }
+ }
+ {
+ ModMap * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_ModMap,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWMgr_Modules_set. Expected _p_ModMap");
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Modules = arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_Modules_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ ModMap result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_Modules_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_Modules_get. Expected _p_SWMgr");
+ }
+ }
+ result = ((arg1)->Modules);
+
+ {
+ ModMap * resultobj = new ModMap((ModMap &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_ModMap,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_prefixPath_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_prefixPath_set(self,prefixPath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_prefixPath_set. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ {
+ if (arg1->prefixPath) delete [] arg1->prefixPath;
+ if (arg2) {
+ arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->prefixPath,arg2);
+ }else {
+ arg1->prefixPath = 0;
+ }
+ }
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_prefixPath_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_prefixPath_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_prefixPath_get. Expected _p_SWMgr");
+ }
+ }
+ result = (char *) ((arg1)->prefixPath);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_configPath_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_configPath_set(self,configPath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_configPath_set. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ {
+ if (arg1->configPath) delete [] arg1->configPath;
+ if (arg2) {
+ arg1->configPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->configPath,arg2);
+ }else {
+ arg1->configPath = 0;
+ }
+ }
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_configPath_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_configPath_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_configPath_get. Expected _p_SWMgr");
+ }
+ }
+ result = (char *) ((arg1)->configPath);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWMgr__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWConfig *arg1 = (SWConfig *) 0 ;
+ SWConfig *arg2 = (SWConfig *) 0 ;
+ bool arg3 = (bool) true ;
+ SWFilterMgr *arg4 = (SWFilterMgr *) 0 ;
+ SWMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 4)) {
+ SWIG_croak("Usage: new_SWMgr(iconfig,isysconfig,autoload,filterMgr);");
+ }
+ if (items > 0) {
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_SWMgr. Expected _p_SWConfig");
+ }
+ }
+ }
+ if (items > 1) {
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ SWIG_croak("Type error in argument 2 of new_SWMgr. Expected _p_SWConfig");
+ }
+ }
+ }
+ if (items > 2) {
+ arg3 = (bool) SvIV(ST(2));
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWFilterMgr,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_SWMgr. Expected _p_SWFilterMgr");
+ }
+ }
+ }
+ result = (SWMgr *)new SWMgr(arg1,arg2,arg3,arg4);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWMgr,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWMgr__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ bool arg2 = (bool) true ;
+ SWFilterMgr *arg3 = (SWFilterMgr *) 0 ;
+ SWMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 3)) {
+ SWIG_croak("Usage: new_SWMgr(iConfigPath,autoload,filterMgr);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ arg2 = (bool) SvIV(ST(1));
+ }
+ if (items > 2) {
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_SWFilterMgr,0) < 0) {
+ SWIG_croak("Type error in argument 3 of new_SWMgr. Expected _p_SWFilterMgr");
+ }
+ }
+ }
+ result = (SWMgr *)new SWMgr((char const *)arg1,arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWMgr,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWMgr) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 4)) {
+ int _v;
+ if (items <= 0) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_0); return;
+ }
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWConfig, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ if (items <= 1) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_0); return;
+ }
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(1), (void **) &tmp, SWIGTYPE_p_SWConfig, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ if (items <= 2) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_0); return;
+ }
+ {
+ _v = SvIOK(ST(2)) ? 1 : 0;
+ }
+ if (_v) {
+ if (items <= 3) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_0); return;
+ }
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(3), (void **) &tmp, SWIGTYPE_p_SWFilterMgr, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_0); return;
+ }
+ }
+ }
+ }
+ }
+ if ((items >= 1) && (items <= 3)) {
+ int _v;
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ if (items <= 1) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_1); return;
+ }
+ {
+ _v = SvIOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ if (items <= 2) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_1); return;
+ }
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(2), (void **) &tmp, SWIGTYPE_p_SWFilterMgr, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWMgr__SWIG_1); return;
+ }
+ }
+ }
+ }
+
+ croak("No matching function for overloaded 'new_SWMgr'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_delete_SWMgr) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWMgr(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWMgr. Expected _p_SWMgr");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_Load) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_Load(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_Load. Expected _p_SWMgr");
+ }
+ }
+ result = (signed char)(arg1)->Load();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_setGlobalOption) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ char *arg3 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWMgr_setGlobalOption(self,option,value);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_setGlobalOption. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ (arg1)->setGlobalOption((char const *)arg2,(char const *)arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOption) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_getGlobalOption(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getGlobalOption. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (char *)(arg1)->getGlobalOption((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptionTip) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_getGlobalOptionTip(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getGlobalOptionTip. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (char *)(arg1)->getGlobalOptionTip((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptions) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ StringList result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_getGlobalOptions(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getGlobalOptions. Expected _p_SWMgr");
+ }
+ }
+ result = (arg1)->getGlobalOptions();
+
+ {
+ StringList * resultobj = new StringList((StringList &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_StringList,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptionValues) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ StringList result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_getGlobalOptionValues(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getGlobalOptionValues. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (arg1)->getGlobalOptionValues((char const *)arg2);
+
+ {
+ StringList * resultobj = new StringList((StringList &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_StringList,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_setCipherKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ char *arg3 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWMgr_setCipherKey(self,modName,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_setCipherKey. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ result = (signed char)(arg1)->setCipherKey((char const *)arg2,(char const *)arg3);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ SWModule *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_getModule(self,modName);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getModule. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (SWModule *)(arg1)->getModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWModule,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_InstallScan) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_InstallScan(self,dir);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_InstallScan. Expected _p_SWMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->InstallScan((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_moduleCount) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWMgr_moduleCount(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_moduleCount. Expected _p_SWMgr");
+ }
+ }
+ result = (int)SWMgr_moduleCount(arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWMgr_getModuleAt) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWMgr *arg1 = (SWMgr *) 0 ;
+ int arg2 ;
+ SWModule *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWMgr_getModuleAt(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWMgr_getModuleAt. Expected _p_SWMgr");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (SWModule *)SWMgr_getModuleAt(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWModule,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_terminateSearch_set) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_terminateSearch_set(self,terminateSearch);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_terminateSearch_set. Expected _p_SWModule");
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ if (arg1) (arg1)->terminateSearch = arg2;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_terminateSearch_get) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_terminateSearch_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_terminateSearch_get. Expected _p_SWModule");
+ }
+ }
+ result = (bool) ((arg1)->terminateSearch);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ SWDisplay *arg3 = (SWDisplay *) 0 ;
+ char *arg4 = (char *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ SWModule *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 8)) {
+ SWIG_croak("Usage: new_SWModule(imodname,imoddesc,idisp,imodtype,encoding,dir,markup,modlang);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 3 of new_SWModule. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 3) {
+ if (!SvOK((SV*) ST(3))) arg4 = 0;
+ else arg4 = (char *) SvPV(ST(3), PL_na);
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_SWModule. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_SWModule. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_SWModule. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (SWModule *)new SWModule((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWModule,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Error) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_Error(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Error. Expected _p_SWModule");
+ }
+ }
+ result = (char)(arg1)->Error();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_isUnicode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_isUnicode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_isUnicode. Expected _p_SWModule");
+ }
+ }
+ result = (bool)((SWModule const *)arg1)->isUnicode();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_getConfig) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ ConfigEntMap *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_getConfig(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_getConfig. Expected _p_SWModule");
+ }
+ }
+ {
+ ConfigEntMap const &_result_ref = ((SWModule const *)arg1)->getConfig();
+ result = (ConfigEntMap *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ConfigEntMap,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_getConfigEntry) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_getConfigEntry(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_getConfigEntry. Expected _p_SWModule");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (char *)((SWModule const *)arg1)->getConfigEntry((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_SetKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ SWKey *arg2 = (SWKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_SetKey(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_SetKey. Expected _p_SWModule");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWModule_SetKey. Expected _p_SWKey");
+ }
+ }
+ result = (char)(arg1)->SetKey((SWKey const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Key) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_Key(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Key. Expected _p_SWModule");
+ }
+ }
+ {
+ SWKey &_result_ref = ((SWModule const *)arg1)->Key();
+ result = (SWKey *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_CreateKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_CreateKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_CreateKey. Expected _p_SWModule");
+ }
+ }
+ result = (SWKey *)(arg1)->CreateKey();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_KeyText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_KeyText(self,imodtype);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_KeyText. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ result = (char *)(arg1)->KeyText((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Display) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_Display(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Display. Expected _p_SWModule");
+ }
+ }
+ result = (char)(arg1)->Display();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_nullPercent) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char arg1 ;
+ void *arg2 = (void *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_nullPercent(percent,userData);");
+ }
+ arg1 = (char) *SvPV(ST(0),PL_na);
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, 0,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWModule_nullPercent. Expected _p_void");
+ }
+ }
+ SWModule::nullPercent(arg1,arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Search) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 ;
+ int arg3 = (int) 0 ;
+ int arg4 = (int) 0 ;
+ SWKey *arg5 = (SWKey *) 0 ;
+ bool *arg6 = (bool *) 0 ;
+ void (*arg7)(char,void *) = (void (*)(char,void *)) &SWModule::nullPercent ;
+ void *arg8 = (void *) 0 ;
+ ListKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 8)) {
+ SWIG_croak("Usage: SWModule_Search(self,istr,searchType,flags,scope,justCheckIfSupported,percent,percentUserData);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Search. Expected _p_SWModule");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (items > 2) {
+ arg3 = (int) SvIV(ST(2));
+ }
+ if (items > 3) {
+ arg4 = (int) SvIV(ST(3));
+ }
+ if (items > 4) {
+ {
+ if (SWIG_ConvertPtr(ST(4), (void **) &arg5, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 5 of SWModule_Search. Expected _p_SWKey");
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_bool,0) < 0) {
+ SWIG_croak("Type error in argument 6 of SWModule_Search. Expected _p_bool");
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ if (SWIG_ConvertPtr(ST(6), (void **) &arg7, SWIGTYPE_p_f_char_p_void__void,0) < 0) {
+ SWIG_croak("Type error in argument 7 of SWModule_Search. Expected _p_f_char_p_void__void");
+ }
+ }
+ }
+ if (items > 7) {
+ {
+ if (SWIG_ConvertPtr(ST(7), (void **) &arg8, 0,0) < 0) {
+ SWIG_croak("Type error in argument 8 of SWModule_Search. Expected _p_void");
+ }
+ }
+ }
+ {
+ ListKey &_result_ref = (arg1)->Search((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+ result = (ListKey *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ListKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_createSearchFramework) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_createSearchFramework(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_createSearchFramework. Expected _p_SWModule");
+ }
+ }
+ result = (signed char)(arg1)->createSearchFramework();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_hasSearchFramework) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_hasSearchFramework(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_hasSearchFramework. Expected _p_SWModule");
+ }
+ }
+ result = (bool)(arg1)->hasSearchFramework();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_isSearchOptimallySupported) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 ;
+ int arg3 ;
+ int arg4 ;
+ SWKey *arg5 = (SWKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 5) || (items > 5)) {
+ SWIG_croak("Usage: SWModule_isSearchOptimallySupported(self,istr,searchType,flags,scope);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_isSearchOptimallySupported. Expected _p_SWModule");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ arg3 = (int) SvIV(ST(2));
+ arg4 = (int) SvIV(ST(3));
+ {
+ if (SWIG_ConvertPtr(ST(4), (void **) &arg5, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 5 of SWModule_isSearchOptimallySupported. Expected _p_SWKey");
+ }
+ }
+ result = (bool)(arg1)->isSearchOptimallySupported((char const *)arg2,arg3,arg4,arg5);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_next) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_next(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_next. Expected _p_SWModule");
+ }
+ }
+ result = (bool)SWModule_next(arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_prev) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_prev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_prev. Expected _p_SWModule");
+ }
+ }
+ result = (bool)SWModule_prev(arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_inc) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int arg2 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_inc(self,howFar);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_inc. Expected _p_SWModule");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (bool)SWModule_inc(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_dec) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int arg2 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_dec(self,howFar);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_dec. Expected _p_SWModule");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (bool)SWModule_dec(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_setPosition) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_setPosition(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_setPosition. Expected _p_SWModule");
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWModule_setPosition. Expected _p_SW_POSITION");
+ }
+ arg2 = *argp;
+ }
+ SWModule_setPosition(arg1,arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_top) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_top(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_top. Expected _p_SWModule");
+ }
+ }
+ SWModule_top(arg1);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_bottom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_bottom(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_bottom. Expected _p_SWModule");
+ }
+ }
+ SWModule_bottom(arg1);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_text) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_text(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_text. Expected _p_SWModule");
+ }
+ }
+ result = (char *)SWModule_text(arg1);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_StripText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_StripText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_StripText. Expected _p_SWModule");
+ }
+ }
+ result = (char *)SWModule_StripText(arg1);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_getRawEntry) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_getRawEntry(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_getRawEntry. Expected _p_SWModule");
+ }
+ }
+ result = (char *)(arg1)->getRawEntry();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_setSkipConsecutiveLinks) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_setSkipConsecutiveLinks(self,val);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_setSkipConsecutiveLinks. Expected _p_SWModule");
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ (arg1)->setSkipConsecutiveLinks(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_getSkipConsecutiveLinks) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_getSkipConsecutiveLinks(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_getSkipConsecutiveLinks. Expected _p_SWModule");
+ }
+ }
+ result = (bool)(arg1)->getSkipConsecutiveLinks();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_getEntryAttributes) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ AttributeTypeList *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_getEntryAttributes(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_getEntryAttributes. Expected _p_SWModule");
+ }
+ }
+ {
+ AttributeTypeList &_result_ref = ((SWModule const *)arg1)->getEntryAttributes();
+ result = (AttributeTypeList *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_AttributeTypeList,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_processEntryAttributes) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_processEntryAttributes(self,val);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_processEntryAttributes. Expected _p_SWModule");
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ ((SWModule const *)arg1)->processEntryAttributes(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_isProcessEntryAttributes) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_isProcessEntryAttributes(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_isProcessEntryAttributes. Expected _p_SWModule");
+ }
+ }
+ result = (bool)((SWModule const *)arg1)->isProcessEntryAttributes();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Name) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Name(self,imodname);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Name. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ result = (char *)(arg1)->Name((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Description) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Description(self,imoddesc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Description. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ result = (char *)(arg1)->Description((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Type) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Type(self,imodtype);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Type. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ result = (char *)(arg1)->Type((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Direction) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ signed char arg2 = (signed char) -1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Direction(self,newdir);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Direction. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (char)(arg1)->Direction(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Encoding) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ signed char arg2 = (signed char) -1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Encoding(self,enc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Encoding. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (char)(arg1)->Encoding(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Markup) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ signed char arg2 = (signed char) -1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Markup(self,enc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Markup. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (char)(arg1)->Markup(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_Lang) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_Lang(self,imodlang);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_Lang. Expected _p_SWModule");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ result = (char *)(arg1)->Lang((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_isWritable) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_isWritable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_isWritable. Expected _p_SWModule");
+ }
+ }
+ result = (bool)(arg1)->isWritable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_createModule(char const *);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (signed char)SWModule::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_setEntry) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 ;
+ long arg3 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWModule_setEntry(self,inbuf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_setEntry. Expected _p_SWModule");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ arg3 = (long) SvIV(ST(2));
+ (arg1)->setEntry((char const *)arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_deleteEntry) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWModule_deleteEntry(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_deleteEntry. Expected _p_SWModule");
+ }
+ }
+ (arg1)->deleteEntry();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_write) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_write(self,text);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_write. Expected _p_SWModule");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ SWModule_write(arg1,(char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWModule_writeLink) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ SWKey *arg2 = (SWKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWModule_writeLink(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWModule_writeLink. Expected _p_SWModule");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWModule_writeLink. Expected _p_SWKey");
+ }
+ }
+ SWModule_writeLink(arg1,(SWKey const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWModule *arg1 = (SWModule *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWModule(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWModule. Expected _p_SWModule");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SW_POSITION) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char arg1 ;
+ SW_POSITION *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_SW_POSITION(ipos);");
+ }
+ arg1 = (char) *SvPV(ST(0),PL_na);
+ result = (SW_POSITION *)new SW_POSITION(arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SW_POSITION,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SW_POSITION) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SW_POSITION *arg1 = (SW_POSITION *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SW_POSITION(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SW_POSITION. Expected _p_SW_POSITION");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWKey__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ SWIG_croak("Usage: new_SWKey(ikey);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ result = (SWKey *)new SWKey((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWKey__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_SWKey(k);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_SWKey. Expected _p_SWKey");
+ }
+ }
+ result = (SWKey *)new SWKey((SWKey const &)*arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWKey) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 1)) {
+ int _v;
+ if (items <= 0) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWKey__SWIG_0); return;
+ }
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWKey__SWIG_0); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWKey__SWIG_1); return;
+ }
+ }
+
+ croak("No matching function for overloaded 'new_SWKey'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_SWKey_clone) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_clone. Expected _p_SWKey");
+ }
+ }
+ result = (SWKey *)((SWKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWKey. Expected _p_SWKey");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_Persist) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_Persist(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_Persist. Expected _p_SWKey");
+ }
+ }
+ result = (char)((SWKey const *)arg1)->Persist();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_setPersist) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ signed char arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_setPersist(self,persists);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_setPersist. Expected _p_SWKey");
+ }
+ }
+ arg2 = (signed char) SvIV(ST(1));
+ SWKey_setPersist(arg1,arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_Error) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_Error(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_Error. Expected _p_SWKey");
+ }
+ }
+ result = (char)(arg1)->Error();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_setText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_setText(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_setText. Expected _p_SWKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setText((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_getText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_getText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_getText. Expected _p_SWKey");
+ }
+ }
+ result = (char *)((SWKey const *)arg1)->getText();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_getShortText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_getShortText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_getShortText. Expected _p_SWKey");
+ }
+ }
+ result = (char *)((SWKey const *)arg1)->getShortText();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_compare) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ SWKey *arg2 = 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_compare. Expected _p_SWKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWKey_compare. Expected _p_SWKey");
+ }
+ }
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_equals) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ SWKey *arg2 = 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_equals(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_equals. Expected _p_SWKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWKey_equals. Expected _p_SWKey");
+ }
+ }
+ result = (bool)(arg1)->equals((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_decrement) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ int arg2 = (int) 1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_decrement(self,steps);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_decrement. Expected _p_SWKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (int) SvIV(ST(1));
+ }
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_increment) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ int arg2 = (int) 1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_increment(self,steps);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_increment. Expected _p_SWKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (int) SvIV(ST(1));
+ }
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_Traversable) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_Traversable. Expected _p_SWKey");
+ }
+ }
+ result = (char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_Index) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_Index. Expected _p_SWKey");
+ }
+ }
+ result = (long)((SWKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_next) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_next(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_next. Expected _p_SWKey");
+ }
+ }
+ SWKey_next(arg1);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_prev) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_prev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_prev. Expected _p_SWKey");
+ }
+ }
+ SWKey_prev(arg1);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_setKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ SWKey *arg2 = (SWKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWKey_setKey(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_setKey. Expected _p_SWKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWKey_setKey. Expected _p_SWKey");
+ }
+ }
+ SWKey_setKey(arg1,(SWKey const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWKey_toVerseKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWKey_toVerseKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWKey_toVerseKey. Expected _p_SWKey");
+ }
+ }
+ result = (VerseKey *)SWKey_toVerseKey(arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_VerseKey__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ SWIG_croak("Usage: new_VerseKey(ikey);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ result = (VerseKey *)new VerseKey((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_VerseKey__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWKey *arg1 = (SWKey *) 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_VerseKey(ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_VerseKey. Expected _p_SWKey");
+ }
+ }
+ result = (VerseKey *)new VerseKey((SWKey const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_VerseKey__SWIG_2) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: new_VerseKey(min,max);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (VerseKey *)new VerseKey((char const *)arg1,(char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_VerseKey__SWIG_3) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_VerseKey(k);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_VerseKey. Expected _p_VerseKey");
+ }
+ }
+ result = (VerseKey *)new VerseKey((VerseKey const &)*arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_VerseKey) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 1)) {
+ int _v;
+ if (items <= 0) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_VerseKey__SWIG_0); return;
+ }
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_VerseKey__SWIG_0); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_VerseKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_VerseKey__SWIG_3); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_VerseKey__SWIG_1); return;
+ }
+ }
+ if (items == 2) {
+ int _v;
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ {
+ _v = SvPOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_VerseKey__SWIG_2); return;
+ }
+ }
+ }
+
+ croak("No matching function for overloaded 'new_VerseKey'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_delete_VerseKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_VerseKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_VerseKey. Expected _p_VerseKey");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_clone) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_clone. Expected _p_VerseKey");
+ }
+ }
+ result = (SWKey *)((VerseKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_LowerBound) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_LowerBound(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_LowerBound. Expected _p_VerseKey");
+ }
+ }
+ {
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->LowerBound();
+ result = (VerseKey *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_UpperBound) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_UpperBound(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_UpperBound. Expected _p_VerseKey");
+ }
+ }
+ {
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->UpperBound();
+ result = (VerseKey *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_VerseKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_ClearBounds) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_ClearBounds(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_ClearBounds. Expected _p_VerseKey");
+ }
+ }
+ (arg1)->ClearBounds();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_ParseVerseList) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *arg2 ;
+ char *arg3 = (char *) "Genesis 1:1" ;
+ bool arg4 = (bool) false ;
+ ListKey result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 4)) {
+ SWIG_croak("Usage: VerseKey_ParseVerseList(self,buf,defaultKey,expandRange);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_ParseVerseList. Expected _p_VerseKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ arg4 = (bool) SvIV(ST(3));
+ }
+ result = (arg1)->ParseVerseList((char const *)arg2,(char const *)arg3,arg4);
+
+ {
+ ListKey * resultobj = new ListKey((ListKey &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_ListKey,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_setText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_setText(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_setText. Expected _p_VerseKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setText((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getText. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getText();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getRangeText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getRangeText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getRangeText. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getRangeText();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getShortText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getShortText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getShortText. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getShortText();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Traversable) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Traversable. Expected _p_VerseKey");
+ }
+ }
+ result = (char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_decrement) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_decrement(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_decrement. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_increment) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_increment(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_increment. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getBookName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getBookName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getBookName. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getBookName();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getBookAbbrev) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getBookAbbrev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getBookAbbrev. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getBookAbbrev();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Testament) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_Testament(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Testament. Expected _p_VerseKey");
+ }
+ }
+ result = (char)((VerseKey const *)arg1)->Testament();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Book) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_Book(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Book. Expected _p_VerseKey");
+ }
+ }
+ result = (char)((VerseKey const *)arg1)->Book();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Chapter) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_Chapter(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Chapter. Expected _p_VerseKey");
+ }
+ }
+ result = (int)((VerseKey const *)arg1)->Chapter();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Verse) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_Verse(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Verse. Expected _p_VerseKey");
+ }
+ }
+ result = (int)((VerseKey const *)arg1)->Verse();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Normalize) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char arg2 = (char) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_Normalize(self,autocheck);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Normalize. Expected _p_VerseKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ (arg1)->Normalize(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_AutoNormalize) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char arg2 = (char) MAXPOS(char) ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_AutoNormalize(self,iautonorm);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_AutoNormalize. Expected _p_VerseKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ result = (char)(arg1)->AutoNormalize(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_Headings) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char arg2 = (char) MAXPOS(char) ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_Headings(self,iheadings);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_Headings. Expected _p_VerseKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ result = (char)(arg1)->Headings(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getOSISRef) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getOSISRef(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getOSISRef. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getOSISRef();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_compare) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ SWKey *arg2 = 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_compare. Expected _p_VerseKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of VerseKey_compare. Expected _p_SWKey");
+ }
+ }
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey__compare) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ VerseKey *arg2 = 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey__compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey__compare. Expected _p_VerseKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of VerseKey__compare. Expected _p_VerseKey");
+ }
+ }
+ result = (int)(arg1)->_compare((VerseKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_setLocale) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_setLocale(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_setLocale. Expected _p_VerseKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setLocale((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_getLocale) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: VerseKey_getLocale(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_getLocale. Expected _p_VerseKey");
+ }
+ }
+ result = (char *)((VerseKey const *)arg1)->getLocale();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_bookCount) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: VerseKey_bookCount(self,testament);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_bookCount. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (int)VerseKey_bookCount(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_bookName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: VerseKey_bookName(self,testament,book);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_bookName. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ arg3 = (int) SvIV(ST(2));
+ result = (char *)VerseKey_bookName(arg1,arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_chapterCount) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: VerseKey_chapterCount(self,testament,book);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_chapterCount. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ arg3 = (int) SvIV(ST(2));
+ result = (int)VerseKey_chapterCount(arg1,arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_VerseKey_verseCount) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ VerseKey *arg1 = (VerseKey *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 4) || (items > 4)) {
+ SWIG_croak("Usage: VerseKey_verseCount(self,testament,book,chapter);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of VerseKey_verseCount. Expected _p_VerseKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ arg3 = (int) SvIV(ST(2));
+ arg4 = (int) SvIV(ST(3));
+ result = (int)VerseKey_verseCount(arg1,arg2,arg3,arg4);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_ListKey__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ ListKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ SWIG_croak("Usage: new_ListKey(ikey);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ result = (ListKey *)new ListKey((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ListKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_ListKey__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = 0 ;
+ ListKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_ListKey(k);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_ListKey. Expected _p_ListKey");
+ }
+ }
+ result = (ListKey *)new ListKey((ListKey const &)*arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ListKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_ListKey) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 1)) {
+ int _v;
+ if (items <= 0) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_ListKey__SWIG_0); return;
+ }
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_ListKey__SWIG_0); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_ListKey__SWIG_1); return;
+ }
+ }
+
+ croak("No matching function for overloaded 'new_ListKey'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_delete_ListKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_ListKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_ListKey. Expected _p_ListKey");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_clone) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_clone. Expected _p_ListKey");
+ }
+ }
+ result = (SWKey *)((ListKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_ClearList) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_ClearList(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_ClearList. Expected _p_ListKey");
+ }
+ }
+ (arg1)->ClearList();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Count) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_Count(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_Count. Expected _p_ListKey");
+ }
+ }
+ result = (int)(arg1)->Count();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Remove) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_Remove(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_Remove. Expected _p_ListKey");
+ }
+ }
+ (arg1)->Remove();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_SetToElement) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int arg2 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_SetToElement(self,element);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_SetToElement. Expected _p_ListKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (char)ListKey_SetToElement(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_GetElement) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int arg2 = (int) -1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_GetElement(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_GetElement. Expected _p_ListKey");
+ }
+ }
+ if (items > 1) {
+ arg2 = (int) SvIV(ST(1));
+ }
+ result = (SWKey *)(arg1)->GetElement(arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_add) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ SWKey *arg2 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_add(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_add. Expected _p_ListKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of ListKey_add. Expected _p_SWKey");
+ }
+ }
+ (arg1)->add((SWKey const &)*arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_copyFrom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ ListKey *arg2 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_copyFrom(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_copyFrom. Expected _p_ListKey");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 2 of ListKey_copyFrom. Expected _p_ListKey");
+ }
+ }
+ (arg1)->copyFrom((ListKey const &)*arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_setPosition) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_setPosition(self,SW_POSITION);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_setPosition. Expected _p_ListKey");
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ SWIG_croak("Type error in argument 2 of ListKey_setPosition. Expected _p_SW_POSITION");
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_decrement) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_decrement(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_decrement. Expected _p_ListKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_increment) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_increment(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_increment. Expected _p_ListKey");
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Traversable) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_Traversable. Expected _p_ListKey");
+ }
+ }
+ result = (char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Index__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ListKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_Index. Expected _p_ListKey");
+ }
+ }
+ result = (long)((ListKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Index__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ListKey *arg1 = (ListKey *) 0 ;
+ long arg2 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: ListKey_Index(self,index);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ListKey_Index. Expected _p_ListKey");
+ }
+ }
+ arg2 = (long) SvIV(ST(1));
+ result = (long)(arg1)->Index(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ListKey_Index) {
+ dXSARGS;
+
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_ListKey_Index__SWIG_0); return;
+ }
+ }
+ if (items == 2) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ _v = SvIOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_ListKey_Index__SWIG_1); return;
+ }
+ }
+ }
+
+ croak("No matching function for overloaded 'ListKey_Index'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_TreeKey_getLocalName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_getLocalName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_getLocalName. Expected _p_TreeKey");
+ }
+ }
+ result = (char *)(arg1)->getLocalName();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_setLocalName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: TreeKey_setLocalName(self,char const *);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_setLocalName. Expected _p_TreeKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (char *)(arg1)->setLocalName((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_getUserData) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int *arg2 = (int *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ SWIG_croak("Usage: TreeKey_getUserData(self,size);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_getUserData. Expected _p_TreeKey");
+ }
+ }
+ if (items > 1) {
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_int,0) < 0) {
+ SWIG_croak("Type error in argument 2 of TreeKey_getUserData. Expected _p_int");
+ }
+ }
+ }
+ result = (char *)(arg1)->getUserData(arg2);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_setUserData) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ char *arg2 ;
+ int arg3 = (int) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ SWIG_croak("Usage: TreeKey_setUserData(self,userData,size);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_setUserData. Expected _p_TreeKey");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (items > 2) {
+ arg3 = (int) SvIV(ST(2));
+ }
+ (arg1)->setUserData((char const *)arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_getFullName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_getFullName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_getFullName. Expected _p_TreeKey");
+ }
+ }
+ result = (char *)((TreeKey const *)arg1)->getFullName();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_root) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_root(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_root. Expected _p_TreeKey");
+ }
+ }
+ (arg1)->root();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_parent) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_parent(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_parent. Expected _p_TreeKey");
+ }
+ }
+ result = (bool)(arg1)->parent();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_firstChild) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_firstChild(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_firstChild. Expected _p_TreeKey");
+ }
+ }
+ result = (bool)(arg1)->firstChild();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_nextSibling) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_nextSibling(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_nextSibling. Expected _p_TreeKey");
+ }
+ }
+ result = (bool)(arg1)->nextSibling();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_previousSibling) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_previousSibling(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_previousSibling. Expected _p_TreeKey");
+ }
+ }
+ result = (bool)(arg1)->previousSibling();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_hasChildren) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_hasChildren(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_hasChildren. Expected _p_TreeKey");
+ }
+ }
+ result = (bool)(arg1)->hasChildren();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_append) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_append(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_append. Expected _p_TreeKey");
+ }
+ }
+ (arg1)->append();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_appendChild) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_appendChild(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_appendChild. Expected _p_TreeKey");
+ }
+ }
+ (arg1)->appendChild();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_insertBefore) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_insertBefore(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_insertBefore. Expected _p_TreeKey");
+ }
+ }
+ (arg1)->insertBefore();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_remove) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_remove(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_remove. Expected _p_TreeKey");
+ }
+ }
+ (arg1)->remove();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_setOffset) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ unsigned long arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: TreeKey_setOffset(self,offset);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_setOffset. Expected _p_TreeKey");
+ }
+ }
+ arg2 = (unsigned long) SvUV(ST(1));
+ (arg1)->setOffset(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_getOffset) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_getOffset(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_getOffset. Expected _p_TreeKey");
+ }
+ }
+ result = (unsigned long)((TreeKey const *)arg1)->getOffset();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_setPosition) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: TreeKey_setPosition(self,p);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_setPosition. Expected _p_TreeKey");
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ SWIG_croak("Type error in argument 2 of TreeKey_setPosition. Expected _p_SW_POSITION");
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_Traversable) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_Traversable. Expected _p_TreeKey");
+ }
+ }
+ result = (char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKey_Index) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKey *arg1 = (TreeKey *) 0 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKey_Index. Expected _p_TreeKey");
+ }
+ }
+ result = (long)((TreeKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_TreeKeyIdx) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKeyIdx *arg1 = (TreeKeyIdx *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_TreeKeyIdx(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_TreeKeyIdx. Expected _p_TreeKeyIdx");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKeyIdx_save) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKeyIdx *arg1 = (TreeKeyIdx *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKeyIdx_save(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKeyIdx_save. Expected _p_TreeKeyIdx");
+ }
+ }
+ (arg1)->save();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKeyIdx_copyFrom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKeyIdx *arg1 = (TreeKeyIdx *) 0 ;
+ TreeKeyIdx *arg2 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: TreeKeyIdx_copyFrom(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKeyIdx_copyFrom. Expected _p_TreeKeyIdx");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 2 of TreeKeyIdx_copyFrom. Expected _p_TreeKeyIdx");
+ }
+ }
+ (arg1)->copyFrom((TreeKeyIdx const &)*arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKeyIdx__compare) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ TreeKeyIdx *arg1 = (TreeKeyIdx *) 0 ;
+ TreeKeyIdx *arg2 = 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: TreeKeyIdx__compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 1 of TreeKeyIdx__compare. Expected _p_TreeKeyIdx");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_TreeKeyIdx,0) < 0) {
+ SWIG_croak("Type error in argument 2 of TreeKeyIdx__compare. Expected _p_TreeKeyIdx");
+ }
+ }
+ result = (int)(arg1)->_compare((TreeKeyIdx const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_TreeKeyIdx_create) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: TreeKeyIdx_create(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (signed char)TreeKeyIdx::create((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_LocaleMgr) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ LocaleMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ SWIG_croak("Usage: new_LocaleMgr(iConfigPath);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ result = (LocaleMgr *)new LocaleMgr((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_LocaleMgr,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_LocaleMgr) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *arg1 = (LocaleMgr *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_LocaleMgr(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_LocaleMgr. Expected _p_LocaleMgr");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LocaleMgr_getLocale) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *arg1 = (LocaleMgr *) 0 ;
+ char *arg2 ;
+ SWLocale *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: LocaleMgr_getLocale(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LocaleMgr_getLocale. Expected _p_LocaleMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (SWLocale *)(arg1)->getLocale((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWLocale,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LocaleMgr_getAvailableLocales) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *arg1 = (LocaleMgr *) 0 ;
+ std::list<SWBuf > result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: LocaleMgr_getAvailableLocales(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LocaleMgr_getAvailableLocales. Expected _p_LocaleMgr");
+ }
+ }
+ result = (arg1)->getAvailableLocales();
+
+ {
+ std::list<SWBuf > * resultobj = new std::list<SWBuf >((std::list<SWBuf > &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_std__listTSWBuf_t,0);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LocaleMgr_getDefaultLocaleName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *arg1 = (LocaleMgr *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: LocaleMgr_getDefaultLocaleName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LocaleMgr_getDefaultLocaleName. Expected _p_LocaleMgr");
+ }
+ }
+ result = (char *)(arg1)->getDefaultLocaleName();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LocaleMgr_setDefaultLocaleName) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *arg1 = (LocaleMgr *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: LocaleMgr_setDefaultLocaleName(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LocaleMgr_setDefaultLocaleName. Expected _p_LocaleMgr");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setDefaultLocaleName((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LocaleMgr_getSystemLocaleMgr) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LocaleMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ SWIG_croak("Usage: LocaleMgr_getSystemLocaleMgr();");
+ }
+ result = (LocaleMgr *)LocaleMgr_getSystemLocaleMgr();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_LocaleMgr,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ SWDisplay *arg3 = (SWDisplay *) 0 ;
+ SWTextEncoding arg4 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg5 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg6 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg7 = (char *) 0 ;
+ SWText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 7)) {
+ SWIG_croak("Usage: new_SWText(imodname,imoddesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 3 of new_SWText. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 3) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(3),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_SWText. Expected _p_SWTextEncoding");
+ }
+ arg4 = *argp;
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_SWText. Expected _p_SWTextDirection");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_SWText. Expected _p_SWTextMarkup");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ if (!SvOK((SV*) ST(6))) arg7 = 0;
+ else arg7 = (char *) SvPV(ST(6), PL_na);
+ }
+ result = (SWText *)new SWText((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWText,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWText *arg1 = (SWText *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWText,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWText. Expected _p_SWText");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_RawText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ SWDisplay *arg4 = (SWDisplay *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ RawText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ SWIG_croak("Usage: new_RawText(ipath,iname,idesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_RawText. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_RawText. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_RawText. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_RawText. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (RawText *)new RawText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_RawText,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawText_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawText_createModule(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)RawText::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_RawText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawText *arg1 = (RawText *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_RawText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawText,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_RawText. Expected _p_RawText");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_zText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 = (int) CHAPTERBLOCKS ;
+ SWCompress *arg5 = (SWCompress *) 0 ;
+ SWDisplay *arg6 = (SWDisplay *) 0 ;
+ SWTextEncoding arg7 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg8 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg9 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg10 = (char *) 0 ;
+ zText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 10)) {
+ SWIG_croak("Usage: new_zText(ipath,iname,idesc,blockType,icomp,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ arg4 = (int) SvIV(ST(3));
+ }
+ if (items > 4) {
+ {
+ if (SWIG_ConvertPtr(ST(4), (void **) &arg5, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_zText. Expected _p_SWCompress");
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_zText. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_zText. Expected _p_SWTextEncoding");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(7),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 8 of new_zText. Expected _p_SWTextDirection");
+ }
+ arg8 = *argp;
+ }
+ }
+ if (items > 8) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(8),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 9 of new_zText. Expected _p_SWTextMarkup");
+ }
+ arg9 = *argp;
+ }
+ }
+ if (items > 9) {
+ if (!SvOK((SV*) ST(9))) arg10 = 0;
+ else arg10 = (char *) SvPV(ST(9), PL_na);
+ }
+ result = (zText *)new zText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_zText,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_zText) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ zText *arg1 = (zText *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_zText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zText,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_zText. Expected _p_zText");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_zText_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ int arg2 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: zText_createModule(path,blockBound);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ arg2 = (int) SvIV(ST(1));
+ result = (char)zText::createModule((char const *)arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_RawCom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ SWDisplay *arg4 = (SWDisplay *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ RawCom *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ SWIG_croak("Usage: new_RawCom(ipath,iname,idesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_RawCom. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_RawCom. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_RawCom. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_RawCom. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (RawCom *)new RawCom((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_RawCom,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_RawCom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawCom *arg1 = (RawCom *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_RawCom(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawCom,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_RawCom. Expected _p_RawCom");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawCom_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawCom_createModule(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)RawCom::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_zCom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 = (int) CHAPTERBLOCKS ;
+ SWCompress *arg5 = (SWCompress *) 0 ;
+ SWDisplay *arg6 = (SWDisplay *) 0 ;
+ SWTextEncoding arg7 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg8 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg9 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg10 = (char *) 0 ;
+ zCom *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 10)) {
+ SWIG_croak("Usage: new_zCom(ipath,iname,idesc,blockType,icomp,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ arg4 = (int) SvIV(ST(3));
+ }
+ if (items > 4) {
+ {
+ if (SWIG_ConvertPtr(ST(4), (void **) &arg5, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_zCom. Expected _p_SWCompress");
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_zCom. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_zCom. Expected _p_SWTextEncoding");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(7),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 8 of new_zCom. Expected _p_SWTextDirection");
+ }
+ arg8 = *argp;
+ }
+ }
+ if (items > 8) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(8),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 9 of new_zCom. Expected _p_SWTextMarkup");
+ }
+ arg9 = *argp;
+ }
+ }
+ if (items > 9) {
+ if (!SvOK((SV*) ST(9))) arg10 = 0;
+ else arg10 = (char *) SvPV(ST(9), PL_na);
+ }
+ result = (zCom *)new zCom((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_zCom,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_zCom) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ zCom *arg1 = (zCom *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_zCom(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zCom,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_zCom. Expected _p_zCom");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_zCom_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ int arg2 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: zCom_createModule(path,blockBound);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ arg2 = (int) SvIV(ST(1));
+ result = (char)zCom::createModule((char const *)arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_RawGenBook) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ SWDisplay *arg4 = (SWDisplay *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ RawGenBook *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ SWIG_croak("Usage: new_RawGenBook(ipath,iname,idesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_RawGenBook. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_RawGenBook. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_RawGenBook. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_RawGenBook. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (RawGenBook *)new RawGenBook((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_RawGenBook,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_RawGenBook) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawGenBook *arg1 = (RawGenBook *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_RawGenBook(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawGenBook,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_RawGenBook. Expected _p_RawGenBook");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawGenBook_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawGenBook_createModule(ipath);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)RawGenBook::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawGenBook_getTreeKey) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawGenBook *arg1 = (RawGenBook *) 0 ;
+ TreeKeyIdx *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawGenBook_getTreeKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawGenBook,0) < 0) {
+ SWIG_croak("Type error in argument 1 of RawGenBook_getTreeKey. Expected _p_RawGenBook");
+ }
+ }
+ result = (TreeKeyIdx *)RawGenBook_getTreeKey(arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_TreeKeyIdx,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ SWDisplay *arg3 = (SWDisplay *) 0 ;
+ SWTextEncoding arg4 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg5 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg6 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg7 = (char *) 0 ;
+ SWLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 7)) {
+ SWIG_croak("Usage: new_SWLD(imodname,imoddesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 3 of new_SWLD. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 3) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(3),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_SWLD. Expected _p_SWTextEncoding");
+ }
+ arg4 = *argp;
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_SWLD. Expected _p_SWTextDirection");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_SWLD. Expected _p_SWTextMarkup");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ if (!SvOK((SV*) ST(6))) arg7 = 0;
+ else arg7 = (char *) SvPV(ST(6), PL_na);
+ }
+ result = (SWLD *)new SWLD((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWLD,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWLD *arg1 = (SWLD *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWLD,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWLD. Expected _p_SWLD");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_RawLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ SWDisplay *arg4 = (SWDisplay *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ RawLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ SWIG_croak("Usage: new_RawLD(ipath,iname,idesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_RawLD. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_RawLD. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_RawLD. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_RawLD. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (RawLD *)new RawLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_RawLD,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_RawLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawLD *arg1 = (RawLD *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_RawLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_RawLD. Expected _p_RawLD");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawLD_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawLD_createModule(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)RawLD::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_RawLD4) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ SWDisplay *arg4 = (SWDisplay *) 0 ;
+ SWTextEncoding arg5 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg6 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg7 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg8 = (char *) 0 ;
+ RawLD4 *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ SWIG_croak("Usage: new_RawLD4(ipath,iname,idesc,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 4 of new_RawLD4. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_RawLD4. Expected _p_SWTextEncoding");
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_RawLD4. Expected _p_SWTextDirection");
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_RawLD4. Expected _p_SWTextMarkup");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ if (!SvOK((SV*) ST(7))) arg8 = 0;
+ else arg8 = (char *) SvPV(ST(7), PL_na);
+ }
+ result = (RawLD4 *)new RawLD4((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_RawLD4,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_RawLD4) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ RawLD4 *arg1 = (RawLD4 *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_RawLD4(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD4,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_RawLD4. Expected _p_RawLD4");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_RawLD4_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: RawLD4_createModule(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)RawLD4::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_zLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ long arg4 = (long) 200 ;
+ SWCompress *arg5 = (SWCompress *) 0 ;
+ SWDisplay *arg6 = (SWDisplay *) 0 ;
+ SWTextEncoding arg7 = (SWTextEncoding) ENC_UNKNOWN ;
+ SWTextDirection arg8 = (SWTextDirection) DIRECTION_LTR ;
+ SWTextMarkup arg9 = (SWTextMarkup) FMT_UNKNOWN ;
+ char *arg10 = (char *) 0 ;
+ zLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 10)) {
+ SWIG_croak("Usage: new_zLD(ipath,iname,idesc,blockCount,icomp,idisp,encoding,dir,markup,ilang);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ if (items > 3) {
+ arg4 = (long) SvIV(ST(3));
+ }
+ if (items > 4) {
+ {
+ if (SWIG_ConvertPtr(ST(4), (void **) &arg5, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 5 of new_zLD. Expected _p_SWCompress");
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_SWDisplay,0) < 0) {
+ SWIG_croak("Type error in argument 6 of new_zLD. Expected _p_SWDisplay");
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ SWIG_croak("Type error in argument 7 of new_zLD. Expected _p_SWTextEncoding");
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(7),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ SWIG_croak("Type error in argument 8 of new_zLD. Expected _p_SWTextDirection");
+ }
+ arg8 = *argp;
+ }
+ }
+ if (items > 8) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(8),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ SWIG_croak("Type error in argument 9 of new_zLD. Expected _p_SWTextMarkup");
+ }
+ arg9 = *argp;
+ }
+ }
+ if (items > 9) {
+ if (!SvOK((SV*) ST(9))) arg10 = 0;
+ else arg10 = (char *) SvPV(ST(9), PL_na);
+ }
+ result = (zLD *)new zLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_zLD,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_zLD) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ zLD *arg1 = (zLD *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_zLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zLD,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_zLD. Expected _p_zLD");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_zLD_createModule) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: zLD_createModule(path);");
+ }
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ result = (char)zLD::createModule((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ SWIG_croak("Usage: new_SWCompress();");
+ }
+ result = (SWCompress *)new SWCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWCompress,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_SWCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWCompress. Expected _p_SWCompress");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_Buf) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned long *arg3 = (unsigned long *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 3)) {
+ SWIG_croak("Usage: SWCompress_Buf(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_Buf. Expected _p_SWCompress");
+ }
+ }
+ if (items > 1) {
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ }
+ if (items > 2) {
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_unsigned_long,0) < 0) {
+ SWIG_croak("Type error in argument 3 of SWCompress_Buf. Expected _p_unsigned_long");
+ }
+ }
+ }
+ result = (char *)(arg1)->Buf((char const *)arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_zBuf) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ unsigned long *arg2 = (unsigned long *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ SWIG_croak("Usage: SWCompress_zBuf(self,len,buf);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_zBuf. Expected _p_SWCompress");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_unsigned_long,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWCompress_zBuf. Expected _p_unsigned_long");
+ }
+ }
+ if (items > 2) {
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ }
+ result = (char *)(arg1)->zBuf(arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_GetChars) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWCompress_GetChars(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_GetChars. Expected _p_SWCompress");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ arg3 = (unsigned long) SvUV(ST(2));
+ result = (unsigned long)(arg1)->GetChars(arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_SendChars) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: SWCompress_SendChars(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_SendChars. Expected _p_SWCompress");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ arg3 = (unsigned long) SvUV(ST(2));
+ result = (unsigned long)(arg1)->SendChars(arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_Encode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_Encode. Expected _p_SWCompress");
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWCompress_Decode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWCompress *arg1 = (SWCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWCompress_Decode. Expected _p_SWCompress");
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_LZSSCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LZSSCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ SWIG_croak("Usage: new_LZSSCompress();");
+ }
+ result = (LZSSCompress *)new LZSSCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_LZSSCompress,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_LZSSCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LZSSCompress *arg1 = (LZSSCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_LZSSCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_LZSSCompress. Expected _p_LZSSCompress");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LZSSCompress_Encode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LZSSCompress *arg1 = (LZSSCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: LZSSCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LZSSCompress_Encode. Expected _p_LZSSCompress");
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_LZSSCompress_Decode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ LZSSCompress *arg1 = (LZSSCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: LZSSCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of LZSSCompress_Decode. Expected _p_LZSSCompress");
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_ZipCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ZipCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ SWIG_croak("Usage: new_ZipCompress();");
+ }
+ result = (ZipCompress *)new ZipCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ZipCompress,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_delete_ZipCompress) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ZipCompress *arg1 = (ZipCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_ZipCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_ZipCompress. Expected _p_ZipCompress");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ZipCompress_Encode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ZipCompress *arg1 = (ZipCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ZipCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ZipCompress_Encode. Expected _p_ZipCompress");
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_ZipCompress_Decode) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ ZipCompress *arg1 = (ZipCompress *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: ZipCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ SWIG_croak("Type error in argument 1 of ZipCompress_Decode. Expected _p_ZipCompress");
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWBuf__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char *arg1 = (char *) 0 ;
+ SWBuf *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ SWIG_croak("Usage: new_SWBuf(initVal);");
+ }
+ if (items > 0) {
+ if (!SvOK((SV*) ST(0))) arg1 = 0;
+ else arg1 = (char *) SvPV(ST(0), PL_na);
+ }
+ result = (SWBuf *)new SWBuf((char const *)arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWBuf,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWBuf__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ char arg1 ;
+ SWBuf *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_SWBuf(initVal);");
+ }
+ arg1 = (char) *SvPV(ST(0),PL_na);
+ result = (SWBuf *)new SWBuf(arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWBuf,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWBuf__SWIG_2) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = 0 ;
+ SWBuf *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: new_SWBuf(other);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of new_SWBuf. Expected _p_SWBuf");
+ }
+ }
+ result = (SWBuf *)new SWBuf((SWBuf const &)*arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWBuf,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_new_SWBuf) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 1)) {
+ int _v;
+ if (items <= 0) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWBuf__SWIG_0); return;
+ }
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWBuf__SWIG_0); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWBuf__SWIG_2); return;
+ }
+ }
+ if (items == 1) {
+ int _v;
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_SWBuf__SWIG_1); return;
+ }
+ }
+
+ croak("No matching function for overloaded 'new_SWBuf'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_delete_SWBuf) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: delete_SWBuf(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of delete_SWBuf. Expected _p_SWBuf");
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_setFillByte) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_setFillByte(self,ch);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_setFillByte. Expected _p_SWBuf");
+ }
+ }
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ (arg1)->setFillByte(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_getFillByte) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWBuf_getFillByte(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_getFillByte. Expected _p_SWBuf");
+ }
+ }
+ result = (char)(arg1)->getFillByte();
+
+ ST(argvi) = sv_newmortal();
+ sv_setpvn((SV*)ST(argvi++), &result, 1);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_c_str) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWBuf_c_str(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_c_str. Expected _p_SWBuf");
+ }
+ }
+ result = (char *)((SWBuf const *)arg1)->c_str();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_charAt) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ unsigned int arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_charAt(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_charAt. Expected _p_SWBuf");
+ }
+ }
+ arg2 = (unsigned int) SvUV(ST(1));
+ {
+ char &_result_ref = (arg1)->charAt(arg2);
+ result = (char *) &_result_ref;
+ }
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_char,0);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_size) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ unsigned int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWBuf_size(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_size. Expected _p_SWBuf");
+ }
+ }
+ result = (unsigned int)((SWBuf const *)arg1)->size();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_length) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ unsigned int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWBuf_length(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_length. Expected _p_SWBuf");
+ }
+ }
+ result = (unsigned int)((SWBuf const *)arg1)->length();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_set__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_set(self,newVal);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_set. Expected _p_SWBuf");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->set((char const *)arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_set__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ SWBuf *arg2 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_set(self,newVal);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_set. Expected _p_SWBuf");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWBuf_set. Expected _p_SWBuf");
+ }
+ }
+ (arg1)->set((SWBuf const &)*arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_set) {
+ dXSARGS;
+
+ if (items == 2) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(1), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_set__SWIG_1); return;
+ }
+ }
+ }
+ if (items == 2) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ _v = SvPOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_set__SWIG_0); return;
+ }
+ }
+ }
+
+ croak("No matching function for overloaded 'SWBuf_set'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_SWBuf_setSize) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ unsigned int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_setSize(self,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_setSize. Expected _p_SWBuf");
+ }
+ }
+ arg2 = (unsigned int) SvUV(ST(1));
+ (arg1)->setSize(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_append__SWIG_0) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char *arg2 ;
+ int arg3 = (int) -1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ SWIG_croak("Usage: SWBuf_append(self,str,max);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_append. Expected _p_SWBuf");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (items > 2) {
+ arg3 = (int) SvIV(ST(2));
+ }
+ (arg1)->append((char const *)arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_append__SWIG_1) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ SWBuf *arg2 = 0 ;
+ int arg3 = (int) -1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ SWIG_croak("Usage: SWBuf_append(self,str,max);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_append. Expected _p_SWBuf");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWBuf_append. Expected _p_SWBuf");
+ }
+ }
+ if (items > 2) {
+ arg3 = (int) SvIV(ST(2));
+ }
+ (arg1)->append((SWBuf const &)*arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_append__SWIG_2) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_append(self,ch);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_append. Expected _p_SWBuf");
+ }
+ }
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ (arg1)->append(arg2);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_append) {
+ dXSARGS;
+
+ if ((items >= 2) && (items <= 3)) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(1), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ if (items <= 2) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_append__SWIG_1); return;
+ }
+ {
+ _v = SvIOK(ST(2)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_append__SWIG_1); return;
+ }
+ }
+ }
+ }
+ if (items == 2) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ _v = SvPOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_append__SWIG_2); return;
+ }
+ }
+ }
+ if ((items >= 2) && (items <= 3)) {
+ int _v;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_SWBuf, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ if (_v) {
+ {
+ _v = SvPOK(ST(1)) ? 1 : 0;
+ }
+ if (_v) {
+ if (items <= 2) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_append__SWIG_0); return;
+ }
+ {
+ _v = SvIOK(ST(2)) ? 1 : 0;
+ }
+ if (_v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_SWBuf_append__SWIG_0); return;
+ }
+ }
+ }
+ }
+
+ croak("No matching function for overloaded 'SWBuf_append'");
+ XSRETURN(0);
+}
+
+
+XS(_wrap_SWBuf_appendFormatted) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char *arg2 ;
+ void *arg3 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if (items < 2) {
+ SWIG_croak("Usage: SWBuf_appendFormatted(self,format,...);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_appendFormatted. Expected _p_SWBuf");
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->appendFormatted((char const *)arg2,arg3);
+
+
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_getRawData) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: SWBuf_getRawData(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_getRawData. Expected _p_SWBuf");
+ }
+ }
+ result = (char *)(arg1)->getRawData();
+
+ ST(argvi) = sv_newmortal();
+ if (result) {
+ sv_setpv((SV*)ST(argvi++), (char *) result);
+ }else {
+ sv_setsv((SV*)ST(argvi++), &PL_sv_undef);
+ }
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+XS(_wrap_SWBuf_compare) {
+ char _swigmsg[SWIG_MAX_ERRMSG] = "";
+ const char *_swigerr = _swigmsg;
+ {
+ SWBuf *arg1 = (SWBuf *) 0 ;
+ SWBuf *arg2 = 0 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ SWIG_croak("Usage: SWBuf_compare(self,other);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 1 of SWBuf_compare. Expected _p_SWBuf");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWBuf,0) < 0) {
+ SWIG_croak("Type error in argument 2 of SWBuf_compare. Expected _p_SWBuf");
+ }
+ }
+ result = (int)((SWBuf const *)arg1)->compare((SWBuf const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ (void) _swigerr;
+ }
+ croak(_swigerr);
+}
+
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
+
+static void *_p_zComTo_p_SWCom(void *x) {
+ return (void *)((SWCom *) ((zCom *) x));
+}
+static void *_p_RawComTo_p_SWCom(void *x) {
+ return (void *)((SWCom *) ((RawCom *) x));
+}
+static void *_p_TreeKeyIdxTo_p_TreeKey(void *x) {
+ return (void *)((TreeKey *) ((TreeKeyIdx *) x));
+}
+static void *_p_RawTextTo_p_SWText(void *x) {
+ return (void *)((SWText *) ((RawText *) x));
+}
+static void *_p_zTextTo_p_SWText(void *x) {
+ return (void *)((SWText *) ((zText *) x));
+}
+static void *_p_ListKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((ListKey *) x));
+}
+static void *_p_TreeKeyIdxTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) (TreeKey *) ((TreeKeyIdx *) x));
+}
+static void *_p_VerseKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((VerseKey *) x));
+}
+static void *_p_TreeKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((TreeKey *) x));
+}
+static void *_p_LZSSCompressTo_p_SWCompress(void *x) {
+ return (void *)((SWCompress *) ((LZSSCompress *) x));
+}
+static void *_p_ZipCompressTo_p_SWCompress(void *x) {
+ return (void *)((SWCompress *) ((ZipCompress *) x));
+}
+static void *_p_SWComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWCom *) x));
+}
+static void *_p_zLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((zLD *) x));
+}
+static void *_p_SWTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWText *) x));
+}
+static void *_p_SWGenBookTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWGenBook *) x));
+}
+static void *_p_RawGenBookTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWGenBook *) ((RawGenBook *) x));
+}
+static void *_p_RawTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWText *) ((RawText *) x));
+}
+static void *_p_zComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWCom *) ((zCom *) x));
+}
+static void *_p_RawLD4To_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((RawLD4 *) x));
+}
+static void *_p_zTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWText *) ((zText *) x));
+}
+static void *_p_RawComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWCom *) ((RawCom *) x));
+}
+static void *_p_SWLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWLD *) x));
+}
+static void *_p_RawLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((RawLD *) x));
+}
+static void *_p_RawGenBookTo_p_SWGenBook(void *x) {
+ return (void *)((SWGenBook *) ((RawGenBook *) x));
+}
+static void *_p_zLDTo_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((zLD *) x));
+}
+static void *_p_RawLD4To_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((RawLD4 *) x));
+}
+static void *_p_RawLDTo_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((RawLD *) x));
+}
+static swig_type_info _swigt__p_SWLocale[] = {{"_p_SWLocale", 0, "SWLocale *", 0},{"_p_SWLocale"},{0}};
+static swig_type_info _swigt__p_SWMgr[] = {{"Sword::SWMgr", 0, "SWMgr *", 0},{"Sword::SWMgr"},{0}};
+static swig_type_info _swigt__p_SWCom[] = {{"Sword::SWCom", 0, "SWCom *", 0},{"Sword::zCom", _p_zComTo_p_SWCom},{"Sword::SWCom"},{"Sword::RawCom", _p_RawComTo_p_SWCom},{0}};
+static swig_type_info _swigt__p_RawLD4[] = {{"Sword::RawLD4", 0, "RawLD4 *", 0},{"Sword::RawLD4"},{0}};
+static swig_type_info _swigt__p_ListKey[] = {{"Sword::ListKey", 0, "ListKey *", 0},{"Sword::ListKey"},{0}};
+static swig_type_info _swigt__p_SWKey[] = {{"Sword::SWKey", 0, "SWKey *", 0},{"Sword::SWKey"},{"Sword::ListKey", _p_ListKeyTo_p_SWKey},{"Sword::TreeKeyIdx", _p_TreeKeyIdxTo_p_SWKey},{"Sword::VerseKey", _p_VerseKeyTo_p_SWKey},{"Sword::TreeKey", _p_TreeKeyTo_p_SWKey},{0}};
+static swig_type_info _swigt__p_ConfigEntMap[] = {{"_p_ConfigEntMap", 0, "ConfigEntMap *", 0},{"_p_ConfigEntMap"},{0}};
+static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}};
+static swig_type_info _swigt__p_RawLD[] = {{"Sword::RawLD", 0, "RawLD *", 0},{"Sword::RawLD"},{0}};
+static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
+static swig_type_info _swigt__p_TreeKey[] = {{"Sword::TreeKey", 0, "TreeKey *", 0},{"Sword::TreeKeyIdx", _p_TreeKeyIdxTo_p_TreeKey},{"Sword::TreeKey"},{0}};
+static swig_type_info _swigt__p_StringList[] = {{"_p_StringList", 0, "StringList *", 0},{"_p_StringList"},{0}};
+static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
+static swig_type_info _swigt__p_SWFilterMgr[] = {{"Sword::SWFilterMgr", 0, "SWFilterMgr *", 0},{"Sword::SWFilterMgr"},{0}};
+static swig_type_info _swigt__p_SWLD[] = {{"Sword::SWLD", 0, "SWLD *", 0},{"Sword::zLD", _p_zLDTo_p_SWLD},{"Sword::SWLD"},{"Sword::RawLD4", _p_RawLD4To_p_SWLD},{"Sword::RawLD", _p_RawLDTo_p_SWLD},{0}};
+static swig_type_info _swigt__p_SWTextDirection[] = {{"_p_SWTextDirection", 0, "SWTextDirection *", 0},{"_p_SWTextDirection"},{0}};
+static swig_type_info _swigt__p_RawText[] = {{"Sword::RawText", 0, "RawText *", 0},{"Sword::RawText"},{0}};
+static swig_type_info _swigt__p_f_char_p_void__void[] = {{"_p_f_char_p_void__void", 0, "void (*)(char,void *)", 0},{"_p_f_char_p_void__void"},{0}};
+static swig_type_info _swigt__p_VerseKey[] = {{"Sword::VerseKey", 0, "VerseKey *", 0},{"Sword::VerseKey"},{0}};
+static swig_type_info _swigt__p_SWBuf[] = {{"Sword::SWBuf", 0, "SWBuf *", 0},{"Sword::SWBuf"},{0}};
+static swig_type_info _swigt__p_ModMap[] = {{"_p_ModMap", 0, "ModMap *", 0},{"_p_ModMap"},{0}};
+static swig_type_info _swigt__p_zCom[] = {{"Sword::zCom", 0, "zCom *", 0},{"Sword::zCom"},{0}};
+static swig_type_info _swigt__p_SectionMap[] = {{"_p_SectionMap", 0, "SectionMap *", 0},{"_p_SectionMap"},{0}};
+static swig_type_info _swigt__p_SWDisplay[] = {{"_p_SWDisplay", 0, "SWDisplay *", 0},{"_p_SWDisplay"},{0}};
+static swig_type_info _swigt__p_AttributeTypeList[] = {{"_p_AttributeTypeList", 0, "AttributeTypeList *", 0},{"_p_AttributeTypeList"},{0}};
+static swig_type_info _swigt__p_SWText[] = {{"Sword::SWText", 0, "SWText *", 0},{"Sword::SWText"},{"Sword::RawText", _p_RawTextTo_p_SWText},{"Sword::zText", _p_zTextTo_p_SWText},{0}};
+static swig_type_info _swigt__p_std__listTSWBuf_t[] = {{"_p_std__listTSWBuf_t", 0, "std::list<SWBuf > *", 0},{"_p_std__listTSWBuf_t"},{0}};
+static swig_type_info _swigt__p_TreeKeyIdx[] = {{"Sword::TreeKeyIdx", 0, "TreeKeyIdx *", 0},{"Sword::TreeKeyIdx"},{0}};
+static swig_type_info _swigt__p_SWCompress[] = {{"Sword::SWCompress", 0, "SWCompress *", 0},{"Sword::SWCompress"},{"Sword::LZSSCompress", _p_LZSSCompressTo_p_SWCompress},{"Sword::ZipCompress", _p_ZipCompressTo_p_SWCompress},{0}};
+static swig_type_info _swigt__p_LZSSCompress[] = {{"Sword::LZSSCompress", 0, "LZSSCompress *", 0},{"Sword::LZSSCompress"},{0}};
+static swig_type_info _swigt__p_ZipCompress[] = {{"Sword::ZipCompress", 0, "ZipCompress *", 0},{"Sword::ZipCompress"},{0}};
+static swig_type_info _swigt__p_SW_POSITION[] = {{"Sword::SW_POSITION", 0, "SW_POSITION *", 0},{"Sword::SW_POSITION"},{0}};
+static swig_type_info _swigt__p_SWModule[] = {{"Sword::SWModule", 0, "SWModule *", 0},{"Sword::SWModule"},{"Sword::SWGenBook", _p_SWGenBookTo_p_SWModule},{"Sword::RawGenBook", _p_RawGenBookTo_p_SWModule},{"Sword::SWText", _p_SWTextTo_p_SWModule},{"Sword::RawText", _p_RawTextTo_p_SWModule},{"Sword::zLD", _p_zLDTo_p_SWModule},{"Sword::zCom", _p_zComTo_p_SWModule},{"Sword::zText", _p_zTextTo_p_SWModule},{"Sword::RawLD4", _p_RawLD4To_p_SWModule},{"Sword::SWLD", _p_SWLDTo_p_SWModule},{"Sword::RawLD", _p_RawLDTo_p_SWModule},{"Sword::SWCom", _p_SWComTo_p_SWModule},{"Sword::RawCom", _p_RawComTo_p_SWModule},{0}};
+static swig_type_info _swigt__p_zLD[] = {{"Sword::zLD", 0, "zLD *", 0},{"Sword::zLD"},{0}};
+static swig_type_info _swigt__p_SWGenBook[] = {{"Sword::SWGenBook", 0, "SWGenBook *", 0},{"Sword::SWGenBook"},{"Sword::RawGenBook", _p_RawGenBookTo_p_SWGenBook},{0}};
+static swig_type_info _swigt__p_RawCom[] = {{"Sword::RawCom", 0, "RawCom *", 0},{"Sword::RawCom"},{0}};
+static swig_type_info _swigt__p_RawGenBook[] = {{"Sword::RawGenBook", 0, "RawGenBook *", 0},{"Sword::RawGenBook"},{0}};
+static swig_type_info _swigt__p_SWConfig[] = {{"Sword::SWConfig", 0, "SWConfig *", 0},{"Sword::SWConfig"},{0}};
+static swig_type_info _swigt__p_LocaleMgr[] = {{"Sword::LocaleMgr", 0, "LocaleMgr *", 0},{"Sword::LocaleMgr"},{0}};
+static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
+static swig_type_info _swigt__p_SWTextMarkup[] = {{"_p_SWTextMarkup", 0, "SWTextMarkup *", 0},{"_p_SWTextMarkup"},{0}};
+static swig_type_info _swigt__p_zText[] = {{"Sword::zText", 0, "zText *", 0},{"Sword::zText"},{0}};
+static swig_type_info _swigt__p_SWTextEncoding[] = {{"_p_SWTextEncoding", 0, "SWTextEncoding *", 0},{"_p_SWTextEncoding"},{0}};
+static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
+
+static swig_type_info *swig_types_initial[] = {
+_swigt__p_SWLocale,
+_swigt__p_SWMgr,
+_swigt__p_SWCom,
+_swigt__p_RawLD4,
+_swigt__p_ListKey,
+_swigt__p_SWKey,
+_swigt__p_ConfigEntMap,
+_swigt__p_p_char,
+_swigt__p_RawLD,
+_swigt__p_char,
+_swigt__p_TreeKey,
+_swigt__p_StringList,
+_swigt__p_bool,
+_swigt__p_SWFilterMgr,
+_swigt__p_SWLD,
+_swigt__p_SWTextDirection,
+_swigt__p_RawText,
+_swigt__p_f_char_p_void__void,
+_swigt__p_VerseKey,
+_swigt__p_SWBuf,
+_swigt__p_ModMap,
+_swigt__p_zCom,
+_swigt__p_SectionMap,
+_swigt__p_SWDisplay,
+_swigt__p_AttributeTypeList,
+_swigt__p_SWText,
+_swigt__p_std__listTSWBuf_t,
+_swigt__p_TreeKeyIdx,
+_swigt__p_SWCompress,
+_swigt__p_LZSSCompress,
+_swigt__p_ZipCompress,
+_swigt__p_SW_POSITION,
+_swigt__p_SWModule,
+_swigt__p_zLD,
+_swigt__p_SWGenBook,
+_swigt__p_RawCom,
+_swigt__p_RawGenBook,
+_swigt__p_SWConfig,
+_swigt__p_LocaleMgr,
+_swigt__p_int,
+_swigt__p_SWTextMarkup,
+_swigt__p_zText,
+_swigt__p_SWTextEncoding,
+_swigt__p_unsigned_long,
+0
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+static swig_constant_info swig_constants[] = {
+{0}
+};
+#ifdef __cplusplus
+}
+#endif
+static swig_variable_info swig_variables[] = {
+{0}
+};
+static swig_command_info swig_commands[] = {
+{"Swordc::SWConfig_filename_set", _wrap_SWConfig_filename_set},
+{"Swordc::SWConfig_filename_get", _wrap_SWConfig_filename_get},
+{"Swordc::SWConfig_Sections_set", _wrap_SWConfig_Sections_set},
+{"Swordc::SWConfig_Sections_get", _wrap_SWConfig_Sections_get},
+{"Swordc::new_SWConfig", _wrap_new_SWConfig},
+{"Swordc::delete_SWConfig", _wrap_delete_SWConfig},
+{"Swordc::SWConfig_Load", _wrap_SWConfig_Load},
+{"Swordc::SWConfig_Save", _wrap_SWConfig_Save},
+{"Swordc::SWConfig_set", _wrap_SWConfig_set},
+{"Swordc::SWConfig_get", _wrap_SWConfig_get},
+{"Swordc::SWMgr_findConfig", _wrap_SWMgr_findConfig},
+{"Swordc::SWMgr_config_set", _wrap_SWMgr_config_set},
+{"Swordc::SWMgr_config_get", _wrap_SWMgr_config_get},
+{"Swordc::SWMgr_sysconfig_set", _wrap_SWMgr_sysconfig_set},
+{"Swordc::SWMgr_sysconfig_get", _wrap_SWMgr_sysconfig_get},
+{"Swordc::SWMgr_Modules_set", _wrap_SWMgr_Modules_set},
+{"Swordc::SWMgr_Modules_get", _wrap_SWMgr_Modules_get},
+{"Swordc::SWMgr_prefixPath_set", _wrap_SWMgr_prefixPath_set},
+{"Swordc::SWMgr_prefixPath_get", _wrap_SWMgr_prefixPath_get},
+{"Swordc::SWMgr_configPath_set", _wrap_SWMgr_configPath_set},
+{"Swordc::SWMgr_configPath_get", _wrap_SWMgr_configPath_get},
+{"Swordc::new_SWMgr", _wrap_new_SWMgr},
+{"Swordc::delete_SWMgr", _wrap_delete_SWMgr},
+{"Swordc::SWMgr_Load", _wrap_SWMgr_Load},
+{"Swordc::SWMgr_setGlobalOption", _wrap_SWMgr_setGlobalOption},
+{"Swordc::SWMgr_getGlobalOption", _wrap_SWMgr_getGlobalOption},
+{"Swordc::SWMgr_getGlobalOptionTip", _wrap_SWMgr_getGlobalOptionTip},
+{"Swordc::SWMgr_getGlobalOptions", _wrap_SWMgr_getGlobalOptions},
+{"Swordc::SWMgr_getGlobalOptionValues", _wrap_SWMgr_getGlobalOptionValues},
+{"Swordc::SWMgr_setCipherKey", _wrap_SWMgr_setCipherKey},
+{"Swordc::SWMgr_getModule", _wrap_SWMgr_getModule},
+{"Swordc::SWMgr_InstallScan", _wrap_SWMgr_InstallScan},
+{"Swordc::SWMgr_moduleCount", _wrap_SWMgr_moduleCount},
+{"Swordc::SWMgr_getModuleAt", _wrap_SWMgr_getModuleAt},
+{"Swordc::SWModule_terminateSearch_set", _wrap_SWModule_terminateSearch_set},
+{"Swordc::SWModule_terminateSearch_get", _wrap_SWModule_terminateSearch_get},
+{"Swordc::new_SWModule", _wrap_new_SWModule},
+{"Swordc::SWModule_Error", _wrap_SWModule_Error},
+{"Swordc::SWModule_isUnicode", _wrap_SWModule_isUnicode},
+{"Swordc::SWModule_getConfig", _wrap_SWModule_getConfig},
+{"Swordc::SWModule_getConfigEntry", _wrap_SWModule_getConfigEntry},
+{"Swordc::SWModule_SetKey", _wrap_SWModule_SetKey},
+{"Swordc::SWModule_Key", _wrap_SWModule_Key},
+{"Swordc::SWModule_CreateKey", _wrap_SWModule_CreateKey},
+{"Swordc::SWModule_KeyText", _wrap_SWModule_KeyText},
+{"Swordc::SWModule_Display", _wrap_SWModule_Display},
+{"Swordc::SWModule_nullPercent", _wrap_SWModule_nullPercent},
+{"Swordc::SWModule_Search", _wrap_SWModule_Search},
+{"Swordc::SWModule_createSearchFramework", _wrap_SWModule_createSearchFramework},
+{"Swordc::SWModule_hasSearchFramework", _wrap_SWModule_hasSearchFramework},
+{"Swordc::SWModule_isSearchOptimallySupported", _wrap_SWModule_isSearchOptimallySupported},
+{"Swordc::SWModule_next", _wrap_SWModule_next},
+{"Swordc::SWModule_prev", _wrap_SWModule_prev},
+{"Swordc::SWModule_inc", _wrap_SWModule_inc},
+{"Swordc::SWModule_dec", _wrap_SWModule_dec},
+{"Swordc::SWModule_setPosition", _wrap_SWModule_setPosition},
+{"Swordc::SWModule_top", _wrap_SWModule_top},
+{"Swordc::SWModule_bottom", _wrap_SWModule_bottom},
+{"Swordc::SWModule_text", _wrap_SWModule_text},
+{"Swordc::SWModule_StripText", _wrap_SWModule_StripText},
+{"Swordc::SWModule_getRawEntry", _wrap_SWModule_getRawEntry},
+{"Swordc::SWModule_setSkipConsecutiveLinks", _wrap_SWModule_setSkipConsecutiveLinks},
+{"Swordc::SWModule_getSkipConsecutiveLinks", _wrap_SWModule_getSkipConsecutiveLinks},
+{"Swordc::SWModule_getEntryAttributes", _wrap_SWModule_getEntryAttributes},
+{"Swordc::SWModule_processEntryAttributes", _wrap_SWModule_processEntryAttributes},
+{"Swordc::SWModule_isProcessEntryAttributes", _wrap_SWModule_isProcessEntryAttributes},
+{"Swordc::SWModule_Name", _wrap_SWModule_Name},
+{"Swordc::SWModule_Description", _wrap_SWModule_Description},
+{"Swordc::SWModule_Type", _wrap_SWModule_Type},
+{"Swordc::SWModule_Direction", _wrap_SWModule_Direction},
+{"Swordc::SWModule_Encoding", _wrap_SWModule_Encoding},
+{"Swordc::SWModule_Markup", _wrap_SWModule_Markup},
+{"Swordc::SWModule_Lang", _wrap_SWModule_Lang},
+{"Swordc::SWModule_isWritable", _wrap_SWModule_isWritable},
+{"Swordc::SWModule_createModule", _wrap_SWModule_createModule},
+{"Swordc::SWModule_setEntry", _wrap_SWModule_setEntry},
+{"Swordc::SWModule_deleteEntry", _wrap_SWModule_deleteEntry},
+{"Swordc::SWModule_write", _wrap_SWModule_write},
+{"Swordc::SWModule_writeLink", _wrap_SWModule_writeLink},
+{"Swordc::delete_SWModule", _wrap_delete_SWModule},
+{"Swordc::new_SW_POSITION", _wrap_new_SW_POSITION},
+{"Swordc::delete_SW_POSITION", _wrap_delete_SW_POSITION},
+{"Swordc::new_SWKey", _wrap_new_SWKey},
+{"Swordc::SWKey_clone", _wrap_SWKey_clone},
+{"Swordc::delete_SWKey", _wrap_delete_SWKey},
+{"Swordc::SWKey_Persist", _wrap_SWKey_Persist},
+{"Swordc::SWKey_setPersist", _wrap_SWKey_setPersist},
+{"Swordc::SWKey_Error", _wrap_SWKey_Error},
+{"Swordc::SWKey_setText", _wrap_SWKey_setText},
+{"Swordc::SWKey_getText", _wrap_SWKey_getText},
+{"Swordc::SWKey_getShortText", _wrap_SWKey_getShortText},
+{"Swordc::SWKey_compare", _wrap_SWKey_compare},
+{"Swordc::SWKey_equals", _wrap_SWKey_equals},
+{"Swordc::SWKey_decrement", _wrap_SWKey_decrement},
+{"Swordc::SWKey_increment", _wrap_SWKey_increment},
+{"Swordc::SWKey_Traversable", _wrap_SWKey_Traversable},
+{"Swordc::SWKey_Index", _wrap_SWKey_Index},
+{"Swordc::SWKey_next", _wrap_SWKey_next},
+{"Swordc::SWKey_prev", _wrap_SWKey_prev},
+{"Swordc::SWKey_setKey", _wrap_SWKey_setKey},
+{"Swordc::SWKey_toVerseKey", _wrap_SWKey_toVerseKey},
+{"Swordc::new_VerseKey", _wrap_new_VerseKey},
+{"Swordc::delete_VerseKey", _wrap_delete_VerseKey},
+{"Swordc::VerseKey_clone", _wrap_VerseKey_clone},
+{"Swordc::VerseKey_LowerBound", _wrap_VerseKey_LowerBound},
+{"Swordc::VerseKey_UpperBound", _wrap_VerseKey_UpperBound},
+{"Swordc::VerseKey_ClearBounds", _wrap_VerseKey_ClearBounds},
+{"Swordc::VerseKey_ParseVerseList", _wrap_VerseKey_ParseVerseList},
+{"Swordc::VerseKey_setText", _wrap_VerseKey_setText},
+{"Swordc::VerseKey_getText", _wrap_VerseKey_getText},
+{"Swordc::VerseKey_getRangeText", _wrap_VerseKey_getRangeText},
+{"Swordc::VerseKey_getShortText", _wrap_VerseKey_getShortText},
+{"Swordc::VerseKey_Traversable", _wrap_VerseKey_Traversable},
+{"Swordc::VerseKey_decrement", _wrap_VerseKey_decrement},
+{"Swordc::VerseKey_increment", _wrap_VerseKey_increment},
+{"Swordc::VerseKey_getBookName", _wrap_VerseKey_getBookName},
+{"Swordc::VerseKey_getBookAbbrev", _wrap_VerseKey_getBookAbbrev},
+{"Swordc::VerseKey_Testament", _wrap_VerseKey_Testament},
+{"Swordc::VerseKey_Book", _wrap_VerseKey_Book},
+{"Swordc::VerseKey_Chapter", _wrap_VerseKey_Chapter},
+{"Swordc::VerseKey_Verse", _wrap_VerseKey_Verse},
+{"Swordc::VerseKey_Normalize", _wrap_VerseKey_Normalize},
+{"Swordc::VerseKey_AutoNormalize", _wrap_VerseKey_AutoNormalize},
+{"Swordc::VerseKey_Headings", _wrap_VerseKey_Headings},
+{"Swordc::VerseKey_getOSISRef", _wrap_VerseKey_getOSISRef},
+{"Swordc::VerseKey_compare", _wrap_VerseKey_compare},
+{"Swordc::VerseKey__compare", _wrap_VerseKey__compare},
+{"Swordc::VerseKey_setLocale", _wrap_VerseKey_setLocale},
+{"Swordc::VerseKey_getLocale", _wrap_VerseKey_getLocale},
+{"Swordc::VerseKey_bookCount", _wrap_VerseKey_bookCount},
+{"Swordc::VerseKey_bookName", _wrap_VerseKey_bookName},
+{"Swordc::VerseKey_chapterCount", _wrap_VerseKey_chapterCount},
+{"Swordc::VerseKey_verseCount", _wrap_VerseKey_verseCount},
+{"Swordc::new_ListKey", _wrap_new_ListKey},
+{"Swordc::delete_ListKey", _wrap_delete_ListKey},
+{"Swordc::ListKey_clone", _wrap_ListKey_clone},
+{"Swordc::ListKey_ClearList", _wrap_ListKey_ClearList},
+{"Swordc::ListKey_Count", _wrap_ListKey_Count},
+{"Swordc::ListKey_Remove", _wrap_ListKey_Remove},
+{"Swordc::ListKey_SetToElement", _wrap_ListKey_SetToElement},
+{"Swordc::ListKey_GetElement", _wrap_ListKey_GetElement},
+{"Swordc::ListKey_add", _wrap_ListKey_add},
+{"Swordc::ListKey_copyFrom", _wrap_ListKey_copyFrom},
+{"Swordc::ListKey_setPosition", _wrap_ListKey_setPosition},
+{"Swordc::ListKey_decrement", _wrap_ListKey_decrement},
+{"Swordc::ListKey_increment", _wrap_ListKey_increment},
+{"Swordc::ListKey_Traversable", _wrap_ListKey_Traversable},
+{"Swordc::ListKey_Index", _wrap_ListKey_Index},
+{"Swordc::TreeKey_getLocalName", _wrap_TreeKey_getLocalName},
+{"Swordc::TreeKey_setLocalName", _wrap_TreeKey_setLocalName},
+{"Swordc::TreeKey_getUserData", _wrap_TreeKey_getUserData},
+{"Swordc::TreeKey_setUserData", _wrap_TreeKey_setUserData},
+{"Swordc::TreeKey_getFullName", _wrap_TreeKey_getFullName},
+{"Swordc::TreeKey_root", _wrap_TreeKey_root},
+{"Swordc::TreeKey_parent", _wrap_TreeKey_parent},
+{"Swordc::TreeKey_firstChild", _wrap_TreeKey_firstChild},
+{"Swordc::TreeKey_nextSibling", _wrap_TreeKey_nextSibling},
+{"Swordc::TreeKey_previousSibling", _wrap_TreeKey_previousSibling},
+{"Swordc::TreeKey_hasChildren", _wrap_TreeKey_hasChildren},
+{"Swordc::TreeKey_append", _wrap_TreeKey_append},
+{"Swordc::TreeKey_appendChild", _wrap_TreeKey_appendChild},
+{"Swordc::TreeKey_insertBefore", _wrap_TreeKey_insertBefore},
+{"Swordc::TreeKey_remove", _wrap_TreeKey_remove},
+{"Swordc::TreeKey_setOffset", _wrap_TreeKey_setOffset},
+{"Swordc::TreeKey_getOffset", _wrap_TreeKey_getOffset},
+{"Swordc::TreeKey_setPosition", _wrap_TreeKey_setPosition},
+{"Swordc::TreeKey_Traversable", _wrap_TreeKey_Traversable},
+{"Swordc::TreeKey_Index", _wrap_TreeKey_Index},
+{"Swordc::delete_TreeKeyIdx", _wrap_delete_TreeKeyIdx},
+{"Swordc::TreeKeyIdx_save", _wrap_TreeKeyIdx_save},
+{"Swordc::TreeKeyIdx_copyFrom", _wrap_TreeKeyIdx_copyFrom},
+{"Swordc::TreeKeyIdx__compare", _wrap_TreeKeyIdx__compare},
+{"Swordc::TreeKeyIdx_create", _wrap_TreeKeyIdx_create},
+{"Swordc::new_LocaleMgr", _wrap_new_LocaleMgr},
+{"Swordc::delete_LocaleMgr", _wrap_delete_LocaleMgr},
+{"Swordc::LocaleMgr_getLocale", _wrap_LocaleMgr_getLocale},
+{"Swordc::LocaleMgr_getAvailableLocales", _wrap_LocaleMgr_getAvailableLocales},
+{"Swordc::LocaleMgr_getDefaultLocaleName", _wrap_LocaleMgr_getDefaultLocaleName},
+{"Swordc::LocaleMgr_setDefaultLocaleName", _wrap_LocaleMgr_setDefaultLocaleName},
+{"Swordc::LocaleMgr_getSystemLocaleMgr", _wrap_LocaleMgr_getSystemLocaleMgr},
+{"Swordc::new_SWText", _wrap_new_SWText},
+{"Swordc::delete_SWText", _wrap_delete_SWText},
+{"Swordc::new_RawText", _wrap_new_RawText},
+{"Swordc::RawText_createModule", _wrap_RawText_createModule},
+{"Swordc::delete_RawText", _wrap_delete_RawText},
+{"Swordc::new_zText", _wrap_new_zText},
+{"Swordc::delete_zText", _wrap_delete_zText},
+{"Swordc::zText_createModule", _wrap_zText_createModule},
+{"Swordc::new_RawCom", _wrap_new_RawCom},
+{"Swordc::delete_RawCom", _wrap_delete_RawCom},
+{"Swordc::RawCom_createModule", _wrap_RawCom_createModule},
+{"Swordc::new_zCom", _wrap_new_zCom},
+{"Swordc::delete_zCom", _wrap_delete_zCom},
+{"Swordc::zCom_createModule", _wrap_zCom_createModule},
+{"Swordc::new_RawGenBook", _wrap_new_RawGenBook},
+{"Swordc::delete_RawGenBook", _wrap_delete_RawGenBook},
+{"Swordc::RawGenBook_createModule", _wrap_RawGenBook_createModule},
+{"Swordc::RawGenBook_getTreeKey", _wrap_RawGenBook_getTreeKey},
+{"Swordc::new_SWLD", _wrap_new_SWLD},
+{"Swordc::delete_SWLD", _wrap_delete_SWLD},
+{"Swordc::new_RawLD", _wrap_new_RawLD},
+{"Swordc::delete_RawLD", _wrap_delete_RawLD},
+{"Swordc::RawLD_createModule", _wrap_RawLD_createModule},
+{"Swordc::new_RawLD4", _wrap_new_RawLD4},
+{"Swordc::delete_RawLD4", _wrap_delete_RawLD4},
+{"Swordc::RawLD4_createModule", _wrap_RawLD4_createModule},
+{"Swordc::new_zLD", _wrap_new_zLD},
+{"Swordc::delete_zLD", _wrap_delete_zLD},
+{"Swordc::zLD_createModule", _wrap_zLD_createModule},
+{"Swordc::new_SWCompress", _wrap_new_SWCompress},
+{"Swordc::delete_SWCompress", _wrap_delete_SWCompress},
+{"Swordc::SWCompress_Buf", _wrap_SWCompress_Buf},
+{"Swordc::SWCompress_zBuf", _wrap_SWCompress_zBuf},
+{"Swordc::SWCompress_GetChars", _wrap_SWCompress_GetChars},
+{"Swordc::SWCompress_SendChars", _wrap_SWCompress_SendChars},
+{"Swordc::SWCompress_Encode", _wrap_SWCompress_Encode},
+{"Swordc::SWCompress_Decode", _wrap_SWCompress_Decode},
+{"Swordc::new_LZSSCompress", _wrap_new_LZSSCompress},
+{"Swordc::delete_LZSSCompress", _wrap_delete_LZSSCompress},
+{"Swordc::LZSSCompress_Encode", _wrap_LZSSCompress_Encode},
+{"Swordc::LZSSCompress_Decode", _wrap_LZSSCompress_Decode},
+{"Swordc::new_ZipCompress", _wrap_new_ZipCompress},
+{"Swordc::delete_ZipCompress", _wrap_delete_ZipCompress},
+{"Swordc::ZipCompress_Encode", _wrap_ZipCompress_Encode},
+{"Swordc::ZipCompress_Decode", _wrap_ZipCompress_Decode},
+{"Swordc::new_SWBuf", _wrap_new_SWBuf},
+{"Swordc::delete_SWBuf", _wrap_delete_SWBuf},
+{"Swordc::SWBuf_setFillByte", _wrap_SWBuf_setFillByte},
+{"Swordc::SWBuf_getFillByte", _wrap_SWBuf_getFillByte},
+{"Swordc::SWBuf_c_str", _wrap_SWBuf_c_str},
+{"Swordc::SWBuf_charAt", _wrap_SWBuf_charAt},
+{"Swordc::SWBuf_size", _wrap_SWBuf_size},
+{"Swordc::SWBuf_length", _wrap_SWBuf_length},
+{"Swordc::SWBuf_set", _wrap_SWBuf_set},
+{"Swordc::SWBuf_setSize", _wrap_SWBuf_setSize},
+{"Swordc::SWBuf_append", _wrap_SWBuf_append},
+{"Swordc::SWBuf_appendFormatted", _wrap_SWBuf_appendFormatted},
+{"Swordc::SWBuf_getRawData", _wrap_SWBuf_getRawData},
+{"Swordc::SWBuf_compare", _wrap_SWBuf_compare},
+{0,0}
+};
+
+#ifdef __cplusplus
+extern "C"
+#endif
+
+XS(SWIG_init) {
+ dXSARGS;
+ int i;
+ static int _init = 0;
+ if (!_init) {
+ for (i = 0; swig_types_initial[i]; i++) {
+ swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
+ }
+ _init = 1;
+ }
+
+ /* Install commands */
+ for (i = 0; swig_commands[i].name; i++) {
+ newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__);
+ }
+
+ /* Install variables */
+ for (i = 0; swig_variables[i].name; i++) {
+ SV *sv;
+ sv = perl_get_sv((char*) swig_variables[i].name, TRUE | 0x2);
+ if (swig_variables[i].type) {
+ SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
+ }else {
+ sv_setiv(sv,(IV) 0);
+ }
+ swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
+ }
+
+ /* Install constant */
+ for (i = 0; swig_constants[i].type; i++) {
+ SV *sv;
+ sv = perl_get_sv((char*)swig_constants[i].name, TRUE | 0x2);
+ switch(swig_constants[i].type) {
+ case SWIG_INT:
+ sv_setiv(sv, (IV) swig_constants[i].lvalue);
+ break;
+ case SWIG_FLOAT:
+ sv_setnv(sv, (double) swig_constants[i].dvalue);
+ break;
+ case SWIG_STRING:
+ sv_setpv(sv, (char *) swig_constants[i].pvalue);
+ break;
+ case SWIG_POINTER:
+ SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
+ break;
+ case SWIG_BINARY:
+ /* obj = SWIG_NewPackedObj(swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); */
+ break;
+ default:
+ break;
+ }
+ SvREADONLY_on(sv);
+ }
+
+ SWIG_TypeClientData(SWIGTYPE_p_SWConfig, (void*) "Sword::SWConfig");
+ SWIG_TypeClientData(SWIGTYPE_p_SWMgr, (void*) "Sword::SWMgr");
+ SWIG_TypeClientData(SWIGTYPE_p_SWModule, (void*) "Sword::SWModule");
+ SWIG_TypeClientData(SWIGTYPE_p_SW_POSITION, (void*) "Sword::SW_POSITION");
+ SWIG_TypeClientData(SWIGTYPE_p_SWKey, (void*) "Sword::SWKey");
+ SWIG_TypeClientData(SWIGTYPE_p_VerseKey, (void*) "Sword::VerseKey");
+ SWIG_TypeClientData(SWIGTYPE_p_ListKey, (void*) "Sword::ListKey");
+ SWIG_TypeClientData(SWIGTYPE_p_TreeKey, (void*) "Sword::TreeKey");
+ SWIG_TypeClientData(SWIGTYPE_p_TreeKeyIdx, (void*) "Sword::TreeKeyIdx");
+ SWIG_TypeClientData(SWIGTYPE_p_LocaleMgr, (void*) "Sword::LocaleMgr");
+ SWIG_TypeClientData(SWIGTYPE_p_SWFilterMgr, (void*) "Sword::SWFilterMgr");
+ SWIG_TypeClientData(SWIGTYPE_p_SWText, (void*) "Sword::SWText");
+ SWIG_TypeClientData(SWIGTYPE_p_RawText, (void*) "Sword::RawText");
+ SWIG_TypeClientData(SWIGTYPE_p_zText, (void*) "Sword::zText");
+ SWIG_TypeClientData(SWIGTYPE_p_SWCom, (void*) "Sword::SWCom");
+ SWIG_TypeClientData(SWIGTYPE_p_RawCom, (void*) "Sword::RawCom");
+ SWIG_TypeClientData(SWIGTYPE_p_zCom, (void*) "Sword::zCom");
+ SWIG_TypeClientData(SWIGTYPE_p_SWGenBook, (void*) "Sword::SWGenBook");
+ SWIG_TypeClientData(SWIGTYPE_p_RawGenBook, (void*) "Sword::RawGenBook");
+ SWIG_TypeClientData(SWIGTYPE_p_SWLD, (void*) "Sword::SWLD");
+ SWIG_TypeClientData(SWIGTYPE_p_RawLD, (void*) "Sword::RawLD");
+ SWIG_TypeClientData(SWIGTYPE_p_RawLD4, (void*) "Sword::RawLD4");
+ SWIG_TypeClientData(SWIGTYPE_p_zLD, (void*) "Sword::zLD");
+ SWIG_TypeClientData(SWIGTYPE_p_SWCompress, (void*) "Sword::SWCompress");
+ SWIG_TypeClientData(SWIGTYPE_p_LZSSCompress, (void*) "Sword::LZSSCompress");
+ SWIG_TypeClientData(SWIGTYPE_p_ZipCompress, (void*) "Sword::ZipCompress");
+ SWIG_TypeClientData(SWIGTYPE_p_SWBuf, (void*) "Sword::SWBuf");
+ ST(0) = &PL_sv_yes;
+ XSRETURN(1);
+}
+
diff --git a/bindings/swig/perl/Sword.pm b/bindings/swig/perl/Sword.pm
new file mode 100644
index 0000000..1b76a95
--- /dev/null
+++ b/bindings/swig/perl/Sword.pm
@@ -0,0 +1,1426 @@
+# This file was automatically generated by SWIG
+package Sword;
+require Exporter;
+require DynaLoader;
+@ISA = qw(Exporter DynaLoader);
+package Swordc;
+bootstrap Sword;
+package Sword;
+@EXPORT = qw( );
+
+# ---------- BASE METHODS -------------
+
+package Sword;
+
+sub TIEHASH {
+ my ($classname,$obj) = @_;
+ return bless $obj, $classname;
+}
+
+sub CLEAR { }
+
+sub FIRSTKEY { }
+
+sub NEXTKEY { }
+
+sub this {
+ my $ptr = shift;
+ return tied(%$ptr);
+}
+
+
+# ------- FUNCTION WRAPPERS --------
+
+package Sword;
+
+
+############# Class : Sword::SWConfig ##############
+
+package Sword::SWConfig;
+@ISA = qw( Sword );
+%OWNER = ();
+%BLESSEDMEMBERS = (
+ filename => 'Sword::SWBuf',
+);
+
+%ITERATORS = ();
+*swig_filename_get = *Swordc::SWConfig_filename_get;
+*swig_filename_set = *Swordc::SWConfig_filename_set;
+*swig_Sections_get = *Swordc::SWConfig_Sections_get;
+*swig_Sections_set = *Swordc::SWConfig_Sections_set;
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWConfig(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWConfig", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWConfig($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Load = *Swordc::SWConfig_Load;
+*Save = *Swordc::SWConfig_Save;
+*set = *Swordc::SWConfig_set;
+*get = *Swordc::SWConfig_get;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+sub FETCH {
+ my ($self,$field) = @_;
+ my $member_func = "swig_${field}_get";
+ my $val = $self->$member_func();
+ if (exists $BLESSEDMEMBERS{$field}) {
+ return undef if (!defined($val));
+ my %retval;
+ tie %retval,$BLESSEDMEMBERS{$field},$val;
+ return bless \%retval, $BLESSEDMEMBERS{$field};
+ }
+ return $val;
+}
+
+sub STORE {
+ my ($self,$field,$newval) = @_;
+ my $member_func = "swig_${field}_set";
+ if (exists $BLESSEDMEMBERS{$field}) {
+ $self->$member_func(tied(%{$newval}));
+ } else {
+ $self->$member_func($newval);
+ }
+}
+
+
+############# Class : Sword::SWMgr ##############
+
+package Sword::SWMgr;
+@ISA = qw( Sword );
+%OWNER = ();
+%BLESSEDMEMBERS = (
+ config => 'Sword::SWConfig',
+ sysconfig => 'Sword::SWConfig',
+);
+
+%ITERATORS = ();
+*findConfig = *Swordc::SWMgr_findConfig;
+*swig_config_get = *Swordc::SWMgr_config_get;
+*swig_config_set = *Swordc::SWMgr_config_set;
+*swig_sysconfig_get = *Swordc::SWMgr_sysconfig_get;
+*swig_sysconfig_set = *Swordc::SWMgr_sysconfig_set;
+*swig_Modules_get = *Swordc::SWMgr_Modules_get;
+*swig_Modules_set = *Swordc::SWMgr_Modules_set;
+*swig_prefixPath_get = *Swordc::SWMgr_prefixPath_get;
+*swig_prefixPath_set = *Swordc::SWMgr_prefixPath_set;
+*swig_configPath_get = *Swordc::SWMgr_configPath_get;
+*swig_configPath_set = *Swordc::SWMgr_configPath_set;
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWMgr(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWMgr", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWMgr($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Load = *Swordc::SWMgr_Load;
+*setGlobalOption = *Swordc::SWMgr_setGlobalOption;
+*getGlobalOption = *Swordc::SWMgr_getGlobalOption;
+*getGlobalOptionTip = *Swordc::SWMgr_getGlobalOptionTip;
+*getGlobalOptions = *Swordc::SWMgr_getGlobalOptions;
+*getGlobalOptionValues = *Swordc::SWMgr_getGlobalOptionValues;
+*setCipherKey = *Swordc::SWMgr_setCipherKey;
+sub getModule {
+ my @args = @_;
+ my $result = Swordc::SWMgr_getModule(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*InstallScan = *Swordc::SWMgr_InstallScan;
+*moduleCount = *Swordc::SWMgr_moduleCount;
+sub getModuleAt {
+ my @args = @_;
+ my $result = Swordc::SWMgr_getModuleAt(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+sub FETCH {
+ my ($self,$field) = @_;
+ my $member_func = "swig_${field}_get";
+ my $val = $self->$member_func();
+ if (exists $BLESSEDMEMBERS{$field}) {
+ return undef if (!defined($val));
+ my %retval;
+ tie %retval,$BLESSEDMEMBERS{$field},$val;
+ return bless \%retval, $BLESSEDMEMBERS{$field};
+ }
+ return $val;
+}
+
+sub STORE {
+ my ($self,$field,$newval) = @_;
+ my $member_func = "swig_${field}_set";
+ if (exists $BLESSEDMEMBERS{$field}) {
+ $self->$member_func(tied(%{$newval}));
+ } else {
+ $self->$member_func($newval);
+ }
+}
+
+
+############# Class : Sword::SWModule ##############
+
+package Sword::SWModule;
+@ISA = qw( Sword );
+%OWNER = ();
+%BLESSEDMEMBERS = (
+);
+
+%ITERATORS = ();
+*swig_terminateSearch_get = *Swordc::SWModule_terminateSearch_get;
+*swig_terminateSearch_set = *Swordc::SWModule_terminateSearch_set;
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWModule(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWModule", $self;
+ return bless \%retval, $pkg;
+}
+
+*Error = *Swordc::SWModule_Error;
+*isUnicode = *Swordc::SWModule_isUnicode;
+*getConfig = *Swordc::SWModule_getConfig;
+*getConfigEntry = *Swordc::SWModule_getConfigEntry;
+*SetKey = *Swordc::SWModule_SetKey;
+sub Key {
+ my @args = @_;
+ my $result = Swordc::SWModule_Key(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub CreateKey {
+ my @args = @_;
+ my $result = Swordc::SWModule_CreateKey(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*KeyText = *Swordc::SWModule_KeyText;
+*Display = *Swordc::SWModule_Display;
+*nullPercent = *Swordc::SWModule_nullPercent;
+sub Search {
+ my @args = @_;
+ my $result = Swordc::SWModule_Search(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*createSearchFramework = *Swordc::SWModule_createSearchFramework;
+*hasSearchFramework = *Swordc::SWModule_hasSearchFramework;
+*isSearchOptimallySupported = *Swordc::SWModule_isSearchOptimallySupported;
+*next = *Swordc::SWModule_next;
+*prev = *Swordc::SWModule_prev;
+*inc = *Swordc::SWModule_inc;
+*dec = *Swordc::SWModule_dec;
+*setPosition = *Swordc::SWModule_setPosition;
+*top = *Swordc::SWModule_top;
+*bottom = *Swordc::SWModule_bottom;
+*text = *Swordc::SWModule_text;
+*StripText = *Swordc::SWModule_StripText;
+*getRawEntry = *Swordc::SWModule_getRawEntry;
+*setSkipConsecutiveLinks = *Swordc::SWModule_setSkipConsecutiveLinks;
+*getSkipConsecutiveLinks = *Swordc::SWModule_getSkipConsecutiveLinks;
+*getEntryAttributes = *Swordc::SWModule_getEntryAttributes;
+*processEntryAttributes = *Swordc::SWModule_processEntryAttributes;
+*isProcessEntryAttributes = *Swordc::SWModule_isProcessEntryAttributes;
+*Name = *Swordc::SWModule_Name;
+*Description = *Swordc::SWModule_Description;
+*Type = *Swordc::SWModule_Type;
+*Direction = *Swordc::SWModule_Direction;
+*Encoding = *Swordc::SWModule_Encoding;
+*Markup = *Swordc::SWModule_Markup;
+*Lang = *Swordc::SWModule_Lang;
+*isWritable = *Swordc::SWModule_isWritable;
+*createModule = *Swordc::SWModule_createModule;
+*setEntry = *Swordc::SWModule_setEntry;
+*deleteEntry = *Swordc::SWModule_deleteEntry;
+*write = *Swordc::SWModule_write;
+*writeLink = *Swordc::SWModule_writeLink;
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWModule($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+sub FETCH {
+ my ($self,$field) = @_;
+ my $member_func = "swig_${field}_get";
+ my $val = $self->$member_func();
+ if (exists $BLESSEDMEMBERS{$field}) {
+ return undef if (!defined($val));
+ my %retval;
+ tie %retval,$BLESSEDMEMBERS{$field},$val;
+ return bless \%retval, $BLESSEDMEMBERS{$field};
+ }
+ return $val;
+}
+
+sub STORE {
+ my ($self,$field,$newval) = @_;
+ my $member_func = "swig_${field}_set";
+ if (exists $BLESSEDMEMBERS{$field}) {
+ $self->$member_func(tied(%{$newval}));
+ } else {
+ $self->$member_func($newval);
+ }
+}
+
+
+############# Class : Sword::SW_POSITION ##############
+
+package Sword::SW_POSITION;
+@ISA = qw( Sword );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SW_POSITION(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SW_POSITION", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SW_POSITION($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWKey ##############
+
+package Sword::SWKey;
+@ISA = qw( Sword );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWKey(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWKey", $self;
+ return bless \%retval, $pkg;
+}
+
+sub clone {
+ my @args = @_;
+ my $result = Swordc::SWKey_clone(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWKey($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Persist = *Swordc::SWKey_Persist;
+*setPersist = *Swordc::SWKey_setPersist;
+*Error = *Swordc::SWKey_Error;
+*setText = *Swordc::SWKey_setText;
+*getText = *Swordc::SWKey_getText;
+*getShortText = *Swordc::SWKey_getShortText;
+*compare = *Swordc::SWKey_compare;
+*equals = *Swordc::SWKey_equals;
+*decrement = *Swordc::SWKey_decrement;
+*increment = *Swordc::SWKey_increment;
+*Traversable = *Swordc::SWKey_Traversable;
+*Index = *Swordc::SWKey_Index;
+*next = *Swordc::SWKey_next;
+*prev = *Swordc::SWKey_prev;
+*setKey = *Swordc::SWKey_setKey;
+sub toVerseKey {
+ my @args = @_;
+ my $result = Swordc::SWKey_toVerseKey(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::VerseKey ##############
+
+package Sword::VerseKey;
+@ISA = qw( Sword Sword::SWKey );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_VerseKey(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::VerseKey", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_VerseKey($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub clone {
+ my @args = @_;
+ my $result = Swordc::VerseKey_clone(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub LowerBound {
+ my @args = @_;
+ my $result = Swordc::VerseKey_LowerBound(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub UpperBound {
+ my @args = @_;
+ my $result = Swordc::VerseKey_UpperBound(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*ClearBounds = *Swordc::VerseKey_ClearBounds;
+sub ParseVerseList {
+ my @args = @_;
+ my $result = Swordc::VerseKey_ParseVerseList(@args);
+ return undef if (!defined($result));
+ $Sword::ListKey::OWNER{$result} = 1;
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*setText = *Swordc::VerseKey_setText;
+*getText = *Swordc::VerseKey_getText;
+*getRangeText = *Swordc::VerseKey_getRangeText;
+*getShortText = *Swordc::VerseKey_getShortText;
+*Traversable = *Swordc::VerseKey_Traversable;
+*decrement = *Swordc::VerseKey_decrement;
+*increment = *Swordc::VerseKey_increment;
+*getBookName = *Swordc::VerseKey_getBookName;
+*getBookAbbrev = *Swordc::VerseKey_getBookAbbrev;
+*Testament = *Swordc::VerseKey_Testament;
+*Book = *Swordc::VerseKey_Book;
+*Chapter = *Swordc::VerseKey_Chapter;
+*Verse = *Swordc::VerseKey_Verse;
+*Normalize = *Swordc::VerseKey_Normalize;
+*AutoNormalize = *Swordc::VerseKey_AutoNormalize;
+*Headings = *Swordc::VerseKey_Headings;
+*getOSISRef = *Swordc::VerseKey_getOSISRef;
+*compare = *Swordc::VerseKey_compare;
+*_compare = *Swordc::VerseKey__compare;
+*setLocale = *Swordc::VerseKey_setLocale;
+*getLocale = *Swordc::VerseKey_getLocale;
+*bookCount = *Swordc::VerseKey_bookCount;
+*bookName = *Swordc::VerseKey_bookName;
+*chapterCount = *Swordc::VerseKey_chapterCount;
+*verseCount = *Swordc::VerseKey_verseCount;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::ListKey ##############
+
+package Sword::ListKey;
+@ISA = qw( Sword Sword::SWKey );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_ListKey(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::ListKey", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_ListKey($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub clone {
+ my @args = @_;
+ my $result = Swordc::ListKey_clone(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*ClearList = *Swordc::ListKey_ClearList;
+*Count = *Swordc::ListKey_Count;
+*Remove = *Swordc::ListKey_Remove;
+*SetToElement = *Swordc::ListKey_SetToElement;
+sub GetElement {
+ my @args = @_;
+ my $result = Swordc::ListKey_GetElement(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+*add = *Swordc::ListKey_add;
+*copyFrom = *Swordc::ListKey_copyFrom;
+*setPosition = *Swordc::ListKey_setPosition;
+*decrement = *Swordc::ListKey_decrement;
+*increment = *Swordc::ListKey_increment;
+*Traversable = *Swordc::ListKey_Traversable;
+*Index = *Swordc::ListKey_Index;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::TreeKey ##############
+
+package Sword::TreeKey;
+@ISA = qw( Sword Sword::SWKey );
+%OWNER = ();
+*getLocalName = *Swordc::TreeKey_getLocalName;
+*setLocalName = *Swordc::TreeKey_setLocalName;
+*getUserData = *Swordc::TreeKey_getUserData;
+*setUserData = *Swordc::TreeKey_setUserData;
+*getFullName = *Swordc::TreeKey_getFullName;
+*root = *Swordc::TreeKey_root;
+*parent = *Swordc::TreeKey_parent;
+*firstChild = *Swordc::TreeKey_firstChild;
+*nextSibling = *Swordc::TreeKey_nextSibling;
+*previousSibling = *Swordc::TreeKey_previousSibling;
+*hasChildren = *Swordc::TreeKey_hasChildren;
+*append = *Swordc::TreeKey_append;
+*appendChild = *Swordc::TreeKey_appendChild;
+*insertBefore = *Swordc::TreeKey_insertBefore;
+*remove = *Swordc::TreeKey_remove;
+*setOffset = *Swordc::TreeKey_setOffset;
+*getOffset = *Swordc::TreeKey_getOffset;
+*setPosition = *Swordc::TreeKey_setPosition;
+*Traversable = *Swordc::TreeKey_Traversable;
+*Index = *Swordc::TreeKey_Index;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::TreeKeyIdx ##############
+
+package Sword::TreeKeyIdx;
+@ISA = qw( Sword Sword::TreeKey );
+%OWNER = ();
+%ITERATORS = ();
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_TreeKeyIdx($self);
+ delete $OWNER{$self};
+ }
+}
+
+*save = *Swordc::TreeKeyIdx_save;
+*copyFrom = *Swordc::TreeKeyIdx_copyFrom;
+*_compare = *Swordc::TreeKeyIdx__compare;
+*create = *Swordc::TreeKeyIdx_create;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::LocaleMgr ##############
+
+package Sword::LocaleMgr;
+@ISA = qw( Sword );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_LocaleMgr(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::LocaleMgr", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_LocaleMgr($self);
+ delete $OWNER{$self};
+ }
+}
+
+*getLocale = *Swordc::LocaleMgr_getLocale;
+*getAvailableLocales = *Swordc::LocaleMgr_getAvailableLocales;
+*getDefaultLocaleName = *Swordc::LocaleMgr_getDefaultLocaleName;
+*setDefaultLocaleName = *Swordc::LocaleMgr_setDefaultLocaleName;
+sub getSystemLocaleMgr {
+ my @args = @_;
+ my $result = Swordc::LocaleMgr_getSystemLocaleMgr(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWFilterMgr ##############
+
+package Sword::SWFilterMgr;
+@ISA = qw( Sword );
+%OWNER = ();
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWText ##############
+
+package Sword::SWText;
+@ISA = qw( Sword Sword::SWModule );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWText(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWText", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWText($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::RawText ##############
+
+package Sword::RawText;
+@ISA = qw( Sword Sword::SWText );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_RawText(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::RawText", $self;
+ return bless \%retval, $pkg;
+}
+
+*createModule = *Swordc::RawText_createModule;
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_RawText($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::zText ##############
+
+package Sword::zText;
+@ISA = qw( Sword Sword::SWText );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_zText(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::zText", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_zText($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::zText_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWCom ##############
+
+package Sword::SWCom;
+@ISA = qw( Sword Sword::SWModule );
+%OWNER = ();
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::RawCom ##############
+
+package Sword::RawCom;
+@ISA = qw( Sword Sword::SWCom );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_RawCom(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::RawCom", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_RawCom($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::RawCom_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::zCom ##############
+
+package Sword::zCom;
+@ISA = qw( Sword Sword::SWCom );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_zCom(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::zCom", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_zCom($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::zCom_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWGenBook ##############
+
+package Sword::SWGenBook;
+@ISA = qw( Sword Sword::SWModule );
+%OWNER = ();
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::RawGenBook ##############
+
+package Sword::RawGenBook;
+@ISA = qw( Sword Sword::SWGenBook );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_RawGenBook(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::RawGenBook", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_RawGenBook($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::RawGenBook_createModule;
+sub getTreeKey {
+ my @args = @_;
+ my $result = Swordc::RawGenBook_getTreeKey(@args);
+ return undef if (!defined($result));
+ my %resulthash;
+ tie %resulthash, ref($result), $result;
+ return bless \%resulthash, ref($result);
+}
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWLD ##############
+
+package Sword::SWLD;
+@ISA = qw( Sword Sword::SWModule );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWLD(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWLD", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWLD($self);
+ delete $OWNER{$self};
+ }
+}
+
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::RawLD ##############
+
+package Sword::RawLD;
+@ISA = qw( Sword Sword::SWLD );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_RawLD(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::RawLD", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_RawLD($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::RawLD_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::RawLD4 ##############
+
+package Sword::RawLD4;
+@ISA = qw( Sword Sword::SWLD );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_RawLD4(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::RawLD4", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_RawLD4($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::RawLD4_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::zLD ##############
+
+package Sword::zLD;
+@ISA = qw( Sword Sword::SWLD );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_zLD(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::zLD", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_zLD($self);
+ delete $OWNER{$self};
+ }
+}
+
+*createModule = *Swordc::zLD_createModule;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWCompress ##############
+
+package Sword::SWCompress;
+@ISA = qw( Sword );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWCompress(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWCompress", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWCompress($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Buf = *Swordc::SWCompress_Buf;
+*zBuf = *Swordc::SWCompress_zBuf;
+*GetChars = *Swordc::SWCompress_GetChars;
+*SendChars = *Swordc::SWCompress_SendChars;
+*Encode = *Swordc::SWCompress_Encode;
+*Decode = *Swordc::SWCompress_Decode;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::LZSSCompress ##############
+
+package Sword::LZSSCompress;
+@ISA = qw( Sword Sword::SWCompress );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_LZSSCompress(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::LZSSCompress", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_LZSSCompress($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Encode = *Swordc::LZSSCompress_Encode;
+*Decode = *Swordc::LZSSCompress_Decode;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::ZipCompress ##############
+
+package Sword::ZipCompress;
+@ISA = qw( Sword Sword::SWCompress );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_ZipCompress(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::ZipCompress", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_ZipCompress($self);
+ delete $OWNER{$self};
+ }
+}
+
+*Encode = *Swordc::ZipCompress_Encode;
+*Decode = *Swordc::ZipCompress_Decode;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+############# Class : Sword::SWBuf ##############
+
+package Sword::SWBuf;
+@ISA = qw( Sword );
+%OWNER = ();
+%ITERATORS = ();
+sub new {
+ my $pkg = shift;
+ my @args = @_;
+ my $self = Swordc::new_SWBuf(@args);
+ return undef if (!defined($self));
+ $OWNER{$self} = 1;
+ my %retval;
+ tie %retval, "Sword::SWBuf", $self;
+ return bless \%retval, $pkg;
+}
+
+sub DESTROY {
+ return unless $_[0]->isa('HASH');
+ my $self = tied(%{$_[0]});
+ return unless defined $self;
+ delete $ITERATORS{$self};
+ if (exists $OWNER{$self}) {
+ Swordc::delete_SWBuf($self);
+ delete $OWNER{$self};
+ }
+}
+
+*setFillByte = *Swordc::SWBuf_setFillByte;
+*getFillByte = *Swordc::SWBuf_getFillByte;
+*c_str = *Swordc::SWBuf_c_str;
+*charAt = *Swordc::SWBuf_charAt;
+*size = *Swordc::SWBuf_size;
+*length = *Swordc::SWBuf_length;
+*set = *Swordc::SWBuf_set;
+*setSize = *Swordc::SWBuf_setSize;
+*append = *Swordc::SWBuf_append;
+*appendFormatted = *Swordc::SWBuf_appendFormatted;
+*getRawData = *Swordc::SWBuf_getRawData;
+*compare = *Swordc::SWBuf_compare;
+sub DISOWN {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ delete $OWNER{$ptr};
+ };
+
+sub ACQUIRE {
+ my $self = shift;
+ my $ptr = tied(%$self);
+ $OWNER{$ptr} = 1;
+ };
+
+
+# ------- VARIABLE STUBS --------
+
+package Sword;
+
+1;
diff --git a/bindings/swig/perl/test.pl b/bindings/swig/perl/test.pl
new file mode 100644
index 0000000..b93986f
--- /dev/null
+++ b/bindings/swig/perl/test.pl
@@ -0,0 +1,17 @@
+# Before `make install' is performed this script should be runnable with
+# `make test'. After `make install' it should work as `perl test.pl'
+
+#########################
+
+# change 'tests => 1' to 'tests => last_test_to_print';
+
+use Test;
+BEGIN { plan tests => 1 };
+use Sword;
+ok(1); # If we made it this far, we're ok.
+
+#########################
+
+# Insert your test code below, the Test module is use()ed here so read
+# its man page ( perldoc Test ) for help writing this test script.
+
diff --git a/bindings/swig/php/Sword.cpp b/bindings/swig/php/Sword.cpp
new file mode 100644
index 0000000..0d98a47
--- /dev/null
+++ b/bindings/swig/php/Sword.cpp
@@ -0,0 +1,10396 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.15u-20021007-2154
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+
+#ifdef __cplusplus
+template<class T> class SwigValueWrapper {
+ T *tt;
+public:
+ inline SwigValueWrapper() : tt(0) { }
+ inline ~SwigValueWrapper() { if (tt) delete tt; }
+ inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
+ inline operator T&() const { return *tt; }
+ inline T *operator&() { return tt; }
+};
+#endif
+
+/***********************************************************************
+ * common.swg
+ *
+ * This file contains generic SWIG runtime support for pointer
+ * type checking as well as a few commonly used macros to control
+ * external linkage.
+ *
+ * Author : David Beazley (beazley@cs.uchicago.edu)
+ *
+ * Copyright (c) 1999-2000, The University of Chicago
+ *
+ * This file may be freely redistributed without license or fee provided
+ * this copyright message remains intact.
+ ************************************************************************/
+
+#include <string.h>
+
+#if defined(_WIN32) || defined(__WIN32__)
+# if defined(_MSC_VER)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) extern a
+# else
+# define SWIGEXPORT(a) __declspec(dllexport) a
+# define SWIGIMPORT(a) extern a
+# endif
+# else
+# if defined(__BORLANDC__)
+# define SWIGEXPORT(a) a _export
+# define SWIGIMPORT(a) a _export
+# else
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
+# endif
+# endif
+#else
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
+#endif
+
+#ifdef SWIG_GLOBAL
+#define SWIGRUNTIME(a) SWIGEXPORT(a)
+#else
+#define SWIGRUNTIME(a) static a
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *(*swig_converter_func)(void *);
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
+
+typedef struct swig_type_info {
+ const char *name;
+ swig_converter_func converter;
+ const char *str;
+ void *clientdata;
+ swig_dycast_func dcast;
+ struct swig_type_info *next;
+ struct swig_type_info *prev;
+} swig_type_info;
+
+#ifdef SWIG_NOINCLUDE
+
+SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
+SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
+SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
+SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
+SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
+SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
+
+#else
+
+static swig_type_info *swig_type_list = 0;
+
+/* Register a type mapping with the type-checking */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeRegister(swig_type_info *ti)
+{
+ swig_type_info *tc, *head, *ret, *next;
+ /* Check to see if this type has already been registered */
+ tc = swig_type_list;
+ while (tc) {
+ if (strcmp(tc->name, ti->name) == 0) {
+ /* Already exists in the table. Just add additional types to the list */
+ if (tc->clientdata) ti->clientdata = tc->clientdata;
+ head = tc;
+ next = tc->next;
+ goto l1;
+ }
+ tc = tc->prev;
+ }
+ head = ti;
+ next = 0;
+
+ /* Place in list */
+ ti->prev = swig_type_list;
+ swig_type_list = ti;
+
+ /* Build linked lists */
+ l1:
+ ret = head;
+ tc = ti + 1;
+ /* Patch up the rest of the links */
+ while (tc->name) {
+ head->next = tc;
+ tc->prev = head;
+ head = tc;
+ tc++;
+ }
+ head->next = next;
+ return ret;
+}
+
+/* Check the typename */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeCheck(char *c, swig_type_info *ty)
+{
+ swig_type_info *s;
+ if (!ty) return 0; /* Void pointer */
+ s = ty->next; /* First element always just a name */
+ do {
+ if (strcmp(s->name,c) == 0) {
+ if (s == ty->next) return s;
+ /* Move s to the top of the linked list */
+ s->prev->next = s->next;
+ if (s->next) {
+ s->next->prev = s->prev;
+ }
+ /* Insert s as second element in the list */
+ s->next = ty->next;
+ if (ty->next) ty->next->prev = s;
+ ty->next = s;
+ return s;
+ }
+ s = s->next;
+ } while (s && (s != ty->next));
+ return 0;
+}
+
+/* Cast a pointer up an inheritance hierarchy */
+SWIGRUNTIME(void *)
+SWIG_TypeCast(swig_type_info *ty, void *ptr)
+{
+ if ((!ty) || (!ty->converter)) return ptr;
+ return (*ty->converter)(ptr);
+}
+
+/* Dynamic pointer casting. Down an inheritance hierarchy */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
+{
+ swig_type_info *lastty = ty;
+ if (!ty || !ty->dcast) return ty;
+ while (ty && (ty->dcast)) {
+ ty = (*ty->dcast)(ptr);
+ if (ty) lastty = ty;
+ }
+ return lastty;
+}
+
+/* Search for a swig_type_info structure */
+SWIGRUNTIME(swig_type_info *)
+SWIG_TypeQuery(const char *name) {
+ swig_type_info *ty = swig_type_list;
+ while (ty) {
+ if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
+ if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
+ ty = ty->prev;
+ }
+ return 0;
+}
+
+/* Set the clientdata field for a type */
+SWIGRUNTIME(void)
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
+ swig_type_info *tc, *equiv;
+ if (ti->clientdata) return;
+ ti->clientdata = clientdata;
+ equiv = ti->next;
+ while (equiv) {
+ if (!equiv->converter) {
+ tc = swig_type_list;
+ while (tc) {
+ if ((strcmp(tc->name, equiv->name) == 0))
+ SWIG_TypeClientData(tc,clientdata);
+ tc = tc->prev;
+ }
+ }
+ equiv = equiv->next;
+ }
+}
+#endif
+
+#ifdef __cplusplus
+}
+
+#endif
+
+/*
+ * php4.swg
+ *
+ * PHP4 runtime library
+ *
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include "zend.h"
+#include "zend_API.h"
+#include "php.h"
+
+// These TSRMLS_ stuff should already be defined now, but with older php under
+// redhat are not...
+#ifndef TSRMLS_D
+#define TSRMLS_D
+#endif
+#ifndef TSRMLS_DC
+#define TSRMLS_DC
+#endif
+#ifndef TSRMLS_C
+#define TSRMLS_C
+#endif
+#ifndef TSRMLS_CC
+#define TSRMLS_CC
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+// used to wrap returned objects in so we know whether they are newobject
+// and need freeing, or not
+typedef struct _swig_object_wrapper {
+ void * ptr;
+ int newobject;
+} swig_object_wrapper;
+
+// local scope self_constructors are set to 1 inside function wrappers
+// which are also class constructors, so that the php4.swg output typemaps
+// know whether or not to wrap returned objects in this_ptr or a new object
+int self_constructor=0;
+
+// empty zend destructor for types without one
+static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) {};
+
+// This one makes old swig style string pointers but the php module doesn't
+// use these any more. This is just left here for old times sake and may go
+SWIGRUNTIME(void)
+SWIG_MakePtr(char *c, void *ptr, swig_type_info *ty) {
+ static char hex[17] = "0123456789abcdef";
+ unsigned long p, s;
+ char data[32], *r;
+
+ r = data;
+ p = (unsigned long) ptr;
+ if (p > 0) {
+ while (p > 0) {
+ s = p & 0xf;
+ *(r++) = hex[s];
+ p = p >> 4;
+ }
+ *r = '_';
+ while (r >= data) {
+ *(c++) = *(r--);
+ }
+ strcpy (c, ty->name);
+ } else {
+ strcpy (c, "NULL");
+ }
+}
+
+SWIGRUNTIME(void)
+SWIG_SetPointerChar(char **c, void *ptr, swig_type_info *type) {
+ char data[512];
+
+ SWIG_MakePtr(data, ptr, type);
+ *c = estrdup(data);
+}
+
+#define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d, SWIG_module_entry TSRMLS_CC)
+
+SWIGRUNTIME(void)
+SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject, zend_module_entry* module_entry TSRMLS_DC) {
+ swig_object_wrapper *value=NULL;
+ // No need to call SWIG_MakePtr here!
+ if (type->clientdata) {
+ if (! (*(int *)(type->clientdata))) zend_error(E_ERROR, "Type: %s failed to register with zend",type->name);
+ value=(swig_object_wrapper *)emalloc(sizeof(swig_object_wrapper));
+ value->ptr=ptr;
+ value->newobject=newobject;
+ ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata));
+ return;
+ } else { // have to deal with old fashioned string pointer?
+ // but this should not get this far
+ zend_error(E_ERROR, "Type: %s not registered with zend",type->name);
+ }
+}
+
+// This old-style routine converts an old string-pointer c into a real pointer
+// ptr calling making appropriate casting functions according to ty
+// We don't use this any more
+SWIGRUNTIME(int)
+_SWIG_ConvertPtr(char *c, void **ptr, swig_type_info *ty) {
+ register int d;
+ unsigned long p;
+ swig_type_info *tc;
+
+ if(c == NULL) {
+ *ptr = 0;
+ return 0;
+ }
+
+ p = 0;
+ if (*c != '_') {
+ *ptr = (void *) 0;
+ if (strcmp(c,"NULL") == 0) {
+ return 0;
+ } else {
+ goto type_error;
+ }
+ }
+
+ c++;
+ /* Extract hex value from pointer */
+ while ((d = *c)) {
+ if ((d >= '0') && (d <= '9'))
+ p = (p << 4) + (d - '0');
+ else if ((d >= 'a') && (d <= 'f'))
+ p = (p << 4) + (d - ('a'-10));
+ else
+ break;
+ c++;
+ }
+ *ptr = (void *) p;
+
+ if(ty) {
+ tc = SWIG_TypeCheck(c,ty);
+ if(!tc) goto type_error;
+ *ptr = SWIG_TypeCast(tc, (void*)p);
+ }
+ return 0;
+
+type_error:
+
+ return -1;
+}
+
+// This is a new pointer conversion routine
+// Taking the native pointer p (which would have been converted from the old
+// string pointer) and it's php type id, and it's type name (which also would
+// have come from the old string pointer) it converts it to ptr calling
+// appropriate casting functions according to ty
+// Sadly PHP has no API to find a type name from a type id, only from an instance
+// of a resource of the type id, so we have to pass type_name as well.
+// The two functions which might call this are:
+// SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource
+// and the registered zend destructors for which we have one per type each
+// with the type name hard wired in.
+SWIGRUNTIME(int)
+SWIG_ZTS_ConvertResourceData(void * p, int type, const char *type_name, void **ptr, swig_type_info *ty TSRMLS_DC) {
+ swig_type_info *tc;
+
+ if (ty) {
+ if (! type_name) {
+ // can't convert p to ptr type ty if we don't know what type p is
+ return -1;
+ } else {
+ // convert and cast p from type_name to ptr as ty
+ // Need to sort out const-ness, can SWIG_TypeCast really not take a const?
+ tc = SWIG_TypeCheck((char *)type_name,ty);
+ if (!tc) return -1;
+ *ptr = SWIG_TypeCast(tc, (void*)p);
+ }
+ } else {
+ // They don't care about the target type, so just pass on the pointer!
+ *ptr = (void *) p;
+ }
+ return 0;
+}
+
+// This function fills ptr with a pointer of type ty by extracting the pointer
+// and type info from the resource in z. z must be a resource
+// It uses SWIG_ZTS_ConvertResourceData to do the real work.
+SWIGRUNTIME(int)
+SWIG_ZTS_ConvertResourcePtr(zval *z, void **ptr, swig_type_info *ty TSRMLS_DC) {
+ swig_object_wrapper *value;
+ void *p;
+ int type;
+ char *type_name;
+
+ value = (swig_object_wrapper *) zend_list_find(z->value.lval,&type);
+ p = value->ptr;
+ if (type==-1) return -1;
+
+ type_name=zend_rsrc_list_get_rsrc_type(z->value.lval);
+
+ return SWIG_ZTS_ConvertResourceData(p,type,type_name,ptr,ty TSRMLS_CC);
+}
+
+// But in fact SWIG_ConvertPtr is the native interface for getting typed
+// pointer values out of zvals. We need the TSRMLS_ macros for when we
+// make PHP type calls later as we handle php resources
+#define SWIG_ConvertPtr(a,b,c) SWIG_ZTS_ConvertPtr(a,b,c TSRMLS_CC)
+
+// We allow passing of a STRING or RESOURCE pointing to the object
+// or an OBJECT whose _cPtr is a string or resource pointing to the object
+// STRING pointers are very depracated
+SWIGRUNTIME(int)
+SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty TSRMLS_DC) {
+ char *c;
+ zval *val;
+
+ if(z == NULL) {
+ *ptr = 0;
+ return 0;
+ }
+
+ if (z->type==IS_OBJECT) {
+ zval ** _cPtr;
+ if (zend_hash_find(HASH_OF(z),"_cPtr",sizeof("_cPtr"),(void**)&_cPtr)==SUCCESS) {
+ // Don't co-erce to string if it isn't
+ if ((*_cPtr)->type==IS_STRING) c = Z_STRVAL_PP(_cPtr);
+ else if ((*_cPtr)->type==IS_RESOURCE) {
+ return SWIG_ZTS_ConvertResourcePtr(*_cPtr,ptr,ty TSRMLS_CC);
+ } else goto type_error; // _cPtr was not string or resource property
+ } else goto type_error; // can't find property _cPtr
+ } else if (z->type==IS_RESOURCE) {
+ return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty TSRMLS_CC);
+ } else if (z->type==IS_STRING) {
+ c = Z_STRVAL_P(z);
+ return _SWIG_ConvertPtr(c,ptr,ty);
+ } else goto type_error;
+
+type_error:
+
+ return -1;
+}
+
+
+/* -------- TYPES TABLE (BEGIN) -------- */
+
+#define SWIGTYPE_p_SWLocale swig_types[0]
+#define SWIGTYPE_p_SWMgr swig_types[1]
+#define SWIGTYPE_p_SWCom swig_types[2]
+#define SWIGTYPE_p_RawLD4 swig_types[3]
+#define SWIGTYPE_p_ListKey swig_types[4]
+#define SWIGTYPE_p_SWKey swig_types[5]
+#define SWIGTYPE_p_ConfigEntMap swig_types[6]
+#define SWIGTYPE_p_p_char swig_types[7]
+#define SWIGTYPE_p_RawLD swig_types[8]
+#define SWIGTYPE_p_TreeKey swig_types[9]
+#define SWIGTYPE_p_bool swig_types[10]
+#define SWIGTYPE_p_void swig_types[11]
+#define SWIGTYPE_p_SWFilterMgr swig_types[12]
+#define SWIGTYPE_p_SWLD swig_types[13]
+#define SWIGTYPE_p_SWTextDirection swig_types[14]
+#define SWIGTYPE_p_RawText swig_types[15]
+#define SWIGTYPE_p_f_char_p_void__void swig_types[16]
+#define SWIGTYPE_p_VerseKey swig_types[17]
+#define SWIGTYPE_p_ModMap swig_types[18]
+#define SWIGTYPE_p_string swig_types[19]
+#define SWIGTYPE_p_SectionMap swig_types[20]
+#define SWIGTYPE_p_SWDisplay swig_types[21]
+#define SWIGTYPE_p_AttributeTypeList swig_types[22]
+#define SWIGTYPE_p_SWText swig_types[23]
+#define SWIGTYPE_p_SWCompress swig_types[24]
+#define SWIGTYPE_p_LZSSCompress swig_types[25]
+#define SWIGTYPE_p_ZipCompress swig_types[26]
+#define SWIGTYPE_p_SW_POSITION swig_types[27]
+#define SWIGTYPE_p_SWModule swig_types[28]
+#define SWIGTYPE_p_zLD swig_types[29]
+#define SWIGTYPE_p_SWGenBook swig_types[30]
+#define SWIGTYPE_p_RawGenBook swig_types[31]
+#define SWIGTYPE_p_SWConfig swig_types[32]
+#define SWIGTYPE_p_LocaleMgr swig_types[33]
+#define SWIGTYPE_p_int swig_types[34]
+#define SWIGTYPE_p_SWTextMarkup swig_types[35]
+#define SWIGTYPE_p_OptionsList swig_types[36]
+#define SWIGTYPE_p_listTstring_t swig_types[37]
+#define SWIGTYPE_p_zText swig_types[38]
+#define SWIGTYPE_p_SWTextEncoding swig_types[39]
+#define SWIGTYPE_p_unsigned_long swig_types[40]
+static swig_type_info *swig_types[42];
+
+/* -------- TYPES TABLE (END) -------- */
+
+/* header section */
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.02 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_02.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: |
+ | |
+ +----------------------------------------------------------------------+
+ */
+#define SWIG_init initSword
+
+#define SWIG_name "Sword"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include "php.h"
+#include "php_ini.h"
+#include "ext/standard/info.h"
+#include "php_Sword.h"
+#ifdef __cplusplus
+}
+#endif
+
+
+#undef bool
+#undef assert
+#undef LOCAL
+#undef list
+
+
+ #include <stdio.h>
+ #include <string>
+ #include <map>
+ #include <defs.h>
+ #include <multimapwdef.h>
+
+ #include "swconfig.h"
+using namespace sword;
+
+
+#define SWIG_MemoryError 1
+#define SWIG_IOError 2
+#define SWIG_RuntimeError 3
+#define SWIG_IndexError 4
+#define SWIG_TypeError 5
+#define SWIG_DivisionByZero 6
+#define SWIG_OverflowError 7
+#define SWIG_SyntaxError 8
+#define SWIG_ValueError 9
+#define SWIG_SystemError 10
+#define SWIG_UnknownError 99
+
+
+// We should make use of "code" if we can
+#define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); }
+
+
+#include <string>
+
+
+#include <vector>
+#include <algorithm>
+#include <stdexcept>
+
+void SWConfig_set(SWConfig *self,char const *group,char const *entry,char const *value){
+ self->Sections[group][entry] = value;
+ }
+char const *SWConfig_get(SWConfig *self,char const *group,char const *entry){
+ return self->Sections[group][entry].c_str();
+ }
+static int _wrap_propset_SWConfig(zend_property_reference *property_reference, pval *value);
+static int _propset_SWConfig(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWConfig(zend_property_reference *property_reference);
+static int _propget_SWConfig(zend_property_reference *property_reference, pval *value);
+
+#include <swmgr.h>
+
+SWModule *SWMgr_module(SWMgr *self,char const *modulename){
+ return self->Modules[modulename];
+ }
+static int _wrap_propset_SWMgr(zend_property_reference *property_reference, pval *value);
+static int _propset_SWMgr(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWMgr(zend_property_reference *property_reference);
+static int _propget_SWMgr(zend_property_reference *property_reference, pval *value);
+
+ #include "swmodule.h"
+
+bool const SWModule_next(SWModule *self){
+ (*self)++;
+ return !self->Error();
+ }
+bool const SWModule_prev(SWModule *self){
+ (*self)--;
+ return !self->Error();
+ }
+bool const SWModule_inc(SWModule *self,int const howFar){
+ (*self)+=howFar;
+ return !self->Error();
+ }
+bool const SWModule_dec(SWModule *self,int const howFar){
+ (*self)-=howFar;
+ return !self->Error();
+ }
+void SWModule_setPosition(SWModule *self,SW_POSITION pos){
+ (*self) = pos;
+ }
+void SWModule_top(SWModule *self){
+ (*self) = TOP;
+ }
+void SWModule_bottom(SWModule *self){
+ (*self) = BOTTOM;
+ }
+char const *SWModule_text(SWModule *self){
+ return (const char*)*self;
+ }
+char const *SWModule_StripText(SWModule *self){
+ return self->StripText();
+ }
+void SWModule_write(SWModule *self,char const *text){
+ (*self)<<text;
+ }
+void SWModule_writeLink(SWModule *self,SWKey const *key){
+ (*self)<<key;
+ }
+static int _wrap_propset_SWModule(zend_property_reference *property_reference, pval *value);
+static int _propset_SWModule(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWModule(zend_property_reference *property_reference);
+static int _propget_SWModule(zend_property_reference *property_reference, pval *value);
+
+ #include "swkey.h"
+
+static int _wrap_propset_SW_POSITION(zend_property_reference *property_reference, pval *value);
+static int _propset_SW_POSITION(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SW_POSITION(zend_property_reference *property_reference);
+static int _propget_SW_POSITION(zend_property_reference *property_reference, pval *value);
+void SWKey_setPersist(SWKey *self,signed char persists){
+ self->Persist(persists);
+ }
+void SWKey_next(SWKey *self){
+ (*self)++;
+ }
+void SWKey_prev(SWKey *self){
+ (*self)++;
+ }
+void SWKey_setKey(SWKey *self,SWKey const *key){
+ self->copyFrom(*key);
+ }
+static int _wrap_propset_SWKey(zend_property_reference *property_reference, pval *value);
+static int _propset_SWKey(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWKey(zend_property_reference *property_reference);
+static int _propget_SWKey(zend_property_reference *property_reference, pval *value);
+
+ #include "versekey.h"
+
+static int _wrap_propset_VerseKey(zend_property_reference *property_reference, pval *value);
+static int _propset_VerseKey(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_VerseKey(zend_property_reference *property_reference);
+static int _propget_VerseKey(zend_property_reference *property_reference, pval *value);
+
+#include "listkey.h"
+
+unsigned char ListKey_SetToElement(ListKey *self,int element){
+ return self->SetToElement(element, SW_POSITION(((char)1)));
+ }
+static int _wrap_propset_ListKey(zend_property_reference *property_reference, pval *value);
+static int _propset_ListKey(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_ListKey(zend_property_reference *property_reference);
+static int _propget_ListKey(zend_property_reference *property_reference, pval *value);
+
+#include "treekey.h"
+
+static int _wrap_propset_TreeKey(zend_property_reference *property_reference, pval *value);
+static int _propset_TreeKey(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_TreeKey(zend_property_reference *property_reference);
+static int _propget_TreeKey(zend_property_reference *property_reference, pval *value);
+
+#include "treekeyidx.h"
+
+static int _wrap_propset_TreeKeyIdx(zend_property_reference *property_reference, pval *value);
+static int _propset_TreeKeyIdx(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_TreeKeyIdx(zend_property_reference *property_reference);
+static int _propget_TreeKeyIdx(zend_property_reference *property_reference, pval *value);
+
+#include <localemgr.h>
+
+LocaleMgr *const LocaleMgr_systemLocaleMgr(LocaleMgr *self){
+ return &(LocaleMgr::systemLocaleMgr);
+ }
+static int _wrap_propset_LocaleMgr(zend_property_reference *property_reference, pval *value);
+static int _propset_LocaleMgr(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_LocaleMgr(zend_property_reference *property_reference);
+static int _propget_LocaleMgr(zend_property_reference *property_reference, pval *value);
+
+#include <swfiltermgr.h>
+
+static int _wrap_propset_SWFilterMgr(zend_property_reference *property_reference, pval *value);
+static int _propset_SWFilterMgr(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWFilterMgr(zend_property_reference *property_reference);
+static int _propget_SWFilterMgr(zend_property_reference *property_reference, pval *value);
+
+ #include "swtext.h"
+
+static int _wrap_propset_SWText(zend_property_reference *property_reference, pval *value);
+static int _propset_SWText(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWText(zend_property_reference *property_reference);
+static int _propget_SWText(zend_property_reference *property_reference, pval *value);
+
+ #include "rawtext.h"
+
+static int _wrap_propset_RawText(zend_property_reference *property_reference, pval *value);
+static int _propset_RawText(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_RawText(zend_property_reference *property_reference);
+static int _propget_RawText(zend_property_reference *property_reference, pval *value);
+
+ #include "ztext.h"
+
+static int _wrap_propset_zText(zend_property_reference *property_reference, pval *value);
+static int _propset_zText(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_zText(zend_property_reference *property_reference);
+static int _propget_zText(zend_property_reference *property_reference, pval *value);
+
+ #include "swcom.h"
+
+static int _wrap_propset_SWCom(zend_property_reference *property_reference, pval *value);
+static int _propset_SWCom(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWCom(zend_property_reference *property_reference);
+static int _propget_SWCom(zend_property_reference *property_reference, pval *value);
+
+ #include "rawcom.h"
+
+static int _wrap_propset_RawCom(zend_property_reference *property_reference, pval *value);
+static int _propset_RawCom(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_RawCom(zend_property_reference *property_reference);
+static int _propget_RawCom(zend_property_reference *property_reference, pval *value);
+
+ #include "zcom.h"
+
+static int _wrap_propset_zCom(zend_property_reference *property_reference, pval *value);
+static int _propset_zCom(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_zCom(zend_property_reference *property_reference);
+static int _propget_zCom(zend_property_reference *property_reference, pval *value);
+
+ #include "swgenbook.h"
+
+static int _wrap_propset_SWGenBook(zend_property_reference *property_reference, pval *value);
+static int _propset_SWGenBook(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWGenBook(zend_property_reference *property_reference);
+static int _propget_SWGenBook(zend_property_reference *property_reference, pval *value);
+
+ #include "rawgenbook.h"
+
+static int _wrap_propset_RawGenBook(zend_property_reference *property_reference, pval *value);
+static int _propset_RawGenBook(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_RawGenBook(zend_property_reference *property_reference);
+static int _propget_RawGenBook(zend_property_reference *property_reference, pval *value);
+
+ #include "swld.h"
+
+static int _wrap_propset_SWLD(zend_property_reference *property_reference, pval *value);
+static int _propset_SWLD(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWLD(zend_property_reference *property_reference);
+static int _propget_SWLD(zend_property_reference *property_reference, pval *value);
+
+ #include "rawld.h"
+
+static int _wrap_propset_RawLD(zend_property_reference *property_reference, pval *value);
+static int _propset_RawLD(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_RawLD(zend_property_reference *property_reference);
+static int _propget_RawLD(zend_property_reference *property_reference, pval *value);
+
+ #include "rawld4.h"
+
+static int _wrap_propset_RawLD4(zend_property_reference *property_reference, pval *value);
+static int _propset_RawLD4(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_RawLD4(zend_property_reference *property_reference);
+static int _propget_RawLD4(zend_property_reference *property_reference, pval *value);
+
+ #include "zld.h"
+
+static int _wrap_propset_zLD(zend_property_reference *property_reference, pval *value);
+static int _propset_zLD(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_zLD(zend_property_reference *property_reference);
+static int _propget_zLD(zend_property_reference *property_reference, pval *value);
+
+ #include <swcomprs.h>
+
+static int _wrap_propset_SWCompress(zend_property_reference *property_reference, pval *value);
+static int _propset_SWCompress(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_SWCompress(zend_property_reference *property_reference);
+static int _propget_SWCompress(zend_property_reference *property_reference, pval *value);
+
+ #include <lzsscomprs.h>
+
+static int _wrap_propset_LZSSCompress(zend_property_reference *property_reference, pval *value);
+static int _propset_LZSSCompress(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_LZSSCompress(zend_property_reference *property_reference);
+static int _propget_LZSSCompress(zend_property_reference *property_reference, pval *value);
+
+ #include <zipcomprs.h>
+
+static int _wrap_propset_ZipCompress(zend_property_reference *property_reference, pval *value);
+static int _propset_ZipCompress(zend_property_reference *property_reference, pval *value);
+static pval _wrap_propget_ZipCompress(zend_property_reference *property_reference);
+static int _propget_ZipCompress(zend_property_reference *property_reference, pval *value);
+/* class entry subsection */
+// Function entries for SWConfig
+static zend_function_entry SWConfig_functions[] = {
+ ZEND_NAMED_FE(swconfig,
+ _wrap_new_SWConfig, NULL)
+ ZEND_NAMED_FE(load,
+ _wrap_SWConfig_Load, NULL)
+ ZEND_NAMED_FE(save,
+ _wrap_SWConfig_Save, NULL)
+ ZEND_NAMED_FE(set,
+ _wrap_SWConfig_set, NULL)
+ ZEND_NAMED_FE(get,
+ _wrap_SWConfig_get, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWMgr
+static zend_function_entry SWMgr_functions[] = {
+ ZEND_NAMED_FE(findconfig,
+ _wrap_SWMgr_findConfig, NULL)
+ ZEND_NAMED_FE(swmgr,
+ _wrap_new_SWMgr, NULL)
+ ZEND_NAMED_FE(load,
+ _wrap_SWMgr_Load, NULL)
+ ZEND_NAMED_FE(setglobaloption,
+ _wrap_SWMgr_setGlobalOption, NULL)
+ ZEND_NAMED_FE(getglobaloption,
+ _wrap_SWMgr_getGlobalOption, NULL)
+ ZEND_NAMED_FE(getglobaloptiontip,
+ _wrap_SWMgr_getGlobalOptionTip, NULL)
+ ZEND_NAMED_FE(getglobaloptions,
+ _wrap_SWMgr_getGlobalOptions, NULL)
+ ZEND_NAMED_FE(getglobaloptionvalues,
+ _wrap_SWMgr_getGlobalOptionValues, NULL)
+ ZEND_NAMED_FE(setcipherkey,
+ _wrap_SWMgr_setCipherKey, NULL)
+ ZEND_NAMED_FE(module,
+ _wrap_SWMgr_module, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWModule
+static zend_function_entry SWModule_functions[] = {
+ ZEND_NAMED_FE(swmodule,
+ _wrap_new_SWModule, NULL)
+ ZEND_NAMED_FE(error,
+ _wrap_SWModule_Error, NULL)
+ ZEND_NAMED_FE(isunicode,
+ _wrap_SWModule_isUnicode, NULL)
+ ZEND_NAMED_FE(getconfig,
+ _wrap_SWModule_getConfig, NULL)
+ ZEND_NAMED_FE(getconfigentry,
+ _wrap_SWModule_getConfigEntry, NULL)
+ ZEND_NAMED_FE(setkey,
+ _wrap_SWModule_SetKey, NULL)
+ ZEND_NAMED_FE(key,
+ _wrap_SWModule_Key, NULL)
+ ZEND_NAMED_FE(createkey,
+ _wrap_SWModule_CreateKey, NULL)
+ ZEND_NAMED_FE(keytext,
+ _wrap_SWModule_KeyText, NULL)
+ ZEND_NAMED_FE(display,
+ _wrap_SWModule_Display, NULL)
+ ZEND_NAMED_FE(nullpercent,
+ _wrap_SWModule_nullPercent, NULL)
+ ZEND_NAMED_FE(search,
+ _wrap_SWModule_Search, NULL)
+ ZEND_NAMED_FE(createsearchframework,
+ _wrap_SWModule_createSearchFramework, NULL)
+ ZEND_NAMED_FE(hassearchframework,
+ _wrap_SWModule_hasSearchFramework, NULL)
+ ZEND_NAMED_FE(issearchoptimallysupported,
+ _wrap_SWModule_isSearchOptimallySupported, NULL)
+ ZEND_NAMED_FE(next,
+ _wrap_SWModule_next, NULL)
+ ZEND_NAMED_FE(prev,
+ _wrap_SWModule_prev, NULL)
+ ZEND_NAMED_FE(inc,
+ _wrap_SWModule_inc, NULL)
+ ZEND_NAMED_FE(dec,
+ _wrap_SWModule_dec, NULL)
+ ZEND_NAMED_FE(setposition,
+ _wrap_SWModule_setPosition, NULL)
+ ZEND_NAMED_FE(top,
+ _wrap_SWModule_top, NULL)
+ ZEND_NAMED_FE(bottom,
+ _wrap_SWModule_bottom, NULL)
+ ZEND_NAMED_FE(text,
+ _wrap_SWModule_text, NULL)
+ ZEND_NAMED_FE(striptext,
+ _wrap_SWModule_StripText, NULL)
+ ZEND_NAMED_FE(getrawentry,
+ _wrap_SWModule_getRawEntry, NULL)
+ ZEND_NAMED_FE(setskipconsecutivelinks,
+ _wrap_SWModule_setSkipConsecutiveLinks, NULL)
+ ZEND_NAMED_FE(getskipconsecutivelinks,
+ _wrap_SWModule_getSkipConsecutiveLinks, NULL)
+ ZEND_NAMED_FE(getentryattributes,
+ _wrap_SWModule_getEntryAttributes, NULL)
+ ZEND_NAMED_FE(processentryattributes,
+ _wrap_SWModule_processEntryAttributes, NULL)
+ ZEND_NAMED_FE(isprocessentryattributes,
+ _wrap_SWModule_isProcessEntryAttributes, NULL)
+ ZEND_NAMED_FE(name,
+ _wrap_SWModule_Name, NULL)
+ ZEND_NAMED_FE(description,
+ _wrap_SWModule_Description, NULL)
+ ZEND_NAMED_FE(type,
+ _wrap_SWModule_Type, NULL)
+ ZEND_NAMED_FE(direction,
+ _wrap_SWModule_Direction, NULL)
+ ZEND_NAMED_FE(encoding,
+ _wrap_SWModule_Encoding, NULL)
+ ZEND_NAMED_FE(markup,
+ _wrap_SWModule_Markup, NULL)
+ ZEND_NAMED_FE(lang,
+ _wrap_SWModule_Lang, NULL)
+ ZEND_NAMED_FE(iswritable,
+ _wrap_SWModule_isWritable, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_SWModule_createModule, NULL)
+ ZEND_NAMED_FE(setentry,
+ _wrap_SWModule_setEntry, NULL)
+ ZEND_NAMED_FE(deleteentry,
+ _wrap_SWModule_deleteEntry, NULL)
+ ZEND_NAMED_FE(write,
+ _wrap_SWModule_write, NULL)
+ ZEND_NAMED_FE(writelink,
+ _wrap_SWModule_writeLink, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SW_POSITION
+static zend_function_entry SW_POSITION_functions[] = {
+ ZEND_NAMED_FE(sw_position,
+ _wrap_new_SW_POSITION, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWKey
+static zend_function_entry SWKey_functions[] = {
+ ZEND_NAMED_FE(swkey,
+ _wrap_new_SWKey, NULL)
+ ZEND_NAMED_FE(clone,
+ _wrap_SWKey_clone, NULL)
+ ZEND_NAMED_FE(persist,
+ _wrap_SWKey_Persist, NULL)
+ ZEND_NAMED_FE(setpersist,
+ _wrap_SWKey_setPersist, NULL)
+ ZEND_NAMED_FE(error,
+ _wrap_SWKey_Error, NULL)
+ ZEND_NAMED_FE(settext,
+ _wrap_SWKey_setText, NULL)
+ ZEND_NAMED_FE(gettext,
+ _wrap_SWKey_getText, NULL)
+ ZEND_NAMED_FE(getshorttext,
+ _wrap_SWKey_getShortText, NULL)
+ ZEND_NAMED_FE(compare,
+ _wrap_SWKey_compare, NULL)
+ ZEND_NAMED_FE(equals,
+ _wrap_SWKey_equals, NULL)
+ ZEND_NAMED_FE(decrement,
+ _wrap_SWKey_decrement, NULL)
+ ZEND_NAMED_FE(increment,
+ _wrap_SWKey_increment, NULL)
+ ZEND_NAMED_FE(traversable,
+ _wrap_SWKey_Traversable, NULL)
+ ZEND_NAMED_FE(index,
+ _wrap_SWKey_Index, NULL)
+ ZEND_NAMED_FE(next,
+ _wrap_SWKey_next, NULL)
+ ZEND_NAMED_FE(prev,
+ _wrap_SWKey_prev, NULL)
+ ZEND_NAMED_FE(setkey,
+ _wrap_SWKey_setKey, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for VerseKey
+static zend_function_entry VerseKey_functions[] = {
+ ZEND_NAMED_FE(versekey,
+ _wrap_new_VerseKey, NULL)
+ ZEND_NAMED_FE(clone,
+ _wrap_VerseKey_clone, NULL)
+ ZEND_NAMED_FE(lowerbound,
+ _wrap_VerseKey_LowerBound, NULL)
+ ZEND_NAMED_FE(upperbound,
+ _wrap_VerseKey_UpperBound, NULL)
+ ZEND_NAMED_FE(clearbounds,
+ _wrap_VerseKey_ClearBounds, NULL)
+ ZEND_NAMED_FE(decrement,
+ _wrap_VerseKey_decrement, NULL)
+ ZEND_NAMED_FE(increment,
+ _wrap_VerseKey_increment, NULL)
+ ZEND_NAMED_FE(traversable,
+ _wrap_VerseKey_Traversable, NULL)
+ ZEND_NAMED_FE(getbookname,
+ _wrap_VerseKey_getBookName, NULL)
+ ZEND_NAMED_FE(getbookabbrev,
+ _wrap_VerseKey_getBookAbbrev, NULL)
+ ZEND_NAMED_FE(testament,
+ _wrap_VerseKey_Testament, NULL)
+ ZEND_NAMED_FE(book,
+ _wrap_VerseKey_Book, NULL)
+ ZEND_NAMED_FE(chapter,
+ _wrap_VerseKey_Chapter, NULL)
+ ZEND_NAMED_FE(verse,
+ _wrap_VerseKey_Verse, NULL)
+ ZEND_NAMED_FE(normalize,
+ _wrap_VerseKey_Normalize, NULL)
+ ZEND_NAMED_FE(autonormalize,
+ _wrap_VerseKey_AutoNormalize, NULL)
+ ZEND_NAMED_FE(headings,
+ _wrap_VerseKey_Headings, NULL)
+ ZEND_NAMED_FE(getosisref,
+ _wrap_VerseKey_getOSISRef, NULL)
+ ZEND_NAMED_FE(compare,
+ _wrap_VerseKey_compare, NULL)
+ ZEND_NAMED_FE(_compare,
+ _wrap_VerseKey__compare, NULL)
+ ZEND_NAMED_FE(setlocale,
+ _wrap_VerseKey_setLocale, NULL)
+ ZEND_NAMED_FE(getlocale,
+ _wrap_VerseKey_getLocale, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for ListKey
+static zend_function_entry ListKey_functions[] = {
+ ZEND_NAMED_FE(listkey,
+ _wrap_new_ListKey, NULL)
+ ZEND_NAMED_FE(clone,
+ _wrap_ListKey_clone, NULL)
+ ZEND_NAMED_FE(clearlist,
+ _wrap_ListKey_ClearList, NULL)
+ ZEND_NAMED_FE(count,
+ _wrap_ListKey_Count, NULL)
+ ZEND_NAMED_FE(remove,
+ _wrap_ListKey_Remove, NULL)
+ ZEND_NAMED_FE(settoelement,
+ _wrap_ListKey_SetToElement, NULL)
+ ZEND_NAMED_FE(getelement,
+ _wrap_ListKey_GetElement, NULL)
+ ZEND_NAMED_FE(add,
+ _wrap_ListKey_add, NULL)
+ ZEND_NAMED_FE(copyfrom,
+ _wrap_ListKey_copyFrom, NULL)
+ ZEND_NAMED_FE(setposition,
+ _wrap_ListKey_setPosition, NULL)
+ ZEND_NAMED_FE(decrement,
+ _wrap_ListKey_decrement, NULL)
+ ZEND_NAMED_FE(increment,
+ _wrap_ListKey_increment, NULL)
+ ZEND_NAMED_FE(traversable,
+ _wrap_ListKey_Traversable, NULL)
+ ZEND_NAMED_FE(index,
+ _wrap_ListKey_Index, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for TreeKey
+static zend_function_entry TreeKey_functions[] = {
+ ZEND_NAMED_FE(getlocalname,
+ _wrap_TreeKey_getLocalName, NULL)
+ ZEND_NAMED_FE(setlocalname,
+ _wrap_TreeKey_setLocalName, NULL)
+ ZEND_NAMED_FE(getuserdata,
+ _wrap_TreeKey_getUserData, NULL)
+ ZEND_NAMED_FE(setuserdata,
+ _wrap_TreeKey_setUserData, NULL)
+ ZEND_NAMED_FE(getfullname,
+ _wrap_TreeKey_getFullName, NULL)
+ ZEND_NAMED_FE(root,
+ _wrap_TreeKey_root, NULL)
+ ZEND_NAMED_FE(parent,
+ _wrap_TreeKey_parent, NULL)
+ ZEND_NAMED_FE(firstchild,
+ _wrap_TreeKey_firstChild, NULL)
+ ZEND_NAMED_FE(nextsibling,
+ _wrap_TreeKey_nextSibling, NULL)
+ ZEND_NAMED_FE(previoussibling,
+ _wrap_TreeKey_previousSibling, NULL)
+ ZEND_NAMED_FE(haschildren,
+ _wrap_TreeKey_hasChildren, NULL)
+ ZEND_NAMED_FE(append,
+ _wrap_TreeKey_append, NULL)
+ ZEND_NAMED_FE(appendchild,
+ _wrap_TreeKey_appendChild, NULL)
+ ZEND_NAMED_FE(insertbefore,
+ _wrap_TreeKey_insertBefore, NULL)
+ ZEND_NAMED_FE(remove,
+ _wrap_TreeKey_remove, NULL)
+ ZEND_NAMED_FE(setoffset,
+ _wrap_TreeKey_setOffset, NULL)
+ ZEND_NAMED_FE(getoffset,
+ _wrap_TreeKey_getOffset, NULL)
+ ZEND_NAMED_FE(setposition,
+ _wrap_TreeKey_setPosition, NULL)
+ ZEND_NAMED_FE(traversable,
+ _wrap_TreeKey_Traversable, NULL)
+ ZEND_NAMED_FE(index,
+ _wrap_TreeKey_Index, NULL)
+ ZEND_NAMED_FE(treekey,
+ _wrap_new_TreeKey, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for TreeKeyIdx
+static zend_function_entry TreeKeyIdx_functions[] = {
+ ZEND_NAMED_FE(treekeyidx,
+ _wrap_new_TreeKeyIdx, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for LocaleMgr
+static zend_function_entry LocaleMgr_functions[] = {
+ ZEND_NAMED_FE(localemgr,
+ _wrap_new_LocaleMgr, NULL)
+ ZEND_NAMED_FE(getlocale,
+ _wrap_LocaleMgr_getLocale, NULL)
+ ZEND_NAMED_FE(getavailablelocales,
+ _wrap_LocaleMgr_getAvailableLocales, NULL)
+ ZEND_NAMED_FE(getdefaultlocalename,
+ _wrap_LocaleMgr_getDefaultLocaleName, NULL)
+ ZEND_NAMED_FE(setdefaultlocalename,
+ _wrap_LocaleMgr_setDefaultLocaleName, NULL)
+ ZEND_NAMED_FE(systemlocalemgr,
+ _wrap_LocaleMgr_systemLocaleMgr, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWFilterMgr
+static zend_function_entry SWFilterMgr_functions[] = {
+ ZEND_NAMED_FE(swfiltermgr,
+ _wrap_new_SWFilterMgr, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWText
+static zend_function_entry SWText_functions[] = {
+ ZEND_NAMED_FE(swtext,
+ _wrap_new_SWText, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for RawText
+static zend_function_entry RawText_functions[] = {
+ ZEND_NAMED_FE(rawtext,
+ _wrap_new_RawText, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_RawText_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for zText
+static zend_function_entry zText_functions[] = {
+ ZEND_NAMED_FE(ztext,
+ _wrap_new_zText, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_zText_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWCom
+static zend_function_entry SWCom_functions[] = {
+ ZEND_NAMED_FE(swcom,
+ _wrap_new_SWCom, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for RawCom
+static zend_function_entry RawCom_functions[] = {
+ ZEND_NAMED_FE(rawcom,
+ _wrap_new_RawCom, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for zCom
+static zend_function_entry zCom_functions[] = {
+ ZEND_NAMED_FE(zcom,
+ _wrap_new_zCom, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWGenBook
+static zend_function_entry SWGenBook_functions[] = {
+ ZEND_NAMED_FE(swgenbook,
+ _wrap_new_SWGenBook, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for RawGenBook
+static zend_function_entry RawGenBook_functions[] = {
+ ZEND_NAMED_FE(rawgenbook,
+ _wrap_new_RawGenBook, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_RawGenBook_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWLD
+static zend_function_entry SWLD_functions[] = {
+ ZEND_NAMED_FE(swld,
+ _wrap_new_SWLD, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for RawLD
+static zend_function_entry RawLD_functions[] = {
+ ZEND_NAMED_FE(rawld,
+ _wrap_new_RawLD, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_RawLD_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for RawLD4
+static zend_function_entry RawLD4_functions[] = {
+ ZEND_NAMED_FE(rawld4,
+ _wrap_new_RawLD4, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_RawLD4_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for zLD
+static zend_function_entry zLD_functions[] = {
+ ZEND_NAMED_FE(zld,
+ _wrap_new_zLD, NULL)
+ ZEND_NAMED_FE(createmodule,
+ _wrap_zLD_createModule, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for SWCompress
+static zend_function_entry SWCompress_functions[] = {
+ ZEND_NAMED_FE(swcompress,
+ _wrap_new_SWCompress, NULL)
+ ZEND_NAMED_FE(buf,
+ _wrap_SWCompress_Buf, NULL)
+ ZEND_NAMED_FE(zbuf,
+ _wrap_SWCompress_zBuf, NULL)
+ ZEND_NAMED_FE(getchars,
+ _wrap_SWCompress_GetChars, NULL)
+ ZEND_NAMED_FE(sendchars,
+ _wrap_SWCompress_SendChars, NULL)
+ ZEND_NAMED_FE(encode,
+ _wrap_SWCompress_Encode, NULL)
+ ZEND_NAMED_FE(decode,
+ _wrap_SWCompress_Decode, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for LZSSCompress
+static zend_function_entry LZSSCompress_functions[] = {
+ ZEND_NAMED_FE(lzsscompress,
+ _wrap_new_LZSSCompress, NULL)
+ ZEND_NAMED_FE(encode,
+ _wrap_LZSSCompress_Encode, NULL)
+ ZEND_NAMED_FE(decode,
+ _wrap_LZSSCompress_Decode, NULL)
+ { NULL, NULL, NULL}
+};
+// Function entries for ZipCompress
+static zend_function_entry ZipCompress_functions[] = {
+ ZEND_NAMED_FE(zipcompress,
+ _wrap_new_ZipCompress, NULL)
+ ZEND_NAMED_FE(encode,
+ _wrap_ZipCompress_Encode, NULL)
+ ZEND_NAMED_FE(decode,
+ _wrap_ZipCompress_Decode, NULL)
+ { NULL, NULL, NULL}
+};
+
+
+/* entry subsection */
+/* Every non-class user visible function must have an entry here */
+function_entry Sword_functions[] = {
+ {NULL, NULL, NULL}
+};
+
+zend_module_entry Sword_module_entry = {
+#if ZEND_MODULE_API_NO > 20010900
+ STANDARD_MODULE_HEADER,
+#endif
+ "Sword",
+ Sword_functions,
+ PHP_MINIT(Sword),
+ PHP_MSHUTDOWN(Sword),
+ PHP_RINIT(Sword),
+ PHP_RSHUTDOWN(Sword),
+ PHP_MINFO(Sword),
+#if ZEND_MODULE_API_NO > 20010900
+ NO_VERSION_YET,
+#endif
+ STANDARD_MODULE_PROPERTIES
+};
+zend_module_entry* SWIG_module_entry = &Sword_module_entry;
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
+
+static void *_p_zComTo_p_SWCom(void *x) {
+ return (void *)((SWCom *) ((zCom *) x));
+}
+static void *_p_RawComTo_p_SWCom(void *x) {
+ return (void *)((SWCom *) ((RawCom *) x));
+}
+static void *_p_TreeKeyIdxTo_p_TreeKey(void *x) {
+ return (void *)((TreeKey *) ((TreeKeyIdx *) x));
+}
+static void *_p_RawTextTo_p_SWText(void *x) {
+ return (void *)((SWText *) ((RawText *) x));
+}
+static void *_p_zTextTo_p_SWText(void *x) {
+ return (void *)((SWText *) ((zText *) x));
+}
+static void *_p_ListKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((ListKey *) x));
+}
+static void *_p_TreeKeyIdxTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) (TreeKey *) ((TreeKeyIdx *) x));
+}
+static void *_p_VerseKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((VerseKey *) x));
+}
+static void *_p_TreeKeyTo_p_SWKey(void *x) {
+ return (void *)((SWKey *) ((TreeKey *) x));
+}
+static void *_p_LZSSCompressTo_p_SWCompress(void *x) {
+ return (void *)((SWCompress *) ((LZSSCompress *) x));
+}
+static void *_p_ZipCompressTo_p_SWCompress(void *x) {
+ return (void *)((SWCompress *) ((ZipCompress *) x));
+}
+static void *_p_SWComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWCom *) x));
+}
+static void *_p_zLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((zLD *) x));
+}
+static void *_p_SWTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWText *) x));
+}
+static void *_p_SWGenBookTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWGenBook *) x));
+}
+static void *_p_RawGenBookTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWGenBook *) ((RawGenBook *) x));
+}
+static void *_p_RawTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWText *) ((RawText *) x));
+}
+static void *_p_zComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWCom *) ((zCom *) x));
+}
+static void *_p_RawLD4To_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((RawLD4 *) x));
+}
+static void *_p_zTextTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWText *) ((zText *) x));
+}
+static void *_p_RawComTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWCom *) ((RawCom *) x));
+}
+static void *_p_SWLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) ((SWLD *) x));
+}
+static void *_p_RawLDTo_p_SWModule(void *x) {
+ return (void *)((SWModule *) (SWLD *) ((RawLD *) x));
+}
+static void *_p_RawGenBookTo_p_SWGenBook(void *x) {
+ return (void *)((SWGenBook *) ((RawGenBook *) x));
+}
+static void *_p_zLDTo_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((zLD *) x));
+}
+static void *_p_RawLD4To_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((RawLD4 *) x));
+}
+static void *_p_RawLDTo_p_SWLD(void *x) {
+ return (void *)((SWLD *) ((RawLD *) x));
+}
+static swig_type_info _swigt__p_SWLocale[] = {{"_p_SWLocale", 0, "SWLocale *", 0},{"_p_SWLocale"},{0}};
+static swig_type_info _swigt__p_SWMgr[] = {{"_p_SWMgr", 0, "SWMgr *", 0},{"_p_SWMgr"},{0}};
+static swig_type_info _swigt__p_SWCom[] = {{"_p_SWCom", 0, "SWCom *", 0},{"_p_zCom", _p_zComTo_p_SWCom},{"_p_SWCom"},{"_p_RawCom", _p_RawComTo_p_SWCom},{0}};
+static swig_type_info _swigt__p_RawLD4[] = {{"_p_RawLD4", 0, "RawLD4 *", 0},{"_p_RawLD4"},{0}};
+static swig_type_info _swigt__p_ListKey[] = {{"_p_ListKey", 0, "ListKey *", 0},{"_p_ListKey"},{0}};
+static swig_type_info _swigt__p_SWKey[] = {{"_p_SWKey", 0, "SWKey *", 0},{"_p_SWKey"},{"_p_ListKey", _p_ListKeyTo_p_SWKey},{"_p_TreeKeyIdx", _p_TreeKeyIdxTo_p_SWKey},{"_p_VerseKey", _p_VerseKeyTo_p_SWKey},{"_p_TreeKey", _p_TreeKeyTo_p_SWKey},{0}};
+static swig_type_info _swigt__p_ConfigEntMap[] = {{"_p_ConfigEntMap", 0, "ConfigEntMap const &", 0},{"_p_ConfigEntMap"},{0}};
+static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}};
+static swig_type_info _swigt__p_RawLD[] = {{"_p_RawLD", 0, "RawLD *", 0},{"_p_RawLD"},{0}};
+static swig_type_info _swigt__p_TreeKey[] = {{"_p_TreeKey", 0, "TreeKey *", 0},{"_p_TreeKeyIdx", _p_TreeKeyIdxTo_p_TreeKey},{"_p_TreeKey"},{0}};
+static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
+static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}};
+static swig_type_info _swigt__p_SWFilterMgr[] = {{"_p_SWFilterMgr", 0, "SWFilterMgr *", 0},{"_p_SWFilterMgr"},{0}};
+static swig_type_info _swigt__p_SWLD[] = {{"_p_SWLD", 0, "SWLD *", 0},{"_p_zLD", _p_zLDTo_p_SWLD},{"_p_SWLD"},{"_p_RawLD4", _p_RawLD4To_p_SWLD},{"_p_RawLD", _p_RawLDTo_p_SWLD},{0}};
+static swig_type_info _swigt__p_SWTextDirection[] = {{"_p_SWTextDirection", 0, "SWTextDirection *", 0},{"_p_SWTextDirection"},{0}};
+static swig_type_info _swigt__p_RawText[] = {{"_p_RawText", 0, "RawText *", 0},{"_p_RawText"},{0}};
+static swig_type_info _swigt__p_f_char_p_void__void[] = {{"_p_f_char_p_void__void", 0, "void (*)(char,void *)", 0},{"_p_f_char_p_void__void"},{0}};
+static swig_type_info _swigt__p_VerseKey[] = {{"_p_VerseKey", 0, "VerseKey *", 0},{"_p_VerseKey"},{0}};
+static swig_type_info _swigt__p_ModMap[] = {{"_p_ModMap", 0, "ModMap *", 0},{"_p_ModMap"},{0}};
+static swig_type_info _swigt__p_string[] = {{"_p_string", 0, "string *", 0},{"_p_string"},{0}};
+static swig_type_info _swigt__p_SectionMap[] = {{"_p_SectionMap", 0, "SectionMap *", 0},{"_p_SectionMap"},{0}};
+static swig_type_info _swigt__p_SWDisplay[] = {{"_p_SWDisplay", 0, "SWDisplay *", 0},{"_p_SWDisplay"},{0}};
+static swig_type_info _swigt__p_AttributeTypeList[] = {{"_p_AttributeTypeList", 0, "AttributeTypeList *", 0},{"_p_AttributeTypeList"},{0}};
+static swig_type_info _swigt__p_SWText[] = {{"_p_SWText", 0, "SWText *", 0},{"_p_SWText"},{"_p_RawText", _p_RawTextTo_p_SWText},{"_p_zText", _p_zTextTo_p_SWText},{0}};
+static swig_type_info _swigt__p_SWCompress[] = {{"_p_SWCompress", 0, "SWCompress *", 0},{"_p_SWCompress"},{"_p_LZSSCompress", _p_LZSSCompressTo_p_SWCompress},{"_p_ZipCompress", _p_ZipCompressTo_p_SWCompress},{0}};
+static swig_type_info _swigt__p_LZSSCompress[] = {{"_p_LZSSCompress", 0, "LZSSCompress *", 0},{"_p_LZSSCompress"},{0}};
+static swig_type_info _swigt__p_ZipCompress[] = {{"_p_ZipCompress", 0, "ZipCompress *", 0},{"_p_ZipCompress"},{0}};
+static swig_type_info _swigt__p_SW_POSITION[] = {{"_p_SW_POSITION", 0, "SW_POSITION *", 0},{"_p_SW_POSITION"},{0}};
+static swig_type_info _swigt__p_SWModule[] = {{"_p_SWModule", 0, "SWModule *", 0},{"_p_SWModule"},{"_p_SWGenBook", _p_SWGenBookTo_p_SWModule},{"_p_RawGenBook", _p_RawGenBookTo_p_SWModule},{"_p_SWText", _p_SWTextTo_p_SWModule},{"_p_RawText", _p_RawTextTo_p_SWModule},{"_p_zLD", _p_zLDTo_p_SWModule},{"_p_zCom", _p_zComTo_p_SWModule},{"_p_zText", _p_zTextTo_p_SWModule},{"_p_RawLD4", _p_RawLD4To_p_SWModule},{"_p_SWLD", _p_SWLDTo_p_SWModule},{"_p_RawLD", _p_RawLDTo_p_SWModule},{"_p_SWCom", _p_SWComTo_p_SWModule},{"_p_RawCom", _p_RawComTo_p_SWModule},{0}};
+static swig_type_info _swigt__p_zLD[] = {{"_p_zLD", 0, "zLD *", 0},{"_p_zLD"},{0}};
+static swig_type_info _swigt__p_SWGenBook[] = {{"_p_SWGenBook", 0, "SWGenBook *", 0},{"_p_SWGenBook"},{"_p_RawGenBook", _p_RawGenBookTo_p_SWGenBook},{0}};
+static swig_type_info _swigt__p_RawGenBook[] = {{"_p_RawGenBook", 0, "RawGenBook *", 0},{"_p_RawGenBook"},{0}};
+static swig_type_info _swigt__p_SWConfig[] = {{"_p_SWConfig", 0, "SWConfig *", 0},{"_p_SWConfig"},{0}};
+static swig_type_info _swigt__p_LocaleMgr[] = {{"_p_LocaleMgr", 0, "LocaleMgr *", 0},{"_p_LocaleMgr"},{0}};
+static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
+static swig_type_info _swigt__p_SWTextMarkup[] = {{"_p_SWTextMarkup", 0, "SWTextMarkup *", 0},{"_p_SWTextMarkup"},{0}};
+static swig_type_info _swigt__p_OptionsList[] = {{"_p_OptionsList", 0, "OptionsList *", 0},{"_p_listTstring_t"},{"_p_OptionsList"},{0}};
+static swig_type_info _swigt__p_listTstring_t[] = {{"_p_listTstring_t", 0, "list<string > *", 0},{"_p_listTstring_t"},{"_p_OptionsList"},{0}};
+static swig_type_info _swigt__p_zText[] = {{"_p_zText", 0, "zText *", 0},{"_p_zText"},{0}};
+static swig_type_info _swigt__p_SWTextEncoding[] = {{"_p_SWTextEncoding", 0, "SWTextEncoding *", 0},{"_p_SWTextEncoding"},{0}};
+static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
+
+static swig_type_info *swig_types_initial[] = {
+_swigt__p_SWLocale,
+_swigt__p_SWMgr,
+_swigt__p_SWCom,
+_swigt__p_RawLD4,
+_swigt__p_ListKey,
+_swigt__p_SWKey,
+_swigt__p_ConfigEntMap,
+_swigt__p_p_char,
+_swigt__p_RawLD,
+_swigt__p_TreeKey,
+_swigt__p_bool,
+_swigt__p_void,
+_swigt__p_SWFilterMgr,
+_swigt__p_SWLD,
+_swigt__p_SWTextDirection,
+_swigt__p_RawText,
+_swigt__p_f_char_p_void__void,
+_swigt__p_VerseKey,
+_swigt__p_ModMap,
+_swigt__p_string,
+_swigt__p_SectionMap,
+_swigt__p_SWDisplay,
+_swigt__p_AttributeTypeList,
+_swigt__p_SWText,
+_swigt__p_SWCompress,
+_swigt__p_LZSSCompress,
+_swigt__p_ZipCompress,
+_swigt__p_SW_POSITION,
+_swigt__p_SWModule,
+_swigt__p_zLD,
+_swigt__p_SWGenBook,
+_swigt__p_RawGenBook,
+_swigt__p_SWConfig,
+_swigt__p_LocaleMgr,
+_swigt__p_int,
+_swigt__p_SWTextMarkup,
+_swigt__p_OptionsList,
+_swigt__p_listTstring_t,
+_swigt__p_zText,
+_swigt__p_SWTextEncoding,
+_swigt__p_unsigned_long,
+0
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+/* vdecl subsection */
+static zend_class_entry ce_swig_SWConfig;
+static zend_class_entry* ptr_ce_swig_SWConfig=NULL;
+static zend_class_entry ce_swig_SWMgr;
+static zend_class_entry* ptr_ce_swig_SWMgr=NULL;
+static zend_class_entry ce_swig_SWModule;
+static zend_class_entry* ptr_ce_swig_SWModule=NULL;
+static zend_class_entry ce_swig_SW_POSITION;
+static zend_class_entry* ptr_ce_swig_SW_POSITION=NULL;
+static zend_class_entry ce_swig_SWKey;
+static zend_class_entry* ptr_ce_swig_SWKey=NULL;
+static zend_class_entry ce_swig_VerseKey;
+static zend_class_entry* ptr_ce_swig_VerseKey=NULL;
+static zend_class_entry ce_swig_ListKey;
+static zend_class_entry* ptr_ce_swig_ListKey=NULL;
+static zend_class_entry ce_swig_TreeKey;
+static zend_class_entry* ptr_ce_swig_TreeKey=NULL;
+static zend_class_entry ce_swig_TreeKeyIdx;
+static zend_class_entry* ptr_ce_swig_TreeKeyIdx=NULL;
+static zend_class_entry ce_swig_LocaleMgr;
+static zend_class_entry* ptr_ce_swig_LocaleMgr=NULL;
+static zend_class_entry ce_swig_SWFilterMgr;
+static zend_class_entry* ptr_ce_swig_SWFilterMgr=NULL;
+static zend_class_entry ce_swig_SWText;
+static zend_class_entry* ptr_ce_swig_SWText=NULL;
+static zend_class_entry ce_swig_RawText;
+static zend_class_entry* ptr_ce_swig_RawText=NULL;
+static zend_class_entry ce_swig_zText;
+static zend_class_entry* ptr_ce_swig_zText=NULL;
+static zend_class_entry ce_swig_SWCom;
+static zend_class_entry* ptr_ce_swig_SWCom=NULL;
+static zend_class_entry ce_swig_RawCom;
+static zend_class_entry* ptr_ce_swig_RawCom=NULL;
+static zend_class_entry ce_swig_zCom;
+static zend_class_entry* ptr_ce_swig_zCom=NULL;
+static zend_class_entry ce_swig_SWGenBook;
+static zend_class_entry* ptr_ce_swig_SWGenBook=NULL;
+static zend_class_entry ce_swig_RawGenBook;
+static zend_class_entry* ptr_ce_swig_RawGenBook=NULL;
+static zend_class_entry ce_swig_SWLD;
+static zend_class_entry* ptr_ce_swig_SWLD=NULL;
+static zend_class_entry ce_swig_RawLD;
+static zend_class_entry* ptr_ce_swig_RawLD=NULL;
+static zend_class_entry ce_swig_RawLD4;
+static zend_class_entry* ptr_ce_swig_RawLD4=NULL;
+static zend_class_entry ce_swig_zLD;
+static zend_class_entry* ptr_ce_swig_zLD=NULL;
+static zend_class_entry ce_swig_SWCompress;
+static zend_class_entry* ptr_ce_swig_SWCompress=NULL;
+static zend_class_entry ce_swig_LZSSCompress;
+static zend_class_entry* ptr_ce_swig_LZSSCompress=NULL;
+static zend_class_entry ce_swig_ZipCompress;
+static zend_class_entry* ptr_ce_swig_ZipCompress=NULL;
+static int le_swig__p_SWLocale=0; // handle for
+static int le_swig__p_SWMgr=0; // handle for SWMgr
+static int le_swig__p_SWCom=0; // handle for SWCom
+static int le_swig__p_RawLD4=0; // handle for RawLD4
+static int le_swig__p_ListKey=0; // handle for ListKey
+static int le_swig__p_SWKey=0; // handle for SWKey
+static int le_swig__p_ConfigEntMap=0; // handle for SWKey
+static int le_swig__p_p_char=0; // handle for SWKey
+static int le_swig__p_RawLD=0; // handle for RawLD
+static int le_swig__p_TreeKey=0; // handle for TreeKey
+static int le_swig__p_bool=0; // handle for TreeKey
+static int le_swig__p_void=0; // handle for TreeKey
+static int le_swig__p_SWFilterMgr=0; // handle for SWFilterMgr
+static int le_swig__p_SWLD=0; // handle for SWLD
+static int le_swig__p_SWTextDirection=0; // handle for SWLD
+static int le_swig__p_RawText=0; // handle for RawText
+static int le_swig__p_f_char_p_void__void=0; // handle for RawText
+static int le_swig__p_VerseKey=0; // handle for VerseKey
+static int le_swig__p_ModMap=0; // handle for VerseKey
+static int le_swig__p_string=0; // handle for VerseKey
+static int le_swig__p_SectionMap=0; // handle for VerseKey
+static int le_swig__p_SWDisplay=0; // handle for VerseKey
+static int le_swig__p_AttributeTypeList=0; // handle for VerseKey
+static int le_swig__p_SWText=0; // handle for SWText
+static int le_swig__p_SWCompress=0; // handle for SWCompress
+static int le_swig__p_LZSSCompress=0; // handle for LZSSCompress
+static int le_swig__p_ZipCompress=0; // handle for ZipCompress
+static int le_swig__p_SW_POSITION=0; // handle for SW_POSITION
+static int le_swig__p_SWModule=0; // handle for SWModule
+static int le_swig__p_zLD=0; // handle for zLD
+static int le_swig__p_SWGenBook=0; // handle for SWGenBook
+static int le_swig__p_RawGenBook=0; // handle for RawGenBook
+static int le_swig__p_SWConfig=0; // handle for SWConfig
+static int le_swig__p_LocaleMgr=0; // handle for LocaleMgr
+static int le_swig__p_int=0; // handle for LocaleMgr
+static int le_swig__p_SWTextMarkup=0; // handle for LocaleMgr
+static int le_swig__p_OptionsList=0; // handle for LocaleMgr
+static int le_swig__p_listTstring_t=0; // handle for LocaleMgr
+static int le_swig__p_zText=0; // handle for zText
+static int le_swig__p_SWTextEncoding=0; // handle for zText
+static int le_swig__p_unsigned_long=0; // handle for zText
+/* end vdecl subsection */
+/* wrapper section */
+static int _wrap_SWConfig_filename_set(zend_property_reference *property_reference, pval *value) {
+ SWConfig *arg1 ;
+ string arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_filename_set. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ {
+ string * argp;
+ if(SWIG_ConvertPtr(*&value, (void **) &argp, SWIGTYPE_p_string) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_filename_set. Expected %s", 2-argbase, SWIGTYPE_p_string->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->filename = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWConfig_filename_get(zend_property_reference *property_reference) {
+ SWConfig *arg1 ;
+ string result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_filename_get. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ result = ((arg1)->filename);
+
+ {
+ string * resultobj = new string((string &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_string, 0);
+ }
+ return _return_value;
+}
+
+
+static int _wrap_SWConfig_Sections_set(zend_property_reference *property_reference, pval *value) {
+ SWConfig *arg1 ;
+ SectionMap arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_Sections_set. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ {
+ SectionMap * argp;
+ if(SWIG_ConvertPtr(*&value, (void **) &argp, SWIGTYPE_p_SectionMap) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_Sections_set. Expected %s", 2-argbase, SWIGTYPE_p_SectionMap->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Sections = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWConfig_Sections_get(zend_property_reference *property_reference) {
+ SWConfig *arg1 ;
+ SectionMap result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_Sections_get. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ result = ((arg1)->Sections);
+
+ {
+ SectionMap * resultobj = new SectionMap((SectionMap &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_SectionMap, 0);
+ }
+ return _return_value;
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWConfig) {
+ char *arg1 ;
+ SWConfig *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ convert_to_string_ex(((0<argbase)?(&this_ptr):(args[0-argbase])));
+ arg1 = (char *) Z_STRVAL_PP(((0<argbase)?(&this_ptr):(args[0-argbase])));
+
+ result = (SWConfig *)new SWConfig((char const *)arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWConfig, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWConfig);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_SWConfig(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ SWConfig *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWConfig TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWConfig resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWConfig) {
+ SWConfig *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWConfig. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_Load) {
+ SWConfig *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_Load. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ (arg1)->Load();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_Save) {
+ SWConfig *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_Save. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ (arg1)->Save();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_set) {
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *arg4 ;
+ zval **args[5];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 4) || (zend_get_parameters_array_ex(4-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_set. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+
+ convert_to_string_ex(args[3-argbase]);
+ arg4 = (char *) Z_STRVAL_PP(args[3-argbase]);
+
+ SWConfig_set(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_get) {
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *result;
+ zval **args[4];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 3) || (zend_get_parameters_array_ex(3-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWConfig_get. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ result = (char *)SWConfig_get(arg1,(char const *)arg2,(char const *)arg3);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+// property handler for class SWConfig
+static pval _wrap_propget_SWConfig(zend_property_reference *property_reference) {
+ pval result;
+ pval **_result;
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ result.type = IS_NULL;
+ if (_propget_SWConfig(property_reference, &result)==SUCCESS) return result;
+ //return it ourselves
+ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) return **_result;
+ result.type = IS_NULL;
+ return result;
+}
+static int _propget_SWConfig(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"Sections")==0) {
+ *value=_wrap_SWConfig_Sections_get(property_reference);
+ return SUCCESS;
+ } else if (strcmp(propname,"filename")==0) {
+ *value=_wrap_SWConfig_filename_get(property_reference);
+ return SUCCESS;
+ } else return FAILURE;
+}
+
+static int _wrap_propset_SWConfig(zend_property_reference *property_reference, pval *value) {
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ if (_propset_SWConfig(property_reference, value)==SUCCESS) return SUCCESS;
+ //set it ourselves as we are actual class
+ return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),value);
+}
+static int _propset_SWConfig(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"filename")==0) {
+ return _wrap_SWConfig_filename_set(property_reference, value);
+ } else if (strcmp(propname,"Sections")==0) {
+ return _wrap_SWConfig_Sections_set(property_reference, value);
+ } else return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_findConfig) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char **arg3 ;
+ char **arg4 ;
+ zval **args[5];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 4) || (zend_get_parameters_array_ex(4-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_findConfig. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ if(SWIG_ConvertPtr(*args[2-argbase], (void **) &arg3, SWIGTYPE_p_p_char) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_findConfig. Expected %s", 3-argbase, SWIGTYPE_p_p_char->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_p_char) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_findConfig. Expected %s", 4-argbase, SWIGTYPE_p_p_char->name);
+ }
+
+ (arg1)->findConfig(arg2,arg3,arg4);
+
+
+}
+
+
+static int _wrap_SWMgr_config_set(zend_property_reference *property_reference, pval *value) {
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_config_set. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*&value, (void **) &arg2, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_config_set. Expected %s", 2-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ if (arg1) (arg1)->config = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWMgr_config_get(zend_property_reference *property_reference) {
+ SWMgr *arg1 ;
+ SWConfig *result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_config_get. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (SWConfig *) ((arg1)->config);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWConfig, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWConfig);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+ return _return_value;
+}
+
+
+static int _wrap_SWMgr_sysconfig_set(zend_property_reference *property_reference, pval *value) {
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_sysconfig_set. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*&value, (void **) &arg2, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_sysconfig_set. Expected %s", 2-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ if (arg1) (arg1)->sysconfig = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWMgr_sysconfig_get(zend_property_reference *property_reference) {
+ SWMgr *arg1 ;
+ SWConfig *result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_sysconfig_get. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (SWConfig *) ((arg1)->sysconfig);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWConfig, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWConfig);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+ return _return_value;
+}
+
+
+static int _wrap_SWMgr_Modules_set(zend_property_reference *property_reference, pval *value) {
+ SWMgr *arg1 ;
+ ModMap arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_Modules_set. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ {
+ ModMap * argp;
+ if(SWIG_ConvertPtr(*&value, (void **) &argp, SWIGTYPE_p_ModMap) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_Modules_set. Expected %s", 2-argbase, SWIGTYPE_p_ModMap->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Modules = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWMgr_Modules_get(zend_property_reference *property_reference) {
+ SWMgr *arg1 ;
+ ModMap result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_Modules_get. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = ((arg1)->Modules);
+
+ {
+ ModMap * resultobj = new ModMap((ModMap &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_ModMap, 0);
+ }
+ return _return_value;
+}
+
+
+static int _wrap_SWMgr_prefixPath_set(zend_property_reference *property_reference, pval *value) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_prefixPath_set. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(&value);
+ arg2 = (char *) Z_STRVAL_PP(&value);
+
+ {
+ if (arg1->prefixPath) delete [] arg1->prefixPath;
+ arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->prefixPath,arg2);
+ }
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWMgr_prefixPath_get(zend_property_reference *property_reference) {
+ SWMgr *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_prefixPath_get. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (char *) ((arg1)->prefixPath);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+ return _return_value;
+}
+
+
+static int _wrap_SWMgr_configPath_set(zend_property_reference *property_reference, pval *value) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_configPath_set. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(&value);
+ arg2 = (char *) Z_STRVAL_PP(&value);
+
+ {
+ if (arg1->configPath) delete [] arg1->configPath;
+ arg1->configPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->configPath,arg2);
+ }
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWMgr_configPath_get(zend_property_reference *property_reference) {
+ SWMgr *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_configPath_get. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (char *) ((arg1)->configPath);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+ return _return_value;
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWMgr) {
+ SWConfig *arg1 = 0 ;
+ SWConfig *arg2 = 0 ;
+ bool arg3 = true ;
+ SWFilterMgr *arg4 = 0 ;
+ SWMgr *result;
+ zval **args[5];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(4-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+ if(arg_count > 0) {
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWMgr. Expected %s", 1-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ }
+ if(arg_count > 1) {
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWConfig) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWMgr. Expected %s", 2-argbase, SWIGTYPE_p_SWConfig->name);
+ }
+
+ }
+ if(arg_count > 2) {
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (bool) Z_LVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_SWFilterMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWMgr. Expected %s", 4-argbase, SWIGTYPE_p_SWFilterMgr->name);
+ }
+
+ }
+ result = (SWMgr *)new SWMgr(arg1,arg2,arg3,arg4);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWMgr, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWMgr);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_SWMgr(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ SWMgr *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWMgr TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWMgr resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWMgr) {
+ SWMgr *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWMgr. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_Load) {
+ SWMgr *arg1 ;
+ signed char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_Load. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (signed char)(arg1)->Load();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_setGlobalOption) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ zval **args[4];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 3) || (zend_get_parameters_array_ex(3-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_setGlobalOption. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ (arg1)->setGlobalOption((char const *)arg2,(char const *)arg3);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOption) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_getGlobalOption. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (char *)(arg1)->getGlobalOption((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptionTip) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_getGlobalOptionTip. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (char *)(arg1)->getGlobalOptionTip((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptions) {
+ SWMgr *arg1 ;
+ OptionsList result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_getGlobalOptions. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+ result = (arg1)->getGlobalOptions();
+
+ {
+ OptionsList * resultobj = new OptionsList((OptionsList &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_OptionsList, 0);
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptionValues) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ OptionsList result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_getGlobalOptionValues. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (arg1)->getGlobalOptionValues((char const *)arg2);
+
+ {
+ OptionsList * resultobj = new OptionsList((OptionsList &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_OptionsList, 0);
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_setCipherKey) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ signed char result;
+ zval **args[4];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 3) || (zend_get_parameters_array_ex(3-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_setCipherKey. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ result = (signed char)(arg1)->setCipherKey((char const *)arg2,(char const *)arg3);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_module) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ SWModule *result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWMgr_module. Expected %s", 1-argbase, SWIGTYPE_p_SWMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (SWModule *)SWMgr_module(arg1,(char const *)arg2);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWModule, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWModule);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// property handler for class SWMgr
+static pval _wrap_propget_SWMgr(zend_property_reference *property_reference) {
+ pval result;
+ pval **_result;
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ result.type = IS_NULL;
+ if (_propget_SWMgr(property_reference, &result)==SUCCESS) return result;
+ //return it ourselves
+ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) return **_result;
+ result.type = IS_NULL;
+ return result;
+}
+static int _propget_SWMgr(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"prefixPath")==0) {
+ *value=_wrap_SWMgr_prefixPath_get(property_reference);
+ return SUCCESS;
+ } else if (strcmp(propname,"configPath")==0) {
+ *value=_wrap_SWMgr_configPath_get(property_reference);
+ return SUCCESS;
+ } else if (strcmp(propname,"Modules")==0) {
+ *value=_wrap_SWMgr_Modules_get(property_reference);
+ return SUCCESS;
+ } else if (strcmp(propname,"config")==0) {
+ *value=_wrap_SWMgr_config_get(property_reference);
+ return SUCCESS;
+ } else if (strcmp(propname,"sysconfig")==0) {
+ *value=_wrap_SWMgr_sysconfig_get(property_reference);
+ return SUCCESS;
+ } else return FAILURE;
+}
+
+static int _wrap_propset_SWMgr(zend_property_reference *property_reference, pval *value) {
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ if (_propset_SWMgr(property_reference, value)==SUCCESS) return SUCCESS;
+ //set it ourselves as we are actual class
+ return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),value);
+}
+static int _propset_SWMgr(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"Modules")==0) {
+ return _wrap_SWMgr_Modules_set(property_reference, value);
+ } else if (strcmp(propname,"config")==0) {
+ return _wrap_SWMgr_config_set(property_reference, value);
+ } else if (strcmp(propname,"sysconfig")==0) {
+ return _wrap_SWMgr_sysconfig_set(property_reference, value);
+ } else if (strcmp(propname,"prefixPath")==0) {
+ return _wrap_SWMgr_prefixPath_set(property_reference, value);
+ } else if (strcmp(propname,"configPath")==0) {
+ return _wrap_SWMgr_configPath_set(property_reference, value);
+ } else return FAILURE;
+}
+
+static int _wrap_SWModule_terminateSearch_set(zend_property_reference *property_reference, pval *value) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_terminateSearch_set. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_long_ex(&value);
+ arg2 = (bool) Z_LVAL_PP(&value);
+
+ if (arg1) (arg1)->terminateSearch = arg2;
+
+
+ return SUCCESS;
+}
+
+
+static pval _wrap_SWModule_terminateSearch_get(zend_property_reference *property_reference) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+ zval _return_value;
+ zval *return_value=&_return_value;
+
+
+ if(SWIG_ConvertPtr(*&(property_reference->object), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_terminateSearch_get. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool) ((arg1)->terminateSearch);
+
+
+ ZVAL_LONG(return_value,result);
+
+ return _return_value;
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWModule) {
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ char *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ SWModule *result;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+ if(arg_count > 0) {
+ convert_to_string_ex(((0<argbase)?(&this_ptr):(args[0-argbase])));
+ arg1 = (char *) Z_STRVAL_PP(((0<argbase)?(&this_ptr):(args[0-argbase])));
+
+ }
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ if(SWIG_ConvertPtr(*args[2-argbase], (void **) &arg3, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWModule. Expected %s", 3-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ if(arg_count > 3) {
+ convert_to_string_ex(args[3-argbase]);
+ arg4 = (char *) Z_STRVAL_PP(args[3-argbase]);
+
+ }
+ if(arg_count > 4) {
+ {
+ SWTextEncoding * argp;
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &argp, SWIGTYPE_p_SWTextEncoding) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWModule. Expected %s", 5-argbase, SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if(arg_count > 5) {
+ {
+ SWTextDirection * argp;
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &argp, SWIGTYPE_p_SWTextDirection) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWModule. Expected %s", 6-argbase, SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if(arg_count > 6) {
+ {
+ SWTextMarkup * argp;
+ if(SWIG_ConvertPtr(*args[6-argbase], (void **) &argp, SWIGTYPE_p_SWTextMarkup) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWModule. Expected %s", 7-argbase, SWIGTYPE_p_SWTextMarkup->name);
+ }
+ arg7 = *argp;
+ }
+ }
+ if(arg_count > 7) {
+ convert_to_string_ex(args[7-argbase]);
+ arg8 = (char *) Z_STRVAL_PP(args[7-argbase]);
+
+ }
+ result = (SWModule *)new SWModule((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWModule, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWModule);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Error) {
+ SWModule *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Error. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (unsigned char)(arg1)->Error();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isUnicode) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_isUnicode. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)((SWModule const *)arg1)->isUnicode();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getConfig) {
+ SWModule *arg1 ;
+ ConfigEntMap *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_getConfig. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ {
+ ConfigEntMap const &_result_ref = ((SWModule const *)arg1)->getConfig();
+ result = (ConfigEntMap *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ConfigEntMap, 0);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getConfigEntry) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_getConfigEntry. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (char *)((SWModule const *)arg1)->getConfigEntry((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_SetKey) {
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ unsigned char result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_SetKey. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_SetKey. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (unsigned char)(arg1)->SetKey((SWKey const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Key) {
+ SWModule *arg1 ;
+ SWKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Key. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ {
+ SWKey &_result_ref = ((SWModule const *)arg1)->Key();
+ result = (SWKey *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_CreateKey) {
+ SWModule *arg1 ;
+ SWKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_CreateKey. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (SWKey *)(arg1)->CreateKey();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_KeyText) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_KeyText. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (char *)(arg1)->KeyText((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Display) {
+ SWModule *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Display. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (unsigned char)(arg1)->Display();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_nullPercent) {
+ SWModule *arg1 ;
+ char arg2 ;
+ void *arg3 ;
+ zval **args[4];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 3) || (zend_get_parameters_array_ex(3-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_nullPercent. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char) *Z_STRVAL_PP(args[1-argbase]);
+
+
+ if(SWIG_ConvertPtr(*args[2-argbase], (void **) &arg3, 0) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_nullPercent. Expected %s", 3-argbase, SWIGTYPE_p_void->name);
+ }
+
+ (arg1)->nullPercent(arg2,arg3);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Search) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ int arg3 = 0 ;
+ int arg4 = 0 ;
+ SWKey *arg5 = 0 ;
+ bool *arg6 = 0 ;
+ void (*arg7)(char,void *) = &SWModule::nullPercent ;
+ void *arg8 = 0 ;
+ ListKey *result;
+ bool intr6 ;
+ int force6 ;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+ zval ** _saved[1] ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(2-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Search. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ if(arg_count > 2) {
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (int) Z_LVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ convert_to_long_ex(args[3-argbase]);
+ arg4 = (int) Z_LVAL_PP(args[3-argbase]);
+
+ }
+ if(arg_count > 4) {
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &arg5, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Search. Expected %s", 5-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ }
+ if(arg_count > 5) {
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &arg6, SWIGTYPE_p_bool) < 0) {
+ // So... we didn't get a ref or ptr, but can it be
+ // reasonably co-erced into what we were
+ // looking for a ref of or ptr to?
+ if ((*args[5-argbase])->type==IS_STRING ||
+ (*args[5-argbase])->type==IS_LONG ||
+ (*args[5-argbase])->type==IS_DOUBLE) {
+ convert_to_long_ex(args[5-argbase]);
+ intr6 = (bool) (*args[5-argbase])->value.lval;
+ arg6 = &intr6;
+ // have to passback arg$arg too
+ force6=1;
+ }else {
+ // wasn't a pre/ref/thing, OR anything like an int thing
+ force6=0;
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Search. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 6-argbase, SWIGTYPE_p_bool->name);
+ }
+ }else force6=0;
+
+ }
+ if(arg_count > 6) {
+ if(SWIG_ConvertPtr(*args[6-argbase], (void **) &arg7, SWIGTYPE_p_f_char_p_void__void) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Search. Expected %s", 7-argbase, SWIGTYPE_p_f_char_p_void__void->name);
+ }
+
+ }
+ if(arg_count > 7) {
+ if(SWIG_ConvertPtr(*args[7-argbase], (void **) &arg8, 0) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Search. Expected %s", 8-argbase, SWIGTYPE_p_void->name);
+ }
+
+ }
+ _saved[0] = args[5-argbase];
+ {
+ ListKey &_result_ref = (arg1)->Search((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+ result = (ListKey *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ListKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_ListKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+
+ if (force6) {
+ // pass back arg6 through params (_saved[0]) if we can
+ if(! PZVAL_IS_REF(*_saved[0])) {
+ zend_error(E_WARNING, "Parameter %d of SWModule_Search wasn't passed by reference",6-argbase);
+ }else {
+ ZVAL_LONG(*_saved[0],intr6);
+ }
+ }
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_createSearchFramework) {
+ SWModule *arg1 ;
+ signed char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_createSearchFramework. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (signed char)(arg1)->createSearchFramework();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_hasSearchFramework) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_hasSearchFramework. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)(arg1)->hasSearchFramework();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isSearchOptimallySupported) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ int arg3 ;
+ int arg4 ;
+ SWKey *arg5 ;
+ bool result;
+ zval **args[6];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 5) || (zend_get_parameters_array_ex(5-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_isSearchOptimallySupported. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (int) Z_LVAL_PP(args[2-argbase]);
+
+
+ convert_to_long_ex(args[3-argbase]);
+ arg4 = (int) Z_LVAL_PP(args[3-argbase]);
+
+
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &arg5, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_isSearchOptimallySupported. Expected %s", 5-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (bool)(arg1)->isSearchOptimallySupported((char const *)arg2,arg3,arg4,arg5);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_next) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_next. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)SWModule_next(arg1);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_prev) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_prev. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)SWModule_prev(arg1);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_inc) {
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_inc. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ result = (bool)SWModule_inc(arg1,arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_dec) {
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_dec. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ result = (bool)SWModule_dec(arg1,arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setPosition) {
+ SWModule *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_setPosition. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ {
+ SW_POSITION * argp;
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &argp, SWIGTYPE_p_SW_POSITION) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_setPosition. Expected %s", 2-argbase, SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ SWModule_setPosition(arg1,arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_top) {
+ SWModule *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_top. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ SWModule_top(arg1);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_bottom) {
+ SWModule *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_bottom. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ SWModule_bottom(arg1);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_text) {
+ SWModule *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_text. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (char *)SWModule_text(arg1);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_StripText) {
+ SWModule *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_StripText. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (char *)SWModule_StripText(arg1);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getRawEntry) {
+ SWModule *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_getRawEntry. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (char *)(arg1)->getRawEntry();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setSkipConsecutiveLinks) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_setSkipConsecutiveLinks. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (bool) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->setSkipConsecutiveLinks(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getSkipConsecutiveLinks) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_getSkipConsecutiveLinks. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)(arg1)->getSkipConsecutiveLinks();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getEntryAttributes) {
+ SWModule *arg1 ;
+ AttributeTypeList *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_getEntryAttributes. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ {
+ AttributeTypeList &_result_ref = ((SWModule const *)arg1)->getEntryAttributes();
+ result = (AttributeTypeList *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_AttributeTypeList, 0);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_processEntryAttributes) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_processEntryAttributes. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (bool) Z_LVAL_PP(args[1-argbase]);
+
+ ((SWModule const *)arg1)->processEntryAttributes(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isProcessEntryAttributes) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_isProcessEntryAttributes. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)((SWModule const *)arg1)->isProcessEntryAttributes();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Name) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Name. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (char *)(arg1)->Name((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Description) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Description. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (char *)(arg1)->Description((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Type) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Type. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (char *)(arg1)->Type((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Direction) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Direction. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (signed char) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ result = (unsigned char)(arg1)->Direction(arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Encoding) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Encoding. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (signed char) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ result = (unsigned char)(arg1)->Encoding(arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Markup) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Markup. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (signed char) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ result = (unsigned char)(arg1)->Markup(arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Lang) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_Lang. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (char *)(arg1)->Lang((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isWritable) {
+ SWModule *arg1 ;
+ bool result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_isWritable. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ result = (bool)(arg1)->isWritable();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_createModule) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ signed char result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_createModule. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (signed char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setEntry) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ long arg3 ;
+ zval **args[4];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 3) || (zend_get_parameters_array_ex(3-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_setEntry. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (long) Z_LVAL_PP(args[2-argbase]);
+
+ (arg1)->setEntry((char const *)arg2,arg3);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_deleteEntry) {
+ SWModule *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_deleteEntry. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ (arg1)->deleteEntry();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_write) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_write. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ SWModule_write(arg1,(char const *)arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWModule_writeLink) {
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_writeLink. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWModule_writeLink. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ SWModule_writeLink(arg1,(SWKey const *)arg2);
+
+
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_SWModule(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ SWModule *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWModule TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWModule resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWModule) {
+ SWModule *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWModule) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWModule. Expected %s", 1-argbase, SWIGTYPE_p_SWModule->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+// property handler for class SWModule
+static pval _wrap_propget_SWModule(zend_property_reference *property_reference) {
+ pval result;
+ pval **_result;
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ result.type = IS_NULL;
+ if (_propget_SWModule(property_reference, &result)==SUCCESS) return result;
+ //return it ourselves
+ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) return **_result;
+ result.type = IS_NULL;
+ return result;
+}
+static int _propget_SWModule(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"terminateSearch")==0) {
+ *value=_wrap_SWModule_terminateSearch_get(property_reference);
+ return SUCCESS;
+ } else return FAILURE;
+}
+
+static int _wrap_propset_SWModule(zend_property_reference *property_reference, pval *value) {
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ if (_propset_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ //set it ourselves as we are actual class
+ return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),value);
+}
+static int _propset_SWModule(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ if (strcmp(propname,"terminateSearch")==0) {
+ return _wrap_SWModule_terminateSearch_set(property_reference, value);
+ } else return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SW_POSITION) {
+ char arg1 ;
+ SW_POSITION *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ convert_to_string_ex(((0<argbase)?(&this_ptr):(args[0-argbase])));
+ arg1 = (char) *Z_STRVAL_PP(((0<argbase)?(&this_ptr):(args[0-argbase])));
+
+ result = (SW_POSITION *)new SW_POSITION(arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SW_POSITION, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SW_POSITION);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_SW_POSITION(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ SW_POSITION *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SW_POSITION TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SW_POSITION resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SW_POSITION) {
+ SW_POSITION *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SW_POSITION) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SW_POSITION. Expected %s", 1-argbase, SWIGTYPE_p_SW_POSITION->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+// property handler for class SW_POSITION
+static pval _wrap_propget_SW_POSITION(zend_property_reference *property_reference) {
+ pval result;
+ pval **_result;
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ result.type = IS_NULL;
+ if (_propget_SW_POSITION(property_reference, &result)==SUCCESS) return result;
+ //return it ourselves
+ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) return **_result;
+ result.type = IS_NULL;
+ return result;
+}
+static int _propget_SW_POSITION(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ return FAILURE;
+}
+
+static int _wrap_propset_SW_POSITION(zend_property_reference *property_reference, pval *value) {
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ if (_propset_SW_POSITION(property_reference, value)==SUCCESS) return SUCCESS;
+ //set it ourselves as we are actual class
+ return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),value);
+}
+static int _propset_SW_POSITION(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWKey) {
+ char *arg1 = 0 ;
+ SWKey *result;
+ zval **args[2];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(1-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+ if(arg_count > 0) {
+ convert_to_string_ex(((0<argbase)?(&this_ptr):(args[0-argbase])));
+ arg1 = (char *) Z_STRVAL_PP(((0<argbase)?(&this_ptr):(args[0-argbase])));
+
+ }
+ result = (SWKey *)new SWKey((char const *)arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWKey, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_clone) {
+ SWKey *arg1 ;
+ SWKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_clone. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (SWKey *)((SWKey const *)arg1)->clone();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Persist) {
+ SWKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_Persist. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (unsigned char)((SWKey const *)arg1)->Persist();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setPersist) {
+ SWKey *arg1 ;
+ signed char arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_setPersist. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (signed char) Z_LVAL_PP(args[1-argbase]);
+
+ SWKey_setPersist(arg1,arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Error) {
+ SWKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_Error. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (unsigned char)(arg1)->Error();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setText) {
+ SWKey *arg1 ;
+ char *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_setText. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ (arg1)->setText((char const *)arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_getText) {
+ SWKey *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_getText. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (char *)((SWKey const *)arg1)->getText();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_getShortText) {
+ SWKey *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_getShortText. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (char *)((SWKey const *)arg1)->getShortText();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_compare) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ int result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_compare. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_compare. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_equals) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ bool result;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_equals. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_equals. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (bool)(arg1)->equals((SWKey const &)*arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_decrement) {
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_decrement. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ (arg1)->decrement(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_increment) {
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ zval **args[3];
+ int argbase=0 ;
+ int arg_count;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(2-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_increment. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ (arg1)->increment(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Traversable) {
+ SWKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_Traversable. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (unsigned char)(arg1)->Traversable();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Index) {
+ SWKey *arg1 ;
+ long result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_Index. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ result = (long)((SWKey const *)arg1)->Index();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_next) {
+ SWKey *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_next. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ SWKey_next(arg1);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_prev) {
+ SWKey *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_prev. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ SWKey_prev(arg1);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setKey) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_setKey. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWKey_setKey. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ SWKey_setKey(arg1,(SWKey const *)arg2);
+
+
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_SWKey(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ SWKey *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWKey TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWKey resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWKey) {
+ SWKey *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWKey. Expected %s", 1-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+// property handler for class SWKey
+static pval _wrap_propget_SWKey(zend_property_reference *property_reference) {
+ pval result;
+ pval **_result;
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ result.type = IS_NULL;
+ if (_propget_SWKey(property_reference, &result)==SUCCESS) return result;
+ //return it ourselves
+ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) return **_result;
+ result.type = IS_NULL;
+ return result;
+}
+static int _propget_SWKey(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ return FAILURE;
+}
+
+static int _wrap_propset_SWKey(zend_property_reference *property_reference, pval *value) {
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ if (_propset_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ //set it ourselves as we are actual class
+ return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),Z_STRLEN_P(&(property->element)),value);
+}
+static int _propset_SWKey(zend_property_reference *property_reference, pval *value) {
+ /* get the property name */
+ zend_llist_element *element = property_reference->elements_list->head;
+ zend_overloaded_element *property=(zend_overloaded_element *)element->data;
+ char *propname=Z_STRVAL_P(&(property->element));
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_VerseKey) {
+ char *arg1 = 0 ;
+ VerseKey *result;
+ zval **args[2];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(1-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SUCCESS)
+ WRONG_PARAM_COUNT;
+
+ if(arg_count > 0) {
+ convert_to_string_ex(((0<argbase)?(&this_ptr):(args[0-argbase])));
+ arg1 = (char *) Z_STRVAL_PP(((0<argbase)?(&this_ptr):(args[0-argbase])));
+
+ }
+ result = (VerseKey *)new VerseKey((char const *)arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_VerseKey, 1);
+
+ // Wrap this return value
+ if (this_ptr) {
+ // NATIVE Constructor, use this_ptr
+ zval *_cPtr; MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ add_property_zval(this_ptr,"_cPtr",_cPtr);
+ }else if (! this_ptr) {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_VerseKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_VerseKey(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
+ swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
+ void *ptr=value->ptr ;
+ int newobject=value->newobject ;
+ VerseKey *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_VerseKey TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "VerseKey resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_VerseKey) {
+ VerseKey *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_VerseKey. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ //if ((*args[0])->type==IS_RESOURCE) {
+ // // Get zend list destructor to free it
+ // zend_list_delete(Z_LVAL_PP(args[0]));
+ //} else {
+ delete arg1;
+
+ //}
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_clone) {
+ VerseKey *arg1 ;
+ SWKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_clone. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (SWKey *)((VerseKey const *)arg1)->clone();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_SWKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_LowerBound) {
+ VerseKey *arg1 ;
+ VerseKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_LowerBound. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ {
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->LowerBound();
+ result = (VerseKey *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_VerseKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_VerseKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_UpperBound) {
+ VerseKey *arg1 ;
+ VerseKey *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_UpperBound. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ {
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->UpperBound();
+ result = (VerseKey *) &_result_ref;
+ }
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_VerseKey, 0);
+
+ // Wrap this return value
+ {
+ // ALTERNATIVE Constructor, make an object wrapper
+ zval *obj, *_cPtr;
+ MAKE_STD_ZVAL(obj);
+ MAKE_STD_ZVAL(_cPtr);
+ *_cPtr = *return_value;
+ INIT_ZVAL(*return_value);
+ object_init_ex(obj,ptr_ce_swig_VerseKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_ClearBounds) {
+ VerseKey *arg1 ;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_ClearBounds. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ (arg1)->ClearBounds();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_decrement) {
+ VerseKey *arg1 ;
+ int arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_decrement. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->decrement(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_increment) {
+ VerseKey *arg1 ;
+ int arg2 ;
+ zval **args[3];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 2) || (zend_get_parameters_array_ex(2-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_increment. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->increment(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Traversable) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_Traversable. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (unsigned char)(arg1)->Traversable();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getBookName) {
+ VerseKey *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_getBookName. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (char *)((VerseKey const *)arg1)->getBookName();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getBookAbbrev) {
+ VerseKey *arg1 ;
+ char *result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_getBookAbbrev. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (char *)((VerseKey const *)arg1)->getBookAbbrev();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Testament) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_Testament. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (unsigned char)((VerseKey const *)arg1)->Testament();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Book) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {
+ // fake this_ptr as first arg (till we can work out how to do it better
+ argbase++;
+ }
+ if(((ZEND_NUM_ARGS() + argbase )!= 1) || (zend_get_parameters_array_ex(1-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+
+ if(SWIG_ConvertPtr(*((0<argbase)?(&this_ptr):(args[0-argbase])), (void **) &arg1, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_Book. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (unsigned char)((VerseKey const *)arg1)->Book();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Chapter) {
+ VerseKey *arg1 ;
+ int result;
+ zval **args[2];
+ int argbase=0 ;
+
+ if (this_ptr && this_ptr->type==IS_OBJECT) {