aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-10-11 17:01:59 +0000
committerdanglassey <danglassey>2002-10-11 17:01:59 +0000
commit59e4f0dff82f8c851fce309df6ad3e2674c8918f (patch)
tree4f8fe55422ef48f5beca3c77cffb664193827d20
parente59732cebdaf9f69f6c33206115df326de1133f3 (diff)
downloadsword-sf-cvs-59e4f0dff82f8c851fce309df6ad3e2674c8918f.tar.gz
catch up on some of the files that have been added to crosswire recently
-rw-r--r--bindings/swig/Makefile.am95
-rw-r--r--bindings/swig/Makefile.in324
-rw-r--r--bindings/swig/Makefile.oth22
-rw-r--r--bindings/swig/aclocal.m4819
-rwxr-xr-xbindings/swig/configure4850
-rw-r--r--bindings/swig/configure.ac41
-rw-r--r--bindings/swig/perl.m471
-rw-r--r--bindings/swig/perl/Changes6
-rw-r--r--bindings/swig/perl/MANIFEST11
-rw-r--r--bindings/swig/perl/Makefile.PL17
-rw-r--r--bindings/swig/perl/README35
-rw-r--r--bindings/swig/perl/Sword.cxx6648
-rw-r--r--bindings/swig/perl/Sword.pm1265
-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/php4.m433
-rw-r--r--bindings/swig/python.m4117
-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/swig.m429
-rw-r--r--bindings/swig/sword.m4172
-rw-r--r--bindings/swig/tcl.m4114
-rw-r--r--bindings/swig/zlib.m4111
-rw-r--r--debian/README.Debian27
-rw-r--r--debian/changelog223
-rw-r--r--debian/conffiles1
-rw-r--r--debian/control63
-rw-r--r--debian/copyright16
-rw-r--r--debian/diatheke.dirs3
-rw-r--r--debian/diatheke.undocumented1
-rw-r--r--debian/dirs6
-rw-r--r--debian/docs2
-rw-r--r--debian/libsword-dev.dirs3
-rw-r--r--debian/libsword-dev.doc-base9
-rw-r--r--debian/libsword-runtime.dirs1
-rw-r--r--debian/libsword-runtime.undocumented9
-rwxr-xr-xdebian/rules129
-rw-r--r--debian/shlibs1
-rw-r--r--debian/sword.conf2
-rw-r--r--doc/ads/de/sword_cd.pdfbin0 -> 77161 bytes
-rw-r--r--doc/ads/de/sword_cd.sxwbin0 -> 17493 bytes
-rw-r--r--doc/ads/de/sword_cd_cover.pdfbin0 -> 169898 bytes
-rw-r--r--doc/ads/de/sword_cd_cover.sxdbin0 -> 32274 bytes
-rw-r--r--icu/translit_Any_Latex.txt79
-rw-r--r--include/ftpparse.h53
-rw-r--r--include/installmgr.h51
-rw-r--r--locales.d/af.conf256
-rw-r--r--locales.d/en_GB.conf256
-rw-r--r--locales.d/et.conf430
-rw-r--r--locales.d/et_abbr.conf332
-rw-r--r--locales.d/ru.conf464
-rw-r--r--src/mgr/installmgr.cpp145
-rw-r--r--src/utilfuns/ftpparse.c446
-rw-r--r--src/utilfuns/roman.cpp (renamed from src/utilfuns/roman.c)7
-rw-r--r--tests/rawldidxtest.cpp52
-rw-r--r--utilities/bcppmake/mod2osis.bpf9
-rw-r--r--utilities/bcppmake/mod2osis.bpr115
-rw-r--r--utilities/bcppmake/step2vpl.bpf9
-rw-r--r--utilities/bcppmake/step2vpl.bpr118
-rw-r--r--utilities/bcppmake/stepdump.bpf9
-rw-r--r--utilities/bcppmake/stepdump.bpr118
64 files changed, 34781 insertions, 1 deletions
diff --git a/bindings/swig/Makefile.am b/bindings/swig/Makefile.am
new file mode 100644
index 0000000..e99e470
--- /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) $(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) -php -c++ -o php/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
diff --git a/bindings/swig/Makefile.in b/bindings/swig/Makefile.in
new file mode 100644
index 0000000..89410ad
--- /dev/null
+++ b/bindings/swig/Makefile.in
@@ -0,0 +1,324 @@
+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
+
+# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+
+DESTDIR =
+
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+
+top_builddir = .
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+transform = @program_transform_name@
+
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+CC = @CC@
+CXX = @CXX@
+LIBZ = @LIBZ@
+LIB_SWORD = @LIB_SWORD@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+PACKAGE = @PACKAGE@
+PERL = @PERL@
+PERL5DYNAMICLINKING = @PERL5DYNAMICLINKING@
+PERL5EXT = @PERL5EXT@
+PERL5LIB = @PERL5LIB@
+PERLBUILD = @PERLBUILD@
+PHP4 = @PHP4@
+PHP4INC = @PHP4INC@
+PYINCLUDE = @PYINCLUDE@
+PYLIB = @PYLIB@
+PYLINK = @PYLINK@
+PYTHON = @PYTHON@
+PYTHONBUILD = @PYTHONBUILD@
+PYTHONDYNAMICLINKING = @PYTHONDYNAMICLINKING@
+SWIG = @SWIG@
+SWORD_INCLUDES = @SWORD_INCLUDES@
+TCLDYNAMICLINKING = @TCLDYNAMICLINKING@
+TCLINCLUDE = @TCLINCLUDE@
+TCLLIB = @TCLLIB@
+USER_INCLUDES = @USER_INCLUDES@
+USER_LDFLAGS = @USER_LDFLAGS@
+VERSION = @VERSION@
+@RUNSWIG_TRUE@PERLSWIG = perlswig
+@RUNSWIG_FALSE@PERLSWIG =
+@RUNSWIG_TRUE@TCLSWIG = tclswig
+@RUNSWIG_FALSE@TCLSWIG =
+@RUNSWIG_TRUE@PYTHONSWIG = pythonswig
+@RUNSWIG_FALSE@PYTHONSWIG =
+@RUNSWIG_TRUE@PHPSWIG = phpswig
+@RUNSWIG_FALSE@PHPSWIG =
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
+CONFIG_CLEAN_FILES =
+DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.ac
+
+
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
+
+TAR = tar
+GZIP_ENV = --best
+all: all-redirect
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+ cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
+
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
+ cd $(top_builddir) \
+ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.ac
+ cd $(srcdir) && $(ACLOCAL)
+
+config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+ cd $(srcdir) && $(AUTOCONF)
+tags: TAGS
+TAGS:
+
+
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ -rm -rf $(distdir)
+ GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
+ mkdir $(distdir)/=build
+ mkdir $(distdir)/=inst
+ dc_install_base=`cd $(distdir)/=inst && pwd`; \
+ cd $(distdir)/=build \
+ && ../configure --srcdir=.. --prefix=$$dc_install_base \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) dist
+ -rm -rf $(distdir)
+ @banner="$(distdir).tar.gz is ready for distribution"; \
+ dashes=`echo "$$banner" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ echo "$$dashes"
+dist: distdir
+ -chmod -R a+r $(distdir)
+ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+ -rm -rf $(distdir)
+dist-all: distdir
+ -chmod -R a+r $(distdir)
+ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+ -rm -rf $(distdir)
+distdir: $(DISTFILES)
+ -rm -rf $(distdir)
+ mkdir $(distdir)
+ -chmod 777 $(distdir)
+ here=`cd $(top_builddir) && pwd`; \
+ top_distdir=`cd $(distdir) && pwd`; \
+ distdir=`cd $(distdir) && pwd`; \
+ cd $(top_srcdir) \
+ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
+ @for file in $(DISTFILES); do \
+ d=$(srcdir); \
+ if test -d $$d/$$file; then \
+ cp -pr $$d/$$file $(distdir)/$$file; \
+ else \
+ test -f $(distdir)/$$file \
+ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
+ || cp -p $$d/$$file $(distdir)/$$file || :; \
+ fi; \
+ done
+info-am:
+info: info-am
+dvi-am:
+dvi: dvi-am
+check-am: all-am
+check: check-am
+installcheck-am:
+installcheck: installcheck-am
+install-exec-am:
+install-exec: install-exec-am
+
+install-data-am:
+install-data: install-data-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+install: install-am
+uninstall-am:
+uninstall: uninstall-am
+all-am: Makefile
+all-redirect: all-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+installdirs:
+
+
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+mostlyclean-am: mostlyclean-generic
+
+mostlyclean: mostlyclean-am
+
+clean-am: clean-generic mostlyclean-am
+
+clean: clean-am
+
+distclean-am: distclean-generic clean-am
+
+distclean: distclean-am
+ -rm -f config.status
+
+maintainer-clean-am: maintainer-clean-generic distclean-am
+ @echo "This command is intended for maintainers to use;"
+ @echo "it deletes files that may require special tools to rebuild."
+
+maintainer-clean: maintainer-clean-am
+ -rm -f config.status
+
+.PHONY: tags distdir info-am info dvi-am dvi check check-am \
+installcheck-am installcheck install-exec-am install-exec \
+install-data-am install-data install-am install uninstall-am uninstall \
+all-redirect all-am all installdirs mostlyclean-generic \
+distclean-generic clean-generic maintainer-clean-generic clean \
+mostlyclean distclean maintainer-clean
+
+
+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) $(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) -php -c++ -o php/Sword.cxx -I$(top_srcdir) $(top_srcdir)/sword.i
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
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/aclocal.m4 b/bindings/swig/aclocal.m4
new file mode 100644
index 0000000..c1b4b7b
--- /dev/null
+++ b/bindings/swig/aclocal.m4
@@ -0,0 +1,819 @@
+dnl aclocal.m4 generated automatically by aclocal 1.4-p6
+
+dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+dnl PARTICULAR PURPOSE.
+
+# Do all the work for Automake. This macro actually does too much --
+# some checks are only needed if your package does certain things.
+# But this isn't really a big deal.
+
+# serial 1
+
+dnl Usage:
+dnl AM_INIT_AUTOMAKE(package,version, [no-define])
+
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])
+PACKAGE=[$1]
+AC_SUBST(PACKAGE)
+VERSION=[$2]
+AC_SUBST(VERSION)
+dnl test to see if srcdir already configured
+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+fi
+ifelse([$3],,
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
+AC_REQUIRE([AM_SANITY_CHECK])
+AC_REQUIRE([AC_ARG_PROGRAM])
+dnl FIXME This is truly gross.
+missing_dir=`cd $ac_aux_dir && pwd`
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
+AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
+AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
+AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
+AC_REQUIRE([AC_PROG_MAKE_SET])])
+
+# Copyright 2002 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION so it can be traced.
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+ [AM_AUTOMAKE_VERSION([1.4-p6])])
+
+#
+# Check to make sure that the build environment is sane.
+#
+
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftestfile
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
+ if test "[$]*" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftestfile`
+ fi
+ if test "[$]*" != "X $srcdir/configure conftestfile" \
+ && test "[$]*" != "X conftestfile $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "[$]2" = conftestfile
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+rm -f conftest*
+AC_MSG_RESULT(yes)])
+
+dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
+dnl The program must properly implement --version.
+AC_DEFUN([AM_MISSING_PROG],
+[AC_MSG_CHECKING(for working $2)
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if ($2 --version) < /dev/null > /dev/null 2>&1; then
+ $1=$2
+ AC_MSG_RESULT(found)
+else
+ $1="$3/missing $2"
+ AC_MSG_RESULT(missing)
+fi
+AC_SUBST($1)])
+
+#----------------------------------------------------------------
+# 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=``
+
+])
+
+# Define a conditional.
+
+AC_DEFUN([AM_CONDITIONAL],
+[AC_SUBST($1_TRUE)
+AC_SUBST($1_FALSE)
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi])
+
+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;
+
+])
+
+
+
+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
+])
+
+# Add --enable-maintainer-mode option to configure.
+# From Jim Meyering
+
+# serial 1
+
+AC_DEFUN([AM_MAINTAINER_MODE],
+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode is disabled by default
+ AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ USE_MAINTAINER_MODE=$enableval,
+ USE_MAINTAINER_MODE=no)
+ AC_MSG_RESULT($USE_MAINTAINER_MODE)
+ AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST(MAINT)dnl
+]
+)
+
+#----------------------------------------------------------------
+# 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)
+
+])
+
+#----------------------------------------------------------------
+# 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)
+
+])
+
+#-------------------------------------------------------------------------
+# 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)
+
+])
+
+#--------------------------------------------------------------------
+# 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/configure b/bindings/swig/configure
new file mode 100755
index 0000000..fe65291
--- /dev/null
+++ b/bindings/swig/configure
@@ -0,0 +1,4850 @@
+#! /bin/sh
+# From configure.ac Revision: 1.3 .
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.53 for swordbindings 1.5.5.
+#
+# Report bugs to <sword-bugs@crosswire.org>.
+#
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+fi
+
+# NLS nuisances.
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
+ { $as_unset LANG || test "${LANG+set}" != set; } ||
+ { LANG=C; export LANG; }
+(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
+ { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
+ { LC_ALL=C; export LC_ALL; }
+(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
+ { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
+ { LC_TIME=C; export LC_TIME; }
+(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
+ { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
+ { LC_CTYPE=C; export LC_CTYPE; }
+(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
+ { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
+ { LANGUAGE=C; export LANGUAGE; }
+(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
+ { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
+ { LC_COLLATE=C; export LC_COLLATE; }
+(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
+ { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
+ { LC_NUMERIC=C; export LC_NUMERIC; }
+(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
+ { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
+ { LC_MESSAGES=C; export LC_MESSAGES; }
+
+
+# Name of the executable.
+as_me=`(basename "$0") 2>/dev/null ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conftest.sh
+ echo "exit 0" >>conftest.sh
+ chmod +x conftest.sh
+ if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conftest.sh
+fi
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" || {
+ # Find who we are. Look in the path if we contain no path at all
+ # relative or not.
+ case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+ ;;
+ esac
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
+ # in which case we are not to be found in the path.
+ if test "x$as_myself" = x; then
+ as_myself=$0
+ fi
+ if test ! -f "$as_myself"; then
+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
+ { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for as_base in sh bash ksh sh5; do
+ case $as_dir in
+ /*)
+ if ("$as_dir/$as_base" -c '
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+ fi;;
+ esac
+ done
+done
+;;
+ esac
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line before each line; the second 'sed' does the real
+ # work. The second script uses 'N' to pair each line-number line
+ # with the numbered line, and appends trailing '-' during
+ # substitution so that $LINENO is not a special case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
+ sed '=' <$as_myself |
+ sed '
+ N
+ s,$,-,
+ : loop
+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ t loop
+ s,-$,,
+ s,^['$as_cr_digits']*\n,,
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensible to this).
+ . ./$as_me.lineno
+ # Exit status is that of the last command.
+ exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+ *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T=' ' ;;
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ # We could just check for DJGPP; but this test a) works b) is more generic
+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+ if test -f conf$$.exe; then
+ # Don't use ln at all; we don't have any links
+ as_ln_s='cp -p'
+ else
+ as_ln_s='ln -s'
+ fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" $as_nl"
+
+# CDPATH.
+$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
+
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+exec 6>&1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete. It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME='swordbindings'
+PACKAGE_TARNAME='swordbindings'
+PACKAGE_VERSION='1.5.5'
+PACKAGE_STRING='swordbindings 1.5.5'
+PACKAGE_BUGREPORT='sword-bugs@crosswire.org'
+
+ac_unique_file="sword.i"
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
+
+ac_prev=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval "$ac_prev=\$ac_option"
+ ac_prev=
+ continue
+ fi
+
+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_option in
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+ | --da=*)
+ datadir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+ { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ eval "enable_$ac_feature=no" ;;
+
+ -enable-* | --enable-*)
+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+ { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) ac_optarg=yes ;;
+ esac
+ eval "enable_$ac_feature='$ac_optarg'" ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst \
+ | --locals | --local | --loca | --loc | --lo)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+ { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) ac_optarg=yes ;;
+ esac
+ eval "with_$ac_package='$ac_optarg'" ;;
+
+ -without-* | --without-*)
+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+ { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package | sed 's/-/_/g'`
+ eval "with_$ac_package=no" ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) { echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; }
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+ { (exit 1); exit 1; }; }
+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+ eval "$ac_envvar='$ac_optarg'"
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { echo "$as_me: error: missing argument to $ac_option" >&2
+ { (exit 1); exit 1; }; }
+fi
+
+# Be sure to have absolute paths.
+for ac_var in exec_prefix prefix
+do
+ eval ac_val=$`echo $ac_var`
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+ localstatedir libdir includedir oldincludedir infodir mandir
+do
+ eval ac_val=$`echo $ac_var`
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used." >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then its parent.
+ ac_confdir=`(dirname "$0") 2>/dev/null ||
+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$0" : 'X\(//\)[^/]' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$0" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r $srcdir/$ac_unique_file; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r $srcdir/$ac_unique_file; then
+ if test "$ac_srcdir_defaulted" = yes; then
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+ { (exit 1); exit 1; }; }
+ else
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+ { (exit 1); exit 1; }; }
+ fi
+fi
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CXX_set=${CXX+set}
+ac_env_CXX_value=$CXX
+ac_cv_env_CXX_set=${CXX+set}
+ac_cv_env_CXX_value=$CXX
+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_env_CXXFLAGS_value=$CXXFLAGS
+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures swordbindings 1.5.5 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+_ACEOF
+
+ cat <<_ACEOF
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --datadir=DIR read-only architecture-independent data [PREFIX/share]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --infodir=DIR info documentation [PREFIX/info]
+ --mandir=DIR man documentation [PREFIX/man]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of swordbindings 1.5.5:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-swig=path Run swig to generate new source default=no
+ --enable-static-sword Link to the static Sword library
+ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-swigbin=path Set location of swig executable
+ --with-sword-dir=DIR Patch where Sword is being installed (default=/usr)
+ --with-extra-includes=DIR
+ adds non standard include paths
+ --with-extra-libs=DIR adds non standard library paths
+ --with-perl=path Set location of Perl5 executable
+ --with-python=path Set location of Python executable
+ --with-php4=path Set location of PHP4 executable
+ --with-tclconfig=path Set location of tclConfig.sh
+ --with-tcl=path Set location of Tcl package
+ --with-tclincl=path Set location of Tcl include directory
+ --with-tcllib=path Set location of Tcl library directory
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
+ headers in a nonstandard directory <include dir>
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <sword-bugs@crosswire.org>.
+_ACEOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ ac_popdir=`pwd`
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d $ac_dir || continue
+ ac_builddir=.
+
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A "../" for each directory in $ac_dir_suffix.
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
+ *) # Relative path.
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+ cd $ac_dir
+ # Check for guested configure; otherwise get Cygnus style configure.
+ if test -f $ac_srcdir/configure.gnu; then
+ echo
+ $SHELL $ac_srcdir/configure.gnu --help=recursive
+ elif test -f $ac_srcdir/configure; then
+ echo
+ $SHELL $ac_srcdir/configure --help=recursive
+ elif test -f $ac_srcdir/configure.ac ||
+ test -f $ac_srcdir/configure.in; then
+ echo
+ $ac_configure --help
+ else
+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi
+ cd $ac_popdir
+ done
+fi
+
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+ cat <<\_ACEOF
+swordbindings configure 1.5.5
+generated by GNU Autoconf 2.53
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit 0
+fi
+exec 5>config.log
+cat >&5 <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by swordbindings $as_me 1.5.5, which was
+generated by GNU Autoconf 2.53. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ echo "PATH: $as_dir"
+done
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Also quote any args containing shell meta-characters.
+ac_configure_args=
+ac_sep=
+for ac_arg
+do
+ case $ac_arg in
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n ) continue ;;
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ continue ;;
+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+ ac_sep=" " ;;
+ esac
+ # Get rid of the leading space.
+done
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+ cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+{
+ (set) 2>&1 |
+ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+ *ac_space=\ *)
+ sed -n \
+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+ ;;
+ *)
+ sed -n \
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ ;;
+ esac;
+}
+ echo
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ sed "/^$/d" confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ echo "$as_me: caught signal $ac_signal"
+ echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core core.* *.core &&
+ rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+ ' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer explicitly selected file to automatically selected ones.
+if test -z "$CONFIG_SITE"; then
+ if test "x$prefix" != xNONE; then
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ else
+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+ fi
+fi
+for ac_site_file in $CONFIG_SITE; do
+ if test -r "$ac_site_file"; then
+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file"
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
+echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . $cache_file;;
+ *) . ./$cache_file;;
+ esac
+ fi
+else
+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
+echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in `(set) 2>&1 |
+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+ eval ac_new_val="\$ac_env_${ac_var}_value"
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
+echo "$as_me: former value: $ac_old_val" >&2;}
+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
+echo "$as_me: current value: $ac_new_val" >&2;}
+ ac_cache_corrupted=:
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+am__api_version="1.4"
+ac_aux_dir=
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ if test -f $ac_dir/install-sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f $ac_dir/install.sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f $ac_dir/shtool; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# ./install, which can be erroneously created by make from ./install.sh.
+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+done
+
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. We don't cache a
+ # path for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the path is relative.
+ INSTALL=$ac_install_sh
+ fi
+fi
+echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+echo "$as_me:$LINENO: checking whether build environment is sane" >&5
+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
+# Just in case
+sleep 1
+echo timestamp > conftestfile
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftestfile`
+ fi
+ if test "$*" != "X $srcdir/configure conftestfile" \
+ && test "$*" != "X conftestfile $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&5
+echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ test "$2" = conftestfile
+ )
+then
+ # Ok.
+ :
+else
+ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
+Check your system clock" >&5
+echo "$as_me: error: newly created file is older than distributed files!
+Check your system clock" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+rm -f conftest*
+echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+test "$program_prefix" != NONE &&
+ program_transform_name="s,^,$program_prefix,;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s,\$,$program_suffix,;$program_transform_name"
+# Double any \ or $. echo might interpret backslashes.
+# By default was `s,x,x', remove it if useless.
+cat <<\_ACEOF >conftest.sed
+s/[\\$]/&&/g;s/;s,x,x,$//
+_ACEOF
+program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
+rm conftest.sed
+
+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.make <<\_ACEOF
+all:
+ @echo 'ac_maketemp="${MAKE}"'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
+if test -n "$ac_maketemp"; then
+ eval ac_cv_prog_make_${ac_make}_set=yes
+else
+ eval ac_cv_prog_make_${ac_make}_set=no
+fi
+rm -f conftest.make
+fi
+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ SET_MAKE=
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+
+PACKAGE=swordbindings
+
+VERSION=1.5.5
+
+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
+ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
+echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+
+
+missing_dir=`cd $ac_aux_dir && pwd`
+echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
+echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
+ ACLOCAL=aclocal-${am__api_version}
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6
+else
+ ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
+ echo "$as_me:$LINENO: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+fi
+
+echo "$as_me:$LINENO: checking for working autoconf" >&5
+echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if (autoconf --version) < /dev/null > /dev/null 2>&1; then
+ AUTOCONF=autoconf
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6
+else
+ AUTOCONF="$missing_dir/missing autoconf"
+ echo "$as_me:$LINENO: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+fi
+
+echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
+echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
+ AUTOMAKE=automake-${am__api_version}
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6
+else
+ AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
+ echo "$as_me:$LINENO: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+fi
+
+echo "$as_me:$LINENO: checking for working autoheader" >&5
+echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if (autoheader --version) < /dev/null > /dev/null 2>&1; then
+ AUTOHEADER=autoheader
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6
+else
+ AUTOHEADER="$missing_dir/missing autoheader"
+ echo "$as_me:$LINENO: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+fi
+
+echo "$as_me:$LINENO: checking for working makeinfo" >&5
+echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+# Redirect stdin to placate older versions of autoconf. Sigh.
+if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
+ MAKEINFO=makeinfo
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6
+else
+ MAKEINFO="$missing_dir/missing makeinfo"
+ echo "$as_me:$LINENO: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+fi
+
+
+
+# ---------------------------------------------------------------------
+# Check Programs
+# ---------------------------------------------------------------------
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ CC=$ac_ct_CC
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ set dummy "$as_dir/$ac_word" ${1+"$@"}
+ shift
+ ac_cv_prog_CC="$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CC" && break
+done
+
+ CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.exe"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+echo "$as_me:$LINENO: checking for C compiler default output" >&5
+echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+ (eval $ac_link_default) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Find the output, starting from the most likely. This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
+ ls a.out conftest 2>/dev/null;
+ ls a.* conftest.* 2>/dev/null`; do
+ case $ac_file in
+ *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
+ a.out ) # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
+ export ac_cv_exeext
+ break;;
+ * ) break;;
+ esac
+done
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
+echo "$as_me: error: C compiler cannot create executables" >&2;}
+ { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+ if { ac_try='./$ac_file'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'." >&5
+echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ fi
+fi
+echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+
+rm -f a.out a.exe conftest$ac_cv_exeext
+ac_clean_files=$ac_clean_files_save
+# Check the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $cross_compiling" >&5
+echo "${ECHO_T}$cross_compiling" >&6
+
+echo "$as_me:$LINENO: checking for suffix of executables" >&5
+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
+ case $ac_file in
+ *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ export ac_cv_exeext
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+echo "${ECHO_T}$ac_cv_exeext" >&6
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+echo "$as_me:$LINENO: checking for suffix of object files" >&5
+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
+if test "${ac_cv_objext+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
+echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_compiler_gnu=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+# Some people use a C++ compiler to compile C. Since we use `exit',
+# in C++ we need to declare it. In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+ choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ for ac_declaration in \
+ ''\
+ '#include <stdlib.h>' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+$ac_declaration
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+$ac_declaration
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$CXX"; then
+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+ echo "$as_me:$LINENO: result: $CXX" >&5
+echo "${ECHO_T}$CXX" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$CXX" && break
+ done
+fi
+if test -z "$CXX"; then
+ ac_ct_CXX=$CXX
+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_ct_CXX"; then
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
+echo "${ECHO_T}$ac_ct_CXX" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$ac_ct_CXX" && break
+done
+test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
+
+ CXX=$ac_ct_CXX
+fi
+
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+ "checking for C++ compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+ (eval $ac_compiler --version </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+ (eval $ac_compiler -v </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+ (eval $ac_compiler -V </dev/null >&5) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_compiler_gnu=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_compiler_gnu=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
+GXX=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
+echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cxx_g+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_prog_cxx_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
+if test "$ac_test_CXXFLAGS" = set; then
+ CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
+ CXXFLAGS="-g -O2"
+ else
+ CXXFLAGS="-g"
+ fi
+else
+ if test "$GXX" = yes; then
+ CXXFLAGS="-O2"
+ else
+ CXXFLAGS=
+ fi
+fi
+for ac_declaration in \
+ ''\
+ '#include <stdlib.h>' \
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
+ 'extern "C" void std::exit (int); using std::exit;' \
+ 'extern "C" void exit (int) throw ();' \
+ 'extern "C" void exit (int);' \
+ 'void exit (int);'
+do
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+$ac_declaration
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+$ac_declaration
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+exit (42);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ break
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# ./install, which can be erroneously created by make from ./install.sh.
+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+done
+
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. We don't cache a
+ # path for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the path is relative.
+ INSTALL=$ac_install_sh
+ fi
+fi
+echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+
+
+
+# Check whether --with-swigbin or --without-swigbin was given.
+if test "${with_swigbin+set}" = set; then
+ withval="$with_swigbin"
+ SWIGBIN="$withval"
+else
+ SWIGBIN=
+fi;
+# Check whether --enable-swig or --disable-swig was given.
+if test "${enable_swig+set}" = set; then
+ enableval="$enable_swig"
+
+else
+ enable_swig=no
+fi;
+
+if test -z "$SWIGBIN"; then
+# Extract the first word of "swig", so it can be a program name with args.
+set dummy swig; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_SWIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $SWIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+SWIG=$ac_cv_path_SWIG
+
+if test -n "$SWIG"; then
+ echo "$as_me:$LINENO: result: $SWIG" >&5
+echo "${ECHO_T}$SWIG" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+else
+# Extract the first word of "swig", so it can be a program name with args.
+set dummy swig; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_SWIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $SWIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $SWIGBIN
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG=""not found""
+ ;;
+esac
+fi
+SWIG=$ac_cv_path_SWIG
+
+if test -n "$SWIG"; then
+ echo "$as_me:$LINENO: result: $SWIG" >&5
+echo "${ECHO_T}$SWIG" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+
+runswig=true
+if test x"$SWIG"="xnot found"; then
+ runswig=false
+fi
+if test x"$enable_swig"="xno"; then
+ runswig=false
+fi
+
+
+
+if test x$runswig = xtrue; then
+ RUNSWIG_TRUE=
+ RUNSWIG_FALSE='#'
+else
+ RUNSWIG_TRUE='#'
+ RUNSWIG_FALSE=
+fi
+
+#ac_cv_swigversion=``
+
+
+
+# ---------------------------------------------------------------------
+# Check libraries
+# ---------------------------------------------------------------------
+
+echo "$as_me:$LINENO: checking for extra includes" >&5
+echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
+
+# Check whether --with-extra-includes or --without-extra-includes was given.
+if test "${with_extra_includes+set}" = set; then
+ withval="$with_extra_includes"
+ kde_use_extra_includes="$withval"
+else
+ kde_use_extra_includes=NONE
+
+fi;
+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
+
+
+echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
+echo "${ECHO_T}$kde_use_extra_includes" >&6
+
+kde_extra_libs=
+echo "$as_me:$LINENO: checking for extra libs" >&5
+echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
+
+# Check whether --with-extra-libs or --without-extra-libs was given.
+if test "${with_extra_libs+set}" = set; then
+ withval="$with_extra_libs"
+ kde_use_extra_libs=$withval
+else
+ kde_use_extra_libs=NONE
+
+fi;
+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
+
+
+
+echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
+echo "${ECHO_T}$kde_use_extra_libs" >&6
+
+
+
+
+
+echo "$as_me:$LINENO: checking for libz" >&5
+echo $ECHO_N "checking for libz... $ECHO_C" >&6
+if test "${ac_cv_lib_z+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+kde_save_LIBS="$LIBS"
+LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
+kde_save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#include<zlib.h>
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+return (zlibVersion() == ZLIB_VERSION);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "ac_cv_lib_z='-lz'"
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+eval "ac_cv_lib_z=no"
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS="$kde_save_LIBS"
+CFLAGS="$kde_save_CFLAGS"
+
+fi
+if test ! "$ac_cv_lib_z" = no; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBZ 1
+_ACEOF
+
+ LIBZ="$ac_cv_lib_z"
+
+ echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
+echo "${ECHO_T}$ac_cv_lib_z" >&6
+else
+ { { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
+echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
+ { (exit 1); exit 1; }; }
+ LIBZ=""
+
+fi
+
+
+
+
+# Check whether --with-sword-dir or --without-sword-dir was given.
+if test "${with_sword_dir+set}" = set; then
+ withval="$with_sword_dir"
+
+ ac_sword_dir=$withval
+
+else
+ ac_sword_dir=/usr
+
+fi;
+
+# Check whether --enable-static-sword or --disable-static-sword was given.
+if test "${enable_static_sword+set}" = set; then
+ enableval="$enable_static_sword"
+ ac_static_sword="YES"
+else
+ ac_static_sword=""
+
+fi;
+
+echo "$as_me:$LINENO: checking for Sword library files" >&5
+echo $ECHO_N "checking for Sword library files... $ECHO_C" >&6
+
+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
+
+
+if test "${ac_cv_sword_libdir+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ac_cv_sword_libdir=NO
+for i in $ac_sword_library_dirs;
+do
+ for j in $SEARCH_LIBS;
+ do
+ echo "configure: 2974: $i/$j" >&5
+ if test -r "$i/$j"; then
+ echo "taking that" >&5
+ ac_cv_sword_libdir=$i
+ break 2
+ fi
+ done
+done
+
+fi
+
+
+if test "$ac_cv_sword_libdir" = "NO"; then
+ { { echo "$as_me:$LINENO: error: SWORD library not found. Try to use configure with --with-sword-dir=/your/SWORD/path!" >&5
+echo "$as_me: error: SWORD library not found. Try to use configure with --with-sword-dir=/your/SWORD/path!" >&2;}
+ { (exit 1); exit 1; }; };
+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)
+
+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
+echo "$as_me:$LINENO: result: $MESSAGE" >&5
+echo "${ECHO_T}$MESSAGE" >&6
+
+
+
+echo "$as_me:$LINENO: checking for Sword include files" >&5
+echo $ECHO_N "checking for Sword include files... $ECHO_C" >&6
+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"
+
+if test "${ac_cv_sword_incdir+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ac_cv_sword_incdir=NO
+for i in $ac_sword_include_dirs;
+do
+ for j in swmgr.h;
+ do
+ echo "configure: 3025: $i/$j" >&5
+ if test -r "$i/$j"; then
+ echo "taking that" >&5
+ ac_cv_sword_incdir=$i
+ break 2
+ fi
+ done
+done
+
+fi
+
+
+if test "$ac_cv_sword_incdir" = "NO"; then
+ { { echo "$as_me:$LINENO: error: The Sword include file files were not found.
+Please try to use configure with --with-sword-dir=/your/SWORD/path !
+" >&5
+echo "$as_me: error: The Sword include file files were not found.
+Please try to use configure with --with-sword-dir=/your/SWORD/path !
+" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+SWORD_INCLUDES="-I$ac_cv_sword_incdir"
+
+all_includes="$all_includes -I$ac_cv_sword_incdir"
+
+echo "$as_me:$LINENO: result: $ac_cv_sword_incdir" >&5
+echo "${ECHO_T}$ac_cv_sword_incdir" >&6
+
+
+
+echo "$as_me:$LINENO: checking if you have Sword 1.5.5 or later" >&5
+echo $ECHO_N "checking if you have Sword 1.5.5 or later... $ECHO_C" >&6
+
+if test "${ac_cv_installed_sword_version+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && 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" >&5
+ eval sword_test_returncode=`./conftest 1.5.5 2>&5`;
+ echo "configure: sword_test_returncode=$sword_test_returncode" >&5
+ fi
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+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_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+
+
+right_version="ok";
+if test "x$sword_test_returncode" = "x1"; then
+ echo "configure: changing right_version" >&5
+ right_version="wrong version";
+fi;
+
+echo "$as_me:$LINENO: result: $ac_cv_installed_sword_version" >&5
+echo "${ECHO_T}$ac_cv_installed_sword_version" >&6
+echo "configure: right_version=$right_version" >&5
+if test "x$right_version" != "xok"; then
+ { { echo "$as_me:$LINENO: error: Your Sword installation is not recent enough! $sword_test_returncode Please
+upgrade to version 1.5.5!" >&5
+echo "$as_me: error: Your Sword installation is not recent enough! $sword_test_returncode Please
+upgrade to version 1.5.5!" >&2;}
+ { (exit 1); exit 1; }; };
+fi;
+
+
+
+# ---------------------------------------------------------------------
+# Misc
+# ---------------------------------------------------------------------
+echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
+echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
+ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
+if test "${enable_maintainer_mode+set}" = set; then
+ enableval="$enable_maintainer_mode"
+ USE_MAINTAINER_MODE=$enableval
+else
+ USE_MAINTAINER_MODE=no
+fi;
+ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
+echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
+
+
+if test $USE_MAINTAINER_MODE = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+ MAINT=$MAINTAINER_MODE_TRUE
+
+
+
+# ---------------------------------------------------------------------
+# Check Scripting languages
+# ---------------------------------------------------------------------
+
+
+
+PERLBIN=
+PERLSWIG=
+
+
+# Check whether --with-perl or --without-perl was given.
+if test "${with_perl+set}" = set; then
+ withval="$with_perl"
+ PERLBIN="$withval"
+else
+ PERLBIN=
+fi;
+
+# First figure out what the name of Perl5 is
+
+if test -z "$PERLBIN"; then
+for ac_prog in perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PERL+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $PERL in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+PERL=$ac_cv_path_PERL
+
+if test -n "$PERL"; then
+ echo "$as_me:$LINENO: result: $PERL" >&5
+echo "${ECHO_T}$PERL" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$PERL" && break
+done
+
+else
+# Extract the first word of "perl", so it can be a program name with args.
+set dummy perl; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PERL+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $PERL in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PERLBIN
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+PERL=$ac_cv_path_PERL
+
+if test -n "$PERL"; then
+ echo "$as_me:$LINENO: result: $PERL" >&5
+echo "${ECHO_T}$PERL" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+#PERL="$PERLBIN"
+fi
+
+
+echo "$as_me:$LINENO: checking for Perl5 header files" >&5
+echo $ECHO_N "checking for Perl5 header files... $ECHO_C" >&6
+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
+ echo "$as_me:$LINENO: result: $i" >&5
+echo "${ECHO_T}$i" >&6
+ PERL5EXT="$i"
+ break;
+ fi
+ done
+ if test "$PERL5EXT" = none; then
+ PERL5EXT="$PERL5DIR/CORE"
+ echo "$as_me:$LINENO: result: could not locate perl.h...using $PERL5EXT" >&5
+echo "${ECHO_T}could not locate perl.h...using $PERL5EXT" >&6
+ fi
+
+ echo "$as_me:$LINENO: checking for Perl5 library" >&5
+echo $ECHO_N "checking for Perl5 library... $ECHO_C" >&6
+ PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; print $_') 2>/dev/null`
+ if test "$PERL5LIB" = "" ; then
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+ else
+ echo "$as_me:$LINENO: result: $PERL5LIB" >&5
+echo "${ECHO_T}$PERL5LIB" >&6
+ fi
+ else
+ echo "$as_me:$LINENO: result: unable to determine perl5 configuration" >&5
+echo "${ECHO_T}unable to determine perl5 configuration" >&6
+ PERL5EXT=$PERL5DIR
+ fi
+else
+ echo "$as_me:$LINENO: result: could not figure out how to run perl5" >&5
+echo "${ECHO_T}could not figure out how to run perl5" >&6
+# 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
+
+
+
+
+
+
+
+
+
+
+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
+
+
+# Check whether --with-python or --without-python was given.
+if test "${with_python+set}" = set; then
+ withval="$with_python"
+ PYBIN="$withval"
+else
+ PYBIN=
+fi;
+
+# First figure out the name of the Python executable
+
+if test -z "$PYBIN"; then
+for ac_prog in $prefix/bin/python python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PYTHON+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $PYTHON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+PYTHON=$ac_cv_path_PYTHON
+
+if test -n "$PYTHON"; then
+ echo "$as_me:$LINENO: result: $PYTHON" >&5
+echo "${ECHO_T}$PYTHON" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$PYTHON" && break
+done
+
+else
+PYTHON="$PYBIN"
+fi
+
+if test -n "$PYTHON"; then
+ echo "$as_me:$LINENO: checking for Python prefix" >&5
+echo $ECHO_N "checking for Python prefix... $ECHO_C" >&6
+ PYPREFIX=`($PYTHON -c "import sys; print sys.prefix") 2>/dev/null`
+ echo "$as_me:$LINENO: result: $PYPREFIX" >&5
+echo "${ECHO_T}$PYPREFIX" >&6
+ echo "$as_me:$LINENO: checking for Python exec-prefix" >&5
+echo $ECHO_N "checking for Python exec-prefix... $ECHO_C" >&6
+ PYEPREFIX=`($PYTHON -c "import sys; print sys.exec_prefix") 2>/dev/null`
+ echo "$as_me:$LINENO: result: $PYEPREFIX" >&5
+echo "${ECHO_T}$PYEPREFIX" >&6
+
+
+ # 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.
+
+ echo "$as_me:$LINENO: checking for Python version" >&5
+echo $ECHO_N "checking for Python version... $ECHO_C" >&6
+
+ # 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)")`
+ echo "$as_me:$LINENO: result: $PYVERSION" >&5
+echo "${ECHO_T}$PYVERSION" >&6
+
+ # Set the include directory
+
+ echo "$as_me:$LINENO: checking for Python header files" >&5
+echo $ECHO_N "checking for Python header files... $ECHO_C" >&6
+ 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
+ echo "$as_me:$LINENO: result: $PYINCLUDE" >&5
+echo "${ECHO_T}$PYINCLUDE" >&6
+
+ # Set the library directory blindly. This probably won't work with older versions
+ echo "$as_me:$LINENO: checking for Python library" >&5
+echo $ECHO_N "checking for Python library... $ECHO_C" >&6
+ 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
+ echo "$as_me:$LINENO: result: Not found" >&5
+echo "${ECHO_T}Not found" >&6
+ else
+ echo "$as_me:$LINENO: result: $PYLIB" >&5
+echo "${ECHO_T}$PYLIB" >&6
+ 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
+
+
+
+
+
+
+
+
+
+
+
+PHP4BIN=
+
+
+# Check whether --with-php4 or --without-php4 was given.
+if test "${with_php4+set}" = set; then
+ withval="$with_php4"
+ PHP4BIN="$withval"
+else
+ PHP4BIN=
+fi;
+
+if test -z "$PHP4BIN"; then
+for ac_prog in php php4
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PHP4+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $PHP4 in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PHP4="$PHP4" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PHP4="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+PHP4=$ac_cv_path_PHP4
+
+if test -n "$PHP4"; then
+ echo "$as_me:$LINENO: result: $PHP4" >&5
+echo "${ECHO_T}$PHP4" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ test -n "$PHP4" && break
+done
+
+else
+PHP4="$PHP4BIN"
+fi
+echo "$as_me:$LINENO: checking for PHP4 header files" >&5
+echo $ECHO_N "checking for PHP4 header files... $ECHO_C" >&6
+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
+ echo "$as_me:$LINENO: result: $i" >&5
+echo "${ECHO_T}$i" >&6
+ PHP4EXT="$i"
+ PHP4INC="-I$PHP4EXT -I$PHP4EXT/Zend -I$PHP4EXT/main -I$PHP4EXT/TSRM"
+ break;
+ fi
+done
+if test -z "$PHP4INC"; then
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+fi
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <assert.h>
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ egrep -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ egrep -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+echo "$as_me:$LINENO: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <assert.h>
+ Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ egrep -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether non-existent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ egrep -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ # Broken: success on invalid input.
+continue
+else
+ echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+
+TCLINCLUDE=
+TCLLIB=
+TCLPACKAGE=
+TCLSWIG=
+
+
+# Check whether --with-tclconfig or --without-tclconfig was given.
+if test "${with_tclconfig+set}" = set; then
+ withval="$with_tclconfig"
+ with_tclconfig="$withval"
+fi;
+
+# Check whether --with-tcl or --without-tcl was given.
+if test "${with_tcl+set}" = set; then
+ withval="$with_tcl"
+
+ TCLPACKAGE="$withval"
+else
+ TCLPACKAGE=
+fi;
+
+# Check whether --with-tclincl or --without-tclincl was given.
+if test "${with_tclincl+set}" = set; then
+ withval="$with_tclincl"
+
+ TCLINCLUDE="-I$withval"
+else
+ TCLINCLUDE=
+fi;
+
+# Check whether --with-tcllib or --without-tcllib was given.
+if test "${with_tcllib+set}" = set; then
+ withval="$with_tcllib"
+
+ TCLLIB="-L$withval"
+else
+ TCLLIB=
+fi;
+
+echo "$as_me:$LINENO: checking for Tcl configuration" >&5
+echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
+# 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
+ { { echo "$as_me:$LINENO: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&5
+echo "$as_me: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&2;}
+ { (exit 1); exit 1; }; }
+ 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
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+else
+ echo "$as_me:$LINENO: result: found $TCLCONFIG/tclConfig.sh" >&5
+echo "${ECHO_T}found $TCLCONFIG/tclConfig.sh" >&6
+ . $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
+
+echo "$as_me:$LINENO: checking for Tcl header files" >&5
+echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6
+if test -z "$TCLINCLUDE"; then
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+#include <tcl.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ egrep -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ TCLINCLUDE=""
+fi
+rm -f conftest.err conftest.$ac_ext
+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
+ echo "$as_me:$LINENO: result: $i" >&5
+echo "${ECHO_T}$i" >&6
+ TCLINCLUDE="-I$i"
+ break
+ fi
+ done
+fi
+if test -z "$TCLINCLUDE"; then
+# TCLINCLUDE="-I/usr/local/include"
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+fi
+else
+ echo "$as_me:$LINENO: result: $TCLINCLUDE" >&5
+echo "${ECHO_T}$TCLINCLUDE" >&6
+fi
+
+echo "$as_me:$LINENO: checking for Tcl library" >&5
+echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
+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
+ echo "$as_me:$LINENO: result: $i" >&5
+echo "${ECHO_T}$i" >&6
+ TCLLIB="-L$i -ltcl"
+ break
+ fi
+done
+if test -z "$TCLLIB"; then
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+# TCLLIB="-L/usr/local/lib"
+fi
+else
+echo "$as_me:$LINENO: result: $TCLLIB" >&5
+echo "${ECHO_T}$TCLLIB" >&6
+fi
+
+# Only cygwin (Windows) needs the library for dynamic linking
+case $ac_sys_system/$ac_sys_release in
+CYGWIN*) TCLDYNAMICLINKING="$TCLLIB";;
+*)TCLDYNAMICLINKING="";;
+esac
+
+
+
+
+
+
+
+
+# ---------------------------------------------------------------------
+# Final output
+# ---------------------------------------------------------------------
+ac_config_files="$ac_config_files Makefile"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overriden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+ (set) 2>&1 |
+ case `(ac_space=' '; set | grep ac_space) 2>&1` in
+ *ac_space=\ *)
+ # `set' does not quote correctly, so add quotes (double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \).
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;;
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n \
+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ ;;
+ esac;
+} |
+ sed '
+ t clear
+ : clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ : end' >>confcache
+if cmp -s $cache_file confcache; then :; else
+ if test -w $cache_file; then
+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+ cat confcache >$cache_file
+ else
+ echo "not updating unwritable cache $cache_file"
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[ ]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[ ]*$//;
+}'
+fi
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then we branch to the quote section. Otherwise,
+# look for a macro that doesn't take arguments.
+cat >confdef2opt.sed <<\_ACEOF
+t clear
+: clear
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
+t quote
+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
+t quote
+d
+: quote
+s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
+s,\[,\\&,g
+s,\],\\&,g
+s,\$,$$,g
+p
+_ACEOF
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output. A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT=`echo; echo .`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+rm -f confdef2opt.sed
+
+
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+fi
+
+# NLS nuisances.
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
+ { $as_unset LANG || test "${LANG+set}" != set; } ||
+ { LANG=C; export LANG; }
+(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
+ { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
+ { LC_ALL=C; export LC_ALL; }
+(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
+ { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
+ { LC_TIME=C; export LC_TIME; }
+(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
+ { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
+ { LC_CTYPE=C; export LC_CTYPE; }
+(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
+ { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
+ { LANGUAGE=C; export LANGUAGE; }
+(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
+ { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
+ { LC_COLLATE=C; export LC_COLLATE; }
+(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
+ { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
+ { LC_NUMERIC=C; export LC_NUMERIC; }
+(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
+ { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
+ { LC_MESSAGES=C; export LC_MESSAGES; }
+
+
+# Name of the executable.
+as_me=`(basename "$0") 2>/dev/null ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conftest.sh
+ echo "exit 0" >>conftest.sh
+ chmod +x conftest.sh
+ if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conftest.sh
+fi
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" || {
+ # Find who we are. Look in the path if we contain no path at all
+ # relative or not.
+ case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+ ;;
+ esac
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
+ # in which case we are not to be found in the path.
+ if test "x$as_myself" = x; then
+ as_myself=$0
+ fi
+ if test ! -f "$as_myself"; then
+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for as_base in sh bash ksh sh5; do
+ case $as_dir in
+ /*)
+ if ("$as_dir/$as_base" -c '
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+ fi;;
+ esac
+ done
+done
+;;
+ esac
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line before each line; the second 'sed' does the real
+ # work. The second script uses 'N' to pair each line-number line
+ # with the numbered line, and appends trailing '-' during
+ # substitution so that $LINENO is not a special case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
+ sed '=' <$as_myself |
+ sed '
+ N
+ s,$,-,
+ : loop
+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ t loop
+ s,-$,,
+ s,^['$as_cr_digits']*\n,,
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensible to this).
+ . ./$as_me.lineno
+ # Exit status is that of the last command.
+ exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+ *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T=' ' ;;
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ # We could just check for DJGPP; but this test a) works b) is more generic
+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+ if test -f conf$$.exe; then
+ # Don't use ln at all; we don't have any links
+ as_ln_s='cp -p'
+ else
+ as_ln_s='ln -s'
+ fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" $as_nl"
+
+# CDPATH.
+$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling. Logging --version etc. is OK.
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by swordbindings $as_me 1.5.5, which was
+generated by GNU Autoconf 2.53. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+
+Configuration files:
+$config_files
+
+Report bugs to <bug-autoconf@gnu.org>."
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+swordbindings config.status 1.5.5
+configured by $0, generated by GNU Autoconf 2.53,
+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=$srcdir
+INSTALL="$INSTALL"
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If no file are specified by the user, then we need to provide default
+# value. By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=*)
+ ac_option=`expr "x$1" : 'x\([^=]*\)='`
+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+ shift
+ set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
+ shift
+ ;;
+ -*);;
+ *) # This is not an option, so the user has probably given explicit
+ # arguments.
+ ac_need_defaults=false;;
+ esac
+
+ case $1 in
+ # Handling of the options.
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
+ exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+ --version | --vers* | -V )
+ echo "$ac_cs_version"; exit 0 ;;
+ --he | --h)
+ # Conflict between --help and --header
+ { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2;}
+ { (exit 1); exit 1; }; };;
+ --help | --hel | -h )
+ echo "$ac_cs_usage"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ shift
+ CONFIG_FILES="$CONFIG_FILES $1"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ shift
+ CONFIG_HEADERS="$CONFIG_HEADERS $1"
+ ac_need_defaults=false;;
+
+ # This is an error.
+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2;}
+ { (exit 1); exit 1; }; } ;;
+
+ *) ac_config_targets="$ac_config_targets $1" ;;
+
+ esac
+ shift
+done
+
+_ACEOF
+
+
+
+
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+ case "$ac_config_target" in
+ # Handling of arguments.
+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+fi
+
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+ trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+: ${TMPDIR=/tmp}
+{
+ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=$TMPDIR/cs$$-$RANDOM
+ (umask 077 && mkdir $tmp)
+} ||
+{
+ echo "$me: cannot create a temporary directory in $TMPDIR" >&2
+ { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "\$CONFIG_FILES"; then
+ # Protect against being on the right side of a sed subst in config.status.
+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s,@SHELL@,$SHELL,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@DEFS@,$DEFS,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@LIBS@,$LIBS,;t t
+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+s,@INSTALL_DATA@,$INSTALL_DATA,;t t
+s,@PACKAGE@,$PACKAGE,;t t
+s,@VERSION@,$VERSION,;t t
+s,@ACLOCAL@,$ACLOCAL,;t t
+s,@AUTOCONF@,$AUTOCONF,;t t
+s,@AUTOMAKE@,$AUTOMAKE,;t t
+s,@AUTOHEADER@,$AUTOHEADER,;t t
+s,@MAKEINFO@,$MAKEINFO,;t t
+s,@SET_MAKE@,$SET_MAKE,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@CXX@,$CXX,;t t
+s,@CXXFLAGS@,$CXXFLAGS,;t t
+s,@ac_ct_CXX@,$ac_ct_CXX,;t t
+s,@SWIG@,$SWIG,;t t
+s,@RUNSWIG_TRUE@,$RUNSWIG_TRUE,;t t
+s,@RUNSWIG_FALSE@,$RUNSWIG_FALSE,;t t
+s,@USER_INCLUDES@,$USER_INCLUDES,;t t
+s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
+s,@LIBZ@,$LIBZ,;t t
+s,@LIB_SWORD@,$LIB_SWORD,;t t
+s,@SWORD_INCLUDES@,$SWORD_INCLUDES,;t t
+s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
+s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
+s,@MAINT@,$MAINT,;t t
+s,@PERL@,$PERL,;t t
+s,@PERL5EXT@,$PERL5EXT,;t t
+s,@PERL5DYNAMICLINKING@,$PERL5DYNAMICLINKING,;t t
+s,@PERL5LIB@,$PERL5LIB,;t t
+s,@PERLBUILD@,$PERLBUILD,;t t
+s,@PYTHON@,$PYTHON,;t t
+s,@PYINCLUDE@,$PYINCLUDE,;t t
+s,@PYLIB@,$PYLIB,;t t
+s,@PYLINK@,$PYLINK,;t t
+s,@PYTHONBUILD@,$PYTHONBUILD,;t t
+s,@PYTHONDYNAMICLINKING@,$PYTHONDYNAMICLINKING,;t t
+s,@PHP4@,$PHP4,;t t
+s,@PHP4INC@,$PHP4INC,;t t
+s,@CPP@,$CPP,;t t
+s,@TCLINCLUDE@,$TCLINCLUDE,;t t
+s,@TCLLIB@,$TCLLIB,;t t
+s,@TCLDYNAMICLINKING@,$TCLDYNAMICLINKING,;t t
+s,@TCLSWIG@,$TCLSWIG,;t t
+CEOF
+
+_ACEOF
+
+ cat >>$CONFIG_STATUS <<\_ACEOF
+ # Split the substitutions into bite-sized pieces for seds with
+ # small command number limits, like on Digital OSF/1 and HP-UX.
+ ac_max_sed_lines=48
+ ac_sed_frag=1 # Number of current file.
+ ac_beg=1 # First line for current file.
+ ac_end=$ac_max_sed_lines # Line after last line for current file.
+ ac_more_lines=:
+ ac_sed_cmds=
+ while $ac_more_lines; do
+ if test $ac_beg -gt 1; then
+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+ else
+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+ fi
+ if test ! -s $tmp/subs.frag; then
+ ac_more_lines=false
+ else
+ # The purpose of the label and of the branching condition is to
+ # speed up the sed processing (if there are no `@' at all, there
+ # is no need to browse any of the substitutions).
+ # These are the two extra sed commands mentioned above.
+ (echo ':t
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+ if test -z "$ac_sed_cmds"; then
+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+ else
+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+ fi
+ ac_sed_frag=`expr $ac_sed_frag + 1`
+ ac_beg=$ac_end
+ ac_end=`expr $ac_end + $ac_max_sed_lines`
+ fi
+ done
+ if test -z "$ac_sed_cmds"; then
+ ac_sed_cmds=cat
+ fi
+fi # test -n "$CONFIG_FILES"
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ case $ac_file in
+ - | *:- | *:-:* ) # input from stdin
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ * ) ac_file_in=$ac_file.in ;;
+ esac
+
+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+ { case "$ac_dir" in
+ [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+ *) as_incr_dir=.;;
+esac
+as_dummy="$ac_dir"
+for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
+ case $as_mkdir_dir in
+ # Skip DOS drivespec
+ ?:) as_incr_dir=$as_mkdir_dir ;;
+ *)
+ as_incr_dir=$as_incr_dir/$as_mkdir_dir
+ test -d "$as_incr_dir" ||
+ mkdir "$as_incr_dir" ||
+ { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+done; }
+
+ ac_builddir=.
+
+if test "$ac_dir" != .; then
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A "../" for each directory in $ac_dir_suffix.
+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+ ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+ .) # No --srcdir option. We are building in place.
+ ac_srcdir=.
+ if test -z "$ac_top_builddir"; then
+ ac_top_srcdir=.
+ else
+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+ fi ;;
+ [\\/]* | ?:[\\/]* ) # Absolute path.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir ;;
+ *) # Relative path.
+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+ esac
+
+ if test x"$ac_file" != x-; then
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+ rm -f "$ac_file"
+ fi
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ if test x"$ac_file" = x-; then
+ configure_input=
+ else
+ configure_input="$ac_file. "
+ fi
+ configure_input=$configure_input"Generated from `echo $ac_file_in |
+ sed 's,.*/,,'` by configure."
+
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
+ ac_file_inputs=`IFS=:
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ [\\/$]*)
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+ # Build tree
+ echo $f
+ elif test -f "$srcdir/$f"; then
+ # Source tree
+ echo $srcdir/$f
+ else
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+ { (exit 1); exit 1; }; }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ sed "$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@abs_srcdir@,$ac_abs_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@abs_builddir@,$ac_abs_builddir,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+s,@INSTALL@,$ac_INSTALL,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+ rm -f $tmp/stdin
+ if test x"$ac_file" != x-; then
+ mv $tmp/out $ac_file
+ else
+ cat $tmp/out
+ rm -f $tmp/out
+ fi
+
+done
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+{ (exit 0); exit 0; }
+_ACEOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || { (exit 1); exit 1; }
+fi
+
diff --git a/bindings/swig/configure.ac b/bindings/swig/configure.ac
new file mode 100644
index 0000000..80babbc
--- /dev/null
+++ b/bindings/swig/configure.ac
@@ -0,0 +1,41 @@
+# ---------------------------------------------------------------------
+# Initialisation
+# ---------------------------------------------------------------------
+AC_INIT(swordbindings, 1.5.5, sword-bugs@crosswire.org)
+AC_CONFIG_SRCDIR(sword.i)
+AC_PREREQ(2.52)
+AC_REVISION($Revision: 1.4 $)
+AM_INIT_AUTOMAKE(swordbindings,1.5.5)
+
+# ---------------------------------------------------------------------
+# 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)
+
+# ---------------------------------------------------------------------
+# 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/perl.m4 b/bindings/swig/perl.m4
new file mode 100644
index 0000000..9add0b3
--- /dev/null
+++ b/bindings/swig/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/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/MANIFEST b/bindings/swig/perl/MANIFEST
new file mode 100644
index 0000000..5a8a20e
--- /dev/null
+++ b/bindings/swig/perl/MANIFEST
@@ -0,0 +1,11 @@
+CVS/Entries
+CVS/Repository
+CVS/Root
+Changes
+MANIFEST
+Makefile
+Makefile.PL
+README
+Sword.cxx
+Sword.pm
+test.pl
diff --git a/bindings/swig/perl/Makefile.PL b/bindings/swig/perl/Makefile.PL
new file mode 100644
index 0000000..ed1e4e9
--- /dev/null
+++ b/bindings/swig/perl/Makefile.PL
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+use ExtUtils::MakeMaker;
+
+# See lib/ExtUtils/MakeMaker.pm for details of how to influence
+# the contents of the Makefile that is written.
+WriteMakefile(
+ 'NAME' => 'Sword',
+ 'VERSION' => '1.5.5',
+ 'INC' => '-I/scratch/src/tmp/include/sword',
+ 'DEFINE' => '-DSWIG',
+ 'LIBS' => '-L/scratch/src/tmp/lib -lsword -lz',
+ 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT => 'Sword Project perl bindings', # retrieve abstract from module
+ AUTHOR => 'Sword Project <sword-devel@crosswire.org>') : ()),
+);
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..71d7a1f
--- /dev/null
+++ b/bindings/swig/perl/Sword.cxx
@@ -0,0 +1,6648 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.14u-20020903-2331
+ *
+ * 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
+
+/* -----------------------------------------------------------------------------
+ * perl5.swg
+ *
+ * Perl5 runtime library
+ * $Header: /usr/local/cvsroot/sword/bindings/swig/perl/Sword.cxx,v 1.4 2002/10/09 19:54: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
+#define SWIG_CALLXS(_name) _name(cv)
+#endif
+
+
+/* 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;
+}
+
+
+
+
+
+
+
+/* -------- 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_zCom swig_types[19]
+#define SWIGTYPE_p_string swig_types[20]
+#define SWIGTYPE_p_SectionMap swig_types[21]
+#define SWIGTYPE_p_SWDisplay swig_types[22]
+#define SWIGTYPE_p_AttributeTypeList swig_types[23]
+#define SWIGTYPE_p_SWText swig_types[24]
+#define SWIGTYPE_p_TreeKeyIdx swig_types[25]
+#define SWIGTYPE_p_SWCompress swig_types[26]
+#define SWIGTYPE_p_LZSSCompress swig_types[27]
+#define SWIGTYPE_p_ZipCompress swig_types[28]
+#define SWIGTYPE_p_SW_POSITION swig_types[29]
+#define SWIGTYPE_p_SWModule swig_types[30]
+#define SWIGTYPE_p_zLD swig_types[31]
+#define SWIGTYPE_p_SWGenBook swig_types[32]
+#define SWIGTYPE_p_RawCom swig_types[33]
+#define SWIGTYPE_p_RawGenBook swig_types[34]
+#define SWIGTYPE_p_SWConfig swig_types[35]
+#define SWIGTYPE_p_LocaleMgr swig_types[36]
+#define SWIGTYPE_p_int swig_types[37]
+#define SWIGTYPE_p_SWTextMarkup swig_types[38]
+#define SWIGTYPE_p_OptionsList swig_types[39]
+#define SWIGTYPE_p_listTstring_t swig_types[40]
+#define SWIGTYPE_p_SWTextEncoding swig_types[41]
+#define SWIGTYPE_p_zText 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;
+
+
+#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) croak(b)
+
+
+#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();
+ }
+
+#include <swmgr.h>
+
+SWModule *SWMgr_module(SWMgr *self,char const *modulename){
+ return self->Modules[modulename];
+ }
+
+ #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;
+ }
+
+ #include "swkey.h"
+
+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);
+ }
+
+ #include "versekey.h"
+
+
+#include "listkey.h"
+
+unsigned char ListKey_SetToElement(ListKey *self,int element){
+ return self->SetToElement(element, SW_POSITION(((char)1)));
+ }
+
+#include "treekey.h"
+
+
+#include "treekeyidx.h"
+
+
+#include <localemgr.h>
+
+LocaleMgr *const LocaleMgr_systemLocaleMgr(LocaleMgr *self){
+ return &(LocaleMgr::systemLocaleMgr);
+ }
+
+#include <swfiltermgr.h>
+
+
+ #include "swtext.h"
+
+
+ #include "rawtext.h"
+
+
+ #include "ztext.h"
+
+
+ #include "swcom.h"
+
+
+ #include "rawcom.h"
+
+
+ #include "zcom.h"
+
+
+ #include "swgenbook.h"
+
+
+ #include "rawgenbook.h"
+
+
+ #include "swld.h"
+
+
+ #include "rawld.h"
+
+
+ #include "rawld4.h"
+
+
+ #include "zld.h"
+
+
+ #include <swcomprs.h>
+
+
+ #include <lzsscomprs.h>
+
+
+ #include <zipcomprs.h>
+
+#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) {
+ SWConfig *arg1 ;
+ string arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWConfig_filename_set(self,filename);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_filename_set. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ {
+ string * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_string,0) < 0) {
+ croak("Type error in argument 2 of SWConfig_filename_set. Expected %s", SWIGTYPE_p_string->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->filename = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_filename_get) {
+ SWConfig *arg1 ;
+ string result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWConfig_filename_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_filename_get. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ result = ((arg1)->filename);
+
+ {
+ string * resultobj = new string((string &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_string,0);
+ }
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_Sections_set) {
+ SWConfig *arg1 ;
+ SectionMap arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWConfig_Sections_set(self,Sections);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_Sections_set. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ {
+ SectionMap * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SectionMap,0) < 0) {
+ croak("Type error in argument 2 of SWConfig_Sections_set. Expected %s", SWIGTYPE_p_SectionMap->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Sections = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_Sections_get) {
+ SWConfig *arg1 ;
+ SectionMap result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWConfig_Sections_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_Sections_get. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_new_SWConfig) {
+ char *arg1 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_delete_SWConfig) {
+ SWConfig *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWConfig(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of delete_SWConfig. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_Load) {
+ SWConfig *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWConfig_Load(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_Load. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ (arg1)->Load();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_Save) {
+ SWConfig *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWConfig_Save(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_Save. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ (arg1)->Save();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWConfig_set) {
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *arg4 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 4) || (items > 4)) {
+ croak("Usage: SWConfig_set(self,group,entry,value);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_set. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWConfig_get) {
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWConfig_get(self,group,entry);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of SWConfig_get. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_findConfig) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char **arg3 ;
+ char **arg4 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 4) || (items > 4)) {
+ croak("Usage: SWMgr_findConfig(self,configType,prefixPath,configPath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_findConfig. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_p_char,0) < 0) {
+ croak("Type error in argument 3 of SWMgr_findConfig. Expected %s", SWIGTYPE_p_p_char->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_p_char,0) < 0) {
+ croak("Type error in argument 4 of SWMgr_findConfig. Expected %s", SWIGTYPE_p_p_char->name);
+ }
+ }
+ (arg1)->findConfig(arg2,arg3,arg4);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_config_set) {
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_config_set(self,config);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_config_set. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 2 of SWMgr_config_set. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ if (arg1) (arg1)->config = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_config_get) {
+ SWMgr *arg1 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_config_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_config_get. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ result = (SWConfig *) ((arg1)->config);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWConfig,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_sysconfig_set) {
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_sysconfig_set(self,sysconfig);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_sysconfig_set. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 2 of SWMgr_sysconfig_set. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ if (arg1) (arg1)->sysconfig = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_sysconfig_get) {
+ SWMgr *arg1 ;
+ SWConfig *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_sysconfig_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_sysconfig_get. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ result = (SWConfig *) ((arg1)->sysconfig);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWConfig,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_Modules_set) {
+ SWMgr *arg1 ;
+ ModMap arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_Modules_set(self,Modules);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_Modules_set. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ {
+ ModMap * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_ModMap,0) < 0) {
+ croak("Type error in argument 2 of SWMgr_Modules_set. Expected %s", SWIGTYPE_p_ModMap->name);
+ }
+ arg2 = *argp;
+ }
+ if (arg1) (arg1)->Modules = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_Modules_get) {
+ SWMgr *arg1 ;
+ ModMap result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_Modules_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_Modules_get. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_prefixPath_set) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_prefixPath_set(self,prefixPath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_prefixPath_set. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ {
+ if (arg1->prefixPath) delete [] arg1->prefixPath;
+ arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->prefixPath,arg2);
+ }
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_prefixPath_get) {
+ SWMgr *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_prefixPath_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_prefixPath_get. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_configPath_set) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_configPath_set(self,configPath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_configPath_set. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ {
+ if (arg1->configPath) delete [] arg1->configPath;
+ arg1->configPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->configPath,arg2);
+ }
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_configPath_get) {
+ SWMgr *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_configPath_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_configPath_get. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_new_SWMgr) {
+ SWConfig *arg1 = 0 ;
+ SWConfig *arg2 = 0 ;
+ bool arg3 = true ;
+ SWFilterMgr *arg4 = 0 ;
+ SWMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 4)) {
+ croak("Usage: new_SWMgr(iconfig,isysconfig,autoload,filterMgr);");
+ }
+ if (items > 0) {
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 1 of new_SWMgr. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ }
+ if (items > 1) {
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWConfig,0) < 0) {
+ croak("Type error in argument 2 of new_SWMgr. Expected %s", SWIGTYPE_p_SWConfig->name);
+ }
+ }
+ }
+ if (items > 2) {
+ arg3 = (bool) SvIV(ST(2));
+ }
+ if (items > 3) {
+ {
+ if (SWIG_ConvertPtr(ST(3), (void **) &arg4, SWIGTYPE_p_SWFilterMgr,0) < 0) {
+ croak("Type error in argument 4 of new_SWMgr. Expected %s", SWIGTYPE_p_SWFilterMgr->name);
+ }
+ }
+ }
+ result = (SWMgr *)new SWMgr(arg1,arg2,arg3,arg4);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWMgr,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_SWMgr) {
+ SWMgr *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWMgr(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of delete_SWMgr. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_Load) {
+ SWMgr *arg1 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_Load(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_Load. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ result = (signed char)(arg1)->Load();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_setGlobalOption) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWMgr_setGlobalOption(self,option,value);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_setGlobalOption. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOption) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_getGlobalOption(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_getGlobalOption. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptionTip) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_getGlobalOptionTip(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_getGlobalOptionTip. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptions) {
+ SWMgr *arg1 ;
+ OptionsList result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWMgr_getGlobalOptions(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_getGlobalOptions. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ result = (arg1)->getGlobalOptions();
+
+ {
+ OptionsList * resultobj = new OptionsList((OptionsList &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_OptionsList,0);
+ }
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_getGlobalOptionValues) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ OptionsList result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_getGlobalOptionValues(self,option);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_getGlobalOptionValues. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (arg1)->getGlobalOptionValues((char const *)arg2);
+
+ {
+ OptionsList * resultobj = new OptionsList((OptionsList &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_OptionsList,0);
+ }
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWMgr_setCipherKey) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWMgr_setCipherKey(self,modName,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_setCipherKey. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWMgr_module) {
+ SWMgr *arg1 ;
+ char *arg2 ;
+ SWModule *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWMgr_module(self,modulename);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWMgr,0) < 0) {
+ croak("Type error in argument 1 of SWMgr_module. Expected %s", SWIGTYPE_p_SWMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (SWModule *)SWMgr_module(arg1,(char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWModule,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_terminateSearch_set) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_terminateSearch_set(self,terminateSearch);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_terminateSearch_set. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ if (arg1) (arg1)->terminateSearch = arg2;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_terminateSearch_get) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_terminateSearch_get(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_terminateSearch_get. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool) ((arg1)->terminateSearch);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_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;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 8)) {
+ 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) {
+ croak("Type error in argument 3 of new_SWModule. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ 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) {
+ croak("Type error in argument 5 of new_SWModule. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 6 of new_SWModule. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 7 of new_SWModule. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_Error) {
+ SWModule *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_Error(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Error. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Error();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_isUnicode) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_isUnicode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_isUnicode. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)((SWModule const *)arg1)->isUnicode();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_getConfig) {
+ SWModule *arg1 ;
+ ConfigEntMap *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_getConfig(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_getConfig. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_getConfigEntry) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_getConfigEntry(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_getConfigEntry. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_SetKey) {
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_SetKey(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_SetKey. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of SWModule_SetKey. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->SetKey((SWKey const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_Key) {
+ SWModule *arg1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_Key(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Key. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_CreateKey) {
+ SWModule *arg1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_CreateKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_CreateKey. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (SWKey *)(arg1)->CreateKey();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_KeyText) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_KeyText(self,imodtype);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_KeyText. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_Display) {
+ SWModule *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_Display(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Display. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Display();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_nullPercent) {
+ SWModule *arg1 ;
+ char arg2 ;
+ void *arg3 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWModule_nullPercent(self,percent,userData);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_nullPercent. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ {
+ if (SWIG_ConvertPtr(ST(2), (void **) &arg3, 0,0) < 0) {
+ croak("Type error in argument 3 of SWModule_nullPercent. Expected %s", SWIGTYPE_p_void->name);
+ }
+ }
+ (arg1)->nullPercent(arg2,arg3);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_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;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 8)) {
+ croak("Usage: SWModule_Search(self,istr,searchType,flags,scope,justCheckIfSupported,percent,percentUserData);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Search. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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) {
+ croak("Type error in argument 5 of SWModule_Search. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_bool,0) < 0) {
+ croak("Type error in argument 6 of SWModule_Search. Expected %s", SWIGTYPE_p_bool->name);
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ if (SWIG_ConvertPtr(ST(6), (void **) &arg7, SWIGTYPE_p_f_char_p_void__void,0) < 0) {
+ croak("Type error in argument 7 of SWModule_Search. Expected %s", SWIGTYPE_p_f_char_p_void__void->name);
+ }
+ }
+ }
+ if (items > 7) {
+ {
+ if (SWIG_ConvertPtr(ST(7), (void **) &arg8, 0,0) < 0) {
+ croak("Type error in argument 8 of SWModule_Search. Expected %s", SWIGTYPE_p_void->name);
+ }
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_createSearchFramework) {
+ SWModule *arg1 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_createSearchFramework(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_createSearchFramework. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (signed char)(arg1)->createSearchFramework();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_hasSearchFramework) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_hasSearchFramework(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_hasSearchFramework. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)(arg1)->hasSearchFramework();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_isSearchOptimallySupported) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ int arg3 ;
+ int arg4 ;
+ SWKey *arg5 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 5) || (items > 5)) {
+ croak("Usage: SWModule_isSearchOptimallySupported(self,istr,searchType,flags,scope);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_isSearchOptimallySupported. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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) {
+ croak("Type error in argument 5 of SWModule_isSearchOptimallySupported. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (bool)(arg1)->isSearchOptimallySupported((char const *)arg2,arg3,arg4,arg5);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_next) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_next(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_next. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)SWModule_next(arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_prev) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_prev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_prev. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)SWModule_prev(arg1);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_inc) {
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_inc(self,howFar);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_inc. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (bool)SWModule_inc(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_dec) {
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_dec(self,howFar);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_dec. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (bool)SWModule_dec(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_setPosition) {
+ SWModule *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_setPosition(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_setPosition. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ croak("Type error in argument 2 of SWModule_setPosition. Expected %s", SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ SWModule_setPosition(arg1,arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_top) {
+ SWModule *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_top(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_top. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ SWModule_top(arg1);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_bottom) {
+ SWModule *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_bottom(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_bottom. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ SWModule_bottom(arg1);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_text) {
+ SWModule *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_text(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_text. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_StripText) {
+ SWModule *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_StripText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_StripText. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_getRawEntry) {
+ SWModule *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_getRawEntry(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_getRawEntry. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_setSkipConsecutiveLinks) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_setSkipConsecutiveLinks(self,val);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_setSkipConsecutiveLinks. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ (arg1)->setSkipConsecutiveLinks(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_getSkipConsecutiveLinks) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_getSkipConsecutiveLinks(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_getSkipConsecutiveLinks. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)(arg1)->getSkipConsecutiveLinks();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_getEntryAttributes) {
+ SWModule *arg1 ;
+ AttributeTypeList *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_getEntryAttributes(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_getEntryAttributes. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_processEntryAttributes) {
+ SWModule *arg1 ;
+ bool arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_processEntryAttributes(self,val);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_processEntryAttributes. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ arg2 = (bool) SvIV(ST(1));
+ ((SWModule const *)arg1)->processEntryAttributes(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_isProcessEntryAttributes) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_isProcessEntryAttributes(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_isProcessEntryAttributes. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)((SWModule const *)arg1)->isProcessEntryAttributes();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_Name) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Name(self,imodname);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Name. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_Description) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Description(self,imoddesc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Description. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_Type) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Type(self,imodtype);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Type. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_Direction) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Direction(self,newdir);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Direction. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (unsigned char)(arg1)->Direction(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_Encoding) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Encoding(self,enc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Encoding. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (unsigned char)(arg1)->Encoding(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_Markup) {
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Markup(self,enc);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Markup. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (signed char) SvIV(ST(1));
+ }
+ result = (unsigned char)(arg1)->Markup(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_Lang) {
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWModule_Lang(self,imodlang);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_Lang. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_isWritable) {
+ SWModule *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_isWritable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_isWritable. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ result = (bool)(arg1)->isWritable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_createModule) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ signed char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_createModule(self,char const *);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_createModule. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (signed char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_setEntry) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ long arg3 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWModule_setEntry(self,inbuf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_setEntry. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWModule_deleteEntry) {
+ SWModule *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWModule_deleteEntry(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_deleteEntry. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ (arg1)->deleteEntry();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_write) {
+ SWModule *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_write(self,text);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_write. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ SWModule_write(arg1,(char const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWModule_writeLink) {
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWModule_writeLink(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of SWModule_writeLink. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of SWModule_writeLink. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ SWModule_writeLink(arg1,(SWKey const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_SWModule) {
+ SWModule *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWModule(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWModule,0) < 0) {
+ croak("Type error in argument 1 of delete_SWModule. Expected %s", SWIGTYPE_p_SWModule->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_SW_POSITION) {
+ char arg1 ;
+ SW_POSITION *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_delete_SW_POSITION) {
+ SW_POSITION *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SW_POSITION(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ croak("Type error in argument 1 of delete_SW_POSITION. Expected %s", SWIGTYPE_p_SW_POSITION->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_SWKey) {
+ char *arg1 = 0 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_SWKey_clone) {
+ SWKey *arg1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_clone. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (SWKey *)((SWKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_Persist) {
+ SWKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_Persist(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_Persist. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (unsigned char)((SWKey const *)arg1)->Persist();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_setPersist) {
+ SWKey *arg1 ;
+ signed char arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWKey_setPersist(self,persists);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_setPersist. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ arg2 = (signed char) SvIV(ST(1));
+ SWKey_setPersist(arg1,arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_Error) {
+ SWKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_Error(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_Error. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Error();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_setText) {
+ SWKey *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWKey_setText(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_setText. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setText((char const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_getText) {
+ SWKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_getText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_getText. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWKey_getShortText) {
+ SWKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_getShortText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_getShortText. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWKey_compare) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWKey_compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_compare. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of SWKey_compare. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_equals) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWKey_equals(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_equals. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of SWKey_equals. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (bool)(arg1)->equals((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_decrement) {
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWKey_decrement(self,steps);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_decrement. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (int) SvIV(ST(1));
+ }
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_increment) {
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: SWKey_increment(self,steps);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_increment. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (int) SvIV(ST(1));
+ }
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_Traversable) {
+ SWKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_Traversable. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_Index) {
+ SWKey *arg1 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_Index. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (long)((SWKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_next) {
+ SWKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_next(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_next. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ SWKey_next(arg1);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_prev) {
+ SWKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWKey_prev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_prev. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ SWKey_prev(arg1);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWKey_setKey) {
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: SWKey_setKey(self,key);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of SWKey_setKey. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of SWKey_setKey. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ SWKey_setKey(arg1,(SWKey const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_SWKey) {
+ SWKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 1 of delete_SWKey. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_VerseKey) {
+ char *arg1 = 0 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_delete_VerseKey) {
+ VerseKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_VerseKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of delete_VerseKey. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_clone) {
+ VerseKey *arg1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_clone. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (SWKey *)((VerseKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_LowerBound) {
+ VerseKey *arg1 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_LowerBound(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_LowerBound. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_VerseKey_UpperBound) {
+ VerseKey *arg1 ;
+ VerseKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_UpperBound(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_UpperBound. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_VerseKey_ClearBounds) {
+ VerseKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_ClearBounds(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_ClearBounds. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ (arg1)->ClearBounds();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_decrement) {
+ VerseKey *arg1 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: VerseKey_decrement(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_decrement. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_increment) {
+ VerseKey *arg1 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: VerseKey_increment(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_increment. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Traversable) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Traversable. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_getBookName) {
+ VerseKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_getBookName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_getBookName. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_VerseKey_getBookAbbrev) {
+ VerseKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_getBookAbbrev(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_getBookAbbrev. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_VerseKey_Testament) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_Testament(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Testament. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (unsigned char)((VerseKey const *)arg1)->Testament();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Book) {
+ VerseKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_Book(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Book. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (unsigned char)((VerseKey const *)arg1)->Book();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Chapter) {
+ VerseKey *arg1 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_Chapter(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Chapter. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (int)((VerseKey const *)arg1)->Chapter();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Verse) {
+ VerseKey *arg1 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_Verse(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Verse. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (int)((VerseKey const *)arg1)->Verse();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Normalize) {
+ VerseKey *arg1 ;
+ char arg2 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: VerseKey_Normalize(self,autocheck);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Normalize. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ (arg1)->Normalize(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_AutoNormalize) {
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: VerseKey_AutoNormalize(self,iautonorm);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_AutoNormalize. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ result = (unsigned char)(arg1)->AutoNormalize(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_Headings) {
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: VerseKey_Headings(self,iheadings);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_Headings. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ if (items > 1) {
+ arg2 = (char) *SvPV(ST(1),PL_na);
+ }
+ result = (unsigned char)(arg1)->Headings(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_getOSISRef) {
+ VerseKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_getOSISRef(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_getOSISRef. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_VerseKey_compare) {
+ VerseKey *arg1 ;
+ SWKey *arg2 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: VerseKey_compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_compare. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of VerseKey_compare. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey__compare) {
+ VerseKey *arg1 ;
+ VerseKey *arg2 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: VerseKey__compare(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey__compare. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 2 of VerseKey__compare. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ result = (int)(arg1)->_compare((VerseKey const &)*arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_setLocale) {
+ VerseKey *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: VerseKey_setLocale(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_setLocale. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setLocale((char const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_VerseKey_getLocale) {
+ VerseKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: VerseKey_getLocale(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_VerseKey,0) < 0) {
+ croak("Type error in argument 1 of VerseKey_getLocale. Expected %s", SWIGTYPE_p_VerseKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_new_ListKey__SWIG_0) {
+ char *arg1 = 0 ;
+ ListKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_new_ListKey__SWIG_1) {
+ ListKey *arg1 ;
+ ListKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: new_ListKey(k);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of new_ListKey. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ result = (ListKey *)new ListKey((ListKey const &)*arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ListKey,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_ListKey) {
+ dXSARGS;
+
+ if ((items >= 0) && (items <= 1)) {
+ int _m = 1;
+ int _v = 1;
+ if (items > 0) {
+ {
+ _v = SvPOK(ST(0)) ? 1 : 0;
+ }
+ _m &= _v;
+ }
+ if (_m && _v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_new_ListKey__SWIG_0); return;
+ }
+ }
+ if (items == 1) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ if (_m && _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) {
+ ListKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_ListKey(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of delete_ListKey. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_clone) {
+ ListKey *arg1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_clone(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_clone. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ result = (SWKey *)((ListKey const *)arg1)->clone();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWKey,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_ClearList) {
+ ListKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_ClearList(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_ClearList. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ (arg1)->ClearList();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Count) {
+ ListKey *arg1 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_Count(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_Count. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ result = (int)(arg1)->Count();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Remove) {
+ ListKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_Remove(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_Remove. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ (arg1)->Remove();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_SetToElement) {
+ ListKey *arg1 ;
+ int arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_SetToElement(self,element);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_SetToElement. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ result = (unsigned char)ListKey_SetToElement(arg1,arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_GetElement) {
+ ListKey *arg1 ;
+ int arg2 = -1 ;
+ SWKey *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: ListKey_GetElement(self,pos);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_GetElement. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_ListKey_add) {
+ ListKey *arg1 ;
+ SWKey *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_add(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_add. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_SWKey,0) < 0) {
+ croak("Type error in argument 2 of ListKey_add. Expected %s", SWIGTYPE_p_SWKey->name);
+ }
+ }
+ (arg1)->add((SWKey const &)*arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_copyFrom) {
+ ListKey *arg1 ;
+ ListKey *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_copyFrom(self,ikey);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_copyFrom. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 2 of ListKey_copyFrom. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ (arg1)->copyFrom((ListKey const &)*arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_setPosition) {
+ ListKey *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_setPosition(self,SW_POSITION);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_setPosition. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ croak("Type error in argument 2 of ListKey_setPosition. Expected %s", SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_decrement) {
+ ListKey *arg1 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_decrement(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_decrement. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->decrement(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_increment) {
+ ListKey *arg1 ;
+ int arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_increment(self,step);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_increment. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ arg2 = (int) SvIV(ST(1));
+ (arg1)->increment(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Traversable) {
+ ListKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_Traversable. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Index__SWIG_0) {
+ ListKey *arg1 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ListKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_Index. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ result = (long)((ListKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Index__SWIG_1) {
+ ListKey *arg1 ;
+ long arg2 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: ListKey_Index(self,index);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ListKey,0) < 0) {
+ croak("Type error in argument 1 of ListKey_Index. Expected %s", SWIGTYPE_p_ListKey->name);
+ }
+ }
+ arg2 = (long) SvIV(ST(1));
+ result = (long)(arg1)->Index(arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ListKey_Index) {
+ dXSARGS;
+
+ if (items == 1) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ if (_m && _v) {
+ (*PL_markstack_ptr++);SWIG_CALLXS(_wrap_ListKey_Index__SWIG_0); return;
+ }
+ }
+ if (items == 2) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *tmp;
+ if (SWIG_ConvertPtr(ST(0), (void **) &tmp, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ {
+ _v = SvIOK(ST(1)) ? 1 : 0;
+ }
+ _m &= _v;
+ if (_m && _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) {
+ TreeKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_getLocalName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_getLocalName. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_TreeKey_setLocalName) {
+ TreeKey *arg1 ;
+ char *arg2 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: TreeKey_setLocalName(self,char const *);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_setLocalName. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_TreeKey_getUserData) {
+ TreeKey *arg1 ;
+ int *arg2 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 2)) {
+ croak("Usage: TreeKey_getUserData(self,size);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_getUserData. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ if (items > 1) {
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_int,0) < 0) {
+ croak("Type error in argument 2 of TreeKey_getUserData. Expected %s", SWIGTYPE_p_int->name);
+ }
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_TreeKey_setUserData) {
+ TreeKey *arg1 ;
+ char *arg2 ;
+ int arg3 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ croak("Usage: TreeKey_setUserData(self,userData,size);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_setUserData. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_TreeKey_getFullName) {
+ TreeKey *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_getFullName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_getFullName. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_TreeKey_root) {
+ TreeKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_root(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_root. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ (arg1)->root();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_parent) {
+ TreeKey *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_parent(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_parent. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (bool)(arg1)->parent();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_firstChild) {
+ TreeKey *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_firstChild(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_firstChild. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (bool)(arg1)->firstChild();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_nextSibling) {
+ TreeKey *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_nextSibling(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_nextSibling. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (bool)(arg1)->nextSibling();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_previousSibling) {
+ TreeKey *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_previousSibling(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_previousSibling. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (bool)(arg1)->previousSibling();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_hasChildren) {
+ TreeKey *arg1 ;
+ bool result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_hasChildren(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_hasChildren. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (bool)(arg1)->hasChildren();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_append) {
+ TreeKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_append(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_append. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ (arg1)->append();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_appendChild) {
+ TreeKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_appendChild(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_appendChild. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ (arg1)->appendChild();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_insertBefore) {
+ TreeKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_insertBefore(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_insertBefore. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ (arg1)->insertBefore();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_remove) {
+ TreeKey *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_remove(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_remove. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ (arg1)->remove();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_setOffset) {
+ TreeKey *arg1 ;
+ unsigned long arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: TreeKey_setOffset(self,offset);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_setOffset. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ arg2 = (unsigned long) SvUV(ST(1));
+ (arg1)->setOffset(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_getOffset) {
+ TreeKey *arg1 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_getOffset(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_getOffset. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (unsigned long)((TreeKey const *)arg1)->getOffset();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_setPosition) {
+ TreeKey *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: TreeKey_setPosition(self,p);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_setPosition. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ {
+ SW_POSITION * argp;
+ if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_SW_POSITION,0) < 0) {
+ croak("Type error in argument 2 of TreeKey_setPosition. Expected %s", SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_Traversable) {
+ TreeKey *arg1 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_Traversable(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_Traversable. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (unsigned char)(arg1)->Traversable();
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_TreeKey_Index) {
+ TreeKey *arg1 ;
+ long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: TreeKey_Index(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_TreeKey,0) < 0) {
+ croak("Type error in argument 1 of TreeKey_Index. Expected %s", SWIGTYPE_p_TreeKey->name);
+ }
+ }
+ result = (long)((TreeKey const *)arg1)->Index();
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_LocaleMgr) {
+ char *arg1 = 0 ;
+ LocaleMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 1)) {
+ 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);
+}
+
+
+XS(_wrap_delete_LocaleMgr) {
+ LocaleMgr *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_LocaleMgr(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of delete_LocaleMgr. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_LocaleMgr_getLocale) {
+ LocaleMgr *arg1 ;
+ char *arg2 ;
+ SWLocale *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: LocaleMgr_getLocale(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of LocaleMgr_getLocale. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_LocaleMgr_getAvailableLocales) {
+ LocaleMgr *arg1 ;
+ list<string > result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: LocaleMgr_getAvailableLocales(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of LocaleMgr_getAvailableLocales. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ result = (arg1)->getAvailableLocales();
+
+ {
+ list<string > * resultobj = new list<string >((list<string > &)result);
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) resultobj, SWIGTYPE_p_listTstring_t,0);
+ }
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_LocaleMgr_getDefaultLocaleName) {
+ LocaleMgr *arg1 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: LocaleMgr_getDefaultLocaleName(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of LocaleMgr_getDefaultLocaleName. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_LocaleMgr_setDefaultLocaleName) {
+ LocaleMgr *arg1 ;
+ char *arg2 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: LocaleMgr_setDefaultLocaleName(self,name);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of LocaleMgr_setDefaultLocaleName. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ (arg1)->setDefaultLocaleName((char const *)arg2);
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_LocaleMgr_systemLocaleMgr) {
+ LocaleMgr *arg1 ;
+ LocaleMgr *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: LocaleMgr_systemLocaleMgr(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LocaleMgr,0) < 0) {
+ croak("Type error in argument 1 of LocaleMgr_systemLocaleMgr. Expected %s", SWIGTYPE_p_LocaleMgr->name);
+ }
+ }
+ result = (LocaleMgr *)LocaleMgr_systemLocaleMgr(arg1);
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_LocaleMgr,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_SWText) {
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 7)) {
+ 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) {
+ croak("Type error in argument 3 of new_SWText. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 3) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(3),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 4 of new_SWText. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg4 = *argp;
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 5 of new_SWText. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 6 of new_SWText. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_SWText) {
+ SWText *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWText,0) < 0) {
+ croak("Type error in argument 1 of delete_SWText. Expected %s", SWIGTYPE_p_SWText->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_RawText) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ 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) {
+ croak("Type error in argument 4 of new_RawText. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 5 of new_RawText. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 6 of new_RawText. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 7 of new_RawText. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_RawText_createModule) {
+ RawText *arg1 ;
+ char *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: RawText_createModule(self,path);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawText,0) < 0) {
+ croak("Type error in argument 1 of RawText_createModule. Expected %s", SWIGTYPE_p_RawText->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_RawText) {
+ RawText *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_RawText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawText,0) < 0) {
+ croak("Type error in argument 1 of delete_RawText. Expected %s", SWIGTYPE_p_RawText->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_zText) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ int arg4 = CHAPTERBLOCKS ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zText *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 10)) {
+ 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) {
+ croak("Type error in argument 5 of new_zText. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_SWDisplay,0) < 0) {
+ croak("Type error in argument 6 of new_zText. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 7 of new_zText. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(7),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 8 of new_zText. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg8 = *argp;
+ }
+ }
+ if (items > 8) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(8),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 9 of new_zText. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_zText) {
+ zText *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_zText(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zText,0) < 0) {
+ croak("Type error in argument 1 of delete_zText. Expected %s", SWIGTYPE_p_zText->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_zText_createModule) {
+ zText *arg1 ;
+ char *arg2 ;
+ int arg3 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: zText_createModule(self,path,blockBound);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zText,0) < 0) {
+ croak("Type error in argument 1 of zText_createModule. Expected %s", SWIGTYPE_p_zText->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ arg3 = (int) SvIV(ST(2));
+ result = (unsigned char)(arg1)->createModule((char const *)arg2,arg3);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_RawGenBook) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawGenBook *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ 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) {
+ croak("Type error in argument 4 of new_RawGenBook. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 5 of new_RawGenBook. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 6 of new_RawGenBook. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 7 of new_RawGenBook. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_RawGenBook) {
+ RawGenBook *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_RawGenBook(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawGenBook,0) < 0) {
+ croak("Type error in argument 1 of delete_RawGenBook. Expected %s", SWIGTYPE_p_RawGenBook->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_RawGenBook_createModule) {
+ RawGenBook *arg1 ;
+ char *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: RawGenBook_createModule(self,ipath);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawGenBook,0) < 0) {
+ croak("Type error in argument 1 of RawGenBook_createModule. Expected %s", SWIGTYPE_p_RawGenBook->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_SWLD) {
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 7)) {
+ 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) {
+ croak("Type error in argument 3 of new_SWLD. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 3) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(3),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 4 of new_SWLD. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg4 = *argp;
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 5 of new_SWLD. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 6 of new_SWLD. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_SWLD) {
+ SWLD *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWLD,0) < 0) {
+ croak("Type error in argument 1 of delete_SWLD. Expected %s", SWIGTYPE_p_SWLD->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_RawLD) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ 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) {
+ croak("Type error in argument 4 of new_RawLD. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 5 of new_RawLD. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 6 of new_RawLD. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 7 of new_RawLD. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_RawLD) {
+ RawLD *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_RawLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD,0) < 0) {
+ croak("Type error in argument 1 of delete_RawLD. Expected %s", SWIGTYPE_p_RawLD->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_RawLD_createModule) {
+ RawLD *arg1 ;
+ char *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: RawLD_createModule(self,path);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD,0) < 0) {
+ croak("Type error in argument 1 of RawLD_createModule. Expected %s", SWIGTYPE_p_RawLD->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_RawLD4) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD4 *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 8)) {
+ 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) {
+ croak("Type error in argument 4 of new_RawLD4. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 4) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(4),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 5 of new_RawLD4. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if (items > 5) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(5),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 6 of new_RawLD4. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 7 of new_RawLD4. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_RawLD4) {
+ RawLD4 *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_RawLD4(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD4,0) < 0) {
+ croak("Type error in argument 1 of delete_RawLD4. Expected %s", SWIGTYPE_p_RawLD4->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_RawLD4_createModule) {
+ RawLD4 *arg1 ;
+ char *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: RawLD4_createModule(self,path);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_RawLD4,0) < 0) {
+ croak("Type error in argument 1 of RawLD4_createModule. Expected %s", SWIGTYPE_p_RawLD4->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_zLD) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ long arg4 = 200 ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zLD *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 10)) {
+ 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) {
+ croak("Type error in argument 5 of new_zLD. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ }
+ if (items > 5) {
+ {
+ if (SWIG_ConvertPtr(ST(5), (void **) &arg6, SWIGTYPE_p_SWDisplay,0) < 0) {
+ croak("Type error in argument 6 of new_zLD. Expected %s", SWIGTYPE_p_SWDisplay->name);
+ }
+ }
+ }
+ if (items > 6) {
+ {
+ SWTextEncoding * argp;
+ if (SWIG_ConvertPtr(ST(6),(void **) &argp, SWIGTYPE_p_SWTextEncoding,0) < 0) {
+ croak("Type error in argument 7 of new_zLD. Expected %s", SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg7 = *argp;
+ }
+ }
+ if (items > 7) {
+ {
+ SWTextDirection * argp;
+ if (SWIG_ConvertPtr(ST(7),(void **) &argp, SWIGTYPE_p_SWTextDirection,0) < 0) {
+ croak("Type error in argument 8 of new_zLD. Expected %s", SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg8 = *argp;
+ }
+ }
+ if (items > 8) {
+ {
+ SWTextMarkup * argp;
+ if (SWIG_ConvertPtr(ST(8),(void **) &argp, SWIGTYPE_p_SWTextMarkup,0) < 0) {
+ croak("Type error in argument 9 of new_zLD. Expected %s", SWIGTYPE_p_SWTextMarkup->name);
+ }
+ 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);
+}
+
+
+XS(_wrap_delete_zLD) {
+ zLD *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_zLD(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zLD,0) < 0) {
+ croak("Type error in argument 1 of delete_zLD. Expected %s", SWIGTYPE_p_zLD->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_zLD_createModule) {
+ zLD *arg1 ;
+ char *arg2 ;
+ unsigned char result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 2)) {
+ croak("Usage: zLD_createModule(self,path);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_zLD,0) < 0) {
+ croak("Type error in argument 1 of zLD_createModule. Expected %s", SWIGTYPE_p_zLD->name);
+ }
+ }
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+ ST(argvi) = sv_newmortal();
+ sv_setuv(ST(argvi++), (UV) result);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_SWCompress) {
+ SWCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ croak("Usage: new_SWCompress();");
+ }
+ result = (SWCompress *)new SWCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_SWCompress,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_SWCompress) {
+ SWCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_SWCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of delete_SWCompress. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWCompress_Buf) {
+ SWCompress *arg1 ;
+ char *arg2 = 0 ;
+ unsigned long *arg3 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 3)) {
+ croak("Usage: SWCompress_Buf(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_Buf. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ 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) {
+ croak("Type error in argument 3 of SWCompress_Buf. Expected %s", SWIGTYPE_p_unsigned_long->name);
+ }
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWCompress_zBuf) {
+ SWCompress *arg1 ;
+ unsigned long *arg2 ;
+ char *arg3 = 0 ;
+ char *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 2) || (items > 3)) {
+ croak("Usage: SWCompress_zBuf(self,len,buf);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_zBuf. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_unsigned_long,0) < 0) {
+ croak("Type error in argument 2 of SWCompress_zBuf. Expected %s", SWIGTYPE_p_unsigned_long->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWCompress_GetChars) {
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWCompress_GetChars(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_GetChars. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWCompress_SendChars) {
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 3) || (items > 3)) {
+ croak("Usage: SWCompress_SendChars(self,buf,len);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_SendChars. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ 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);
+}
+
+
+XS(_wrap_SWCompress_Encode) {
+ SWCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_Encode. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_SWCompress_Decode) {
+ SWCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: SWCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_SWCompress,0) < 0) {
+ croak("Type error in argument 1 of SWCompress_Decode. Expected %s", SWIGTYPE_p_SWCompress->name);
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_LZSSCompress) {
+ LZSSCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ croak("Usage: new_LZSSCompress();");
+ }
+ result = (LZSSCompress *)new LZSSCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_LZSSCompress,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_LZSSCompress) {
+ LZSSCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_LZSSCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ croak("Type error in argument 1 of delete_LZSSCompress. Expected %s", SWIGTYPE_p_LZSSCompress->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_LZSSCompress_Encode) {
+ LZSSCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: LZSSCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ croak("Type error in argument 1 of LZSSCompress_Encode. Expected %s", SWIGTYPE_p_LZSSCompress->name);
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_LZSSCompress_Decode) {
+ LZSSCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: LZSSCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_LZSSCompress,0) < 0) {
+ croak("Type error in argument 1 of LZSSCompress_Decode. Expected %s", SWIGTYPE_p_LZSSCompress->name);
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_new_ZipCompress) {
+ ZipCompress *result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 0) || (items > 0)) {
+ croak("Usage: new_ZipCompress();");
+ }
+ result = (ZipCompress *)new ZipCompress();
+
+ ST(argvi) = sv_newmortal();
+ SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_ZipCompress,0);
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_delete_ZipCompress) {
+ ZipCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: delete_ZipCompress(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ croak("Type error in argument 1 of delete_ZipCompress. Expected %s", SWIGTYPE_p_ZipCompress->name);
+ }
+ }
+ delete arg1;
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ZipCompress_Encode) {
+ ZipCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ZipCompress_Encode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ croak("Type error in argument 1 of ZipCompress_Encode. Expected %s", SWIGTYPE_p_ZipCompress->name);
+ }
+ }
+ (arg1)->Encode();
+
+
+ XSRETURN(argvi);
+}
+
+
+XS(_wrap_ZipCompress_Decode) {
+ ZipCompress *arg1 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ croak("Usage: ZipCompress_Decode(self);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ZipCompress,0) < 0) {
+ croak("Type error in argument 1 of ZipCompress_Decode. Expected %s", SWIGTYPE_p_ZipCompress->name);
+ }
+ }
+ (arg1)->Decode();
+
+
+ XSRETURN(argvi);
+}
+
+
+
+/* -------- 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 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[] = {{"Sword::RawLD", 0, "RawLD *", 0},{"Sword::RawLD"},{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_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[] = {{"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_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_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[] = {{"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_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_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_SWTextEncoding[] = {{"_p_SWTextEncoding", 0, "SWTextEncoding *", 0},{"_p_SWTextEncoding"},{0}};
+static swig_type_info _swigt__p_zText[] = {{"Sword::zText", 0, "zText *", 0},{"Sword::zText"},{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_zCom,
+_swigt__p_string,
+_swigt__p_SectionMap,
+_swigt__p_SWDisplay,
+_swigt__p_AttributeTypeList,
+_swigt__p_SWText,
+_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_OptionsList,
+_swigt__p_listTstring_t,
+_swigt__p_SWTextEncoding,
+_swigt__p_zText,
+_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_module", _wrap_SWMgr_module},
+{"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::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::delete_SWKey", _wrap_delete_SWKey},
+{"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_decrement", _wrap_VerseKey_decrement},
+{"Swordc::VerseKey_increment", _wrap_VerseKey_increment},
+{"Swordc::VerseKey_Traversable", _wrap_VerseKey_Traversable},
+{"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::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::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_systemLocaleMgr", _wrap_LocaleMgr_systemLocaleMgr},
+{"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_RawGenBook", _wrap_new_RawGenBook},
+{"Swordc::delete_RawGenBook", _wrap_delete_RawGenBook},
+{"Swordc::RawGenBook_createModule", _wrap_RawGenBook_createModule},
+{"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},
+{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");
+ 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..4ec18e8
--- /dev/null
+++ b/bindings/swig/perl/Sword.pm
@@ -0,0 +1,1265 @@
+# 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 = (
+);
+
+%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 module {
+ my @args = @_;
+ my $result = Swordc::SWMgr_module(@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);
+}
+*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 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};
+ }
+}
+
+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;
+*decrement = *Swordc::VerseKey_decrement;
+*increment = *Swordc::VerseKey_increment;
+*Traversable = *Swordc::VerseKey_Traversable;
+*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;
+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 = ();
+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 systemLocaleMgr {
+ my @args = @_;
+ my $result = Swordc::LocaleMgr_systemLocaleMgr(@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 = ();
+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 = ();
+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 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;
+ };
+
+
+# ------- 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) {
+ // 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_Chapter. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (int)((VerseKey const *)arg1)->Chapter();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Verse) {
+ VerseKey *arg1 ;
+ int 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_Verse. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (int)((VerseKey const *)arg1)->Verse();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Normalize) {
+ VerseKey *arg1 ;
+ char arg2 = 0 ;
+ 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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_Normalize. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char) *Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ (arg1)->Normalize(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_AutoNormalize) {
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ 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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_AutoNormalize. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char) *Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (unsigned char)(arg1)->AutoNormalize(arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Headings) {
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ 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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_Headings. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char) *Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ result = (unsigned char)(arg1)->Headings(arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getOSISRef) {
+ 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_getOSISRef. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (char *)((VerseKey const *)arg1)->getOSISRef();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_compare) {
+ VerseKey *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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_compare. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_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_VerseKey__compare) {
+ VerseKey *arg1 ;
+ VerseKey *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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey__compare. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey__compare. Expected %s", 2-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (int)(arg1)->_compare((VerseKey const &)*arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_setLocale) {
+ VerseKey *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_VerseKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of VerseKey_setLocale. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ (arg1)->setLocale((char const *)arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getLocale) {
+ 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_getLocale. Expected %s", 1-argbase, SWIGTYPE_p_VerseKey->name);
+ }
+
+ result = (char *)((VerseKey const *)arg1)->getLocale();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+// property handler for class VerseKey
+static pval _wrap_propget_VerseKey(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_VerseKey(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_VerseKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass VerseKey
+ {
+ // chain to base class
+ if (_propget_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_VerseKey(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_VerseKey(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_VerseKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass VerseKey
+ {
+ // chain to base class
+ if (_propset_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_ListKey) {
+ char *arg1 = 0 ;
+ ListKey *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 = (ListKey *)new ListKey((char const *)arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ListKey, 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_ListKey);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_copy_ListKey) {
+ ListKey *arg1 ;
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of copy_ListKey. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ result = (ListKey *)new ListKey((ListKey const &)*arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ListKey, 1);
+
+ // 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;
+ }
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_ListKey(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 ;
+ ListKey *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_ListKey TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "ListKey resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_ListKey) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_ListKey. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->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_ListKey_clone) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_clone. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ result = (SWKey *)((ListKey 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_ListKey_ClearList) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_ClearList. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ (arg1)->ClearList();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Count) {
+ ListKey *arg1 ;
+ int 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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_Count. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ result = (int)(arg1)->Count();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Remove) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_Remove. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ (arg1)->Remove();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_SetToElement) {
+ ListKey *arg1 ;
+ int 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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_SetToElement. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)ListKey_SetToElement(arg1,arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_GetElement) {
+ ListKey *arg1 ;
+ int arg2 = -1 ;
+ SWKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_GetElement. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ if(arg_count > 1) {
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ }
+ result = (SWKey *)(arg1)->GetElement(arg2);
+
+
+ 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_ListKey_add) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_add. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_SWKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_add. Expected %s", 2-argbase, SWIGTYPE_p_SWKey->name);
+ }
+
+ (arg1)->add((SWKey const &)*arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_copyFrom) {
+ ListKey *arg1 ;
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_copyFrom. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_copyFrom. Expected %s", 2-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ (arg1)->copyFrom((ListKey const &)*arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_setPosition) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_setPosition. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->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 ListKey_setPosition. Expected %s", 2-argbase, SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_decrement) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_decrement. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->decrement(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_increment) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_increment. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (int) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->increment(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Traversable) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_Traversable. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ result = (unsigned char)(arg1)->Traversable();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Index) {
+ ListKey *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_ListKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ListKey_Index. Expected %s", 1-argbase, SWIGTYPE_p_ListKey->name);
+ }
+
+ result = (long)((ListKey const *)arg1)->Index();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class ListKey
+static pval _wrap_propget_ListKey(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_ListKey(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_ListKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass ListKey
+ {
+ // chain to base class
+ if (_propget_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_ListKey(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_ListKey(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_ListKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass ListKey
+ {
+ // chain to base class
+ if (_propset_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getLocalName) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_getLocalName. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (char *)(arg1)->getLocalName();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setLocalName) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_setLocalName. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (char *)(arg1)->setLocalName((char const *)arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getUserData) {
+ TreeKey *arg1 ;
+ int *arg2 = 0 ;
+ char *result;
+ int intr2 ;
+ int force2 ;
+ zval **args[3];
+ 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<(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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_getUserData. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ if(arg_count > 1) {
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_int) < 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[1-argbase])->type==IS_STRING ||
+ (*args[1-argbase])->type==IS_LONG ||
+ (*args[1-argbase])->type==IS_DOUBLE) {
+ convert_to_long_ex(args[1-argbase]);
+ intr2 = (int) (*args[1-argbase])->value.lval;
+ arg2 = &intr2;
+ // have to passback arg$arg too
+ force2=1;
+ }else {
+ // wasn't a pre/ref/thing, OR anything like an int thing
+ force2=0;
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_getUserData. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 2-argbase, SWIGTYPE_p_int->name);
+ }
+ }else force2=0;
+
+ }
+ _saved[0] = args[1-argbase];
+ result = (char *)(arg1)->getUserData(arg2);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+
+ if (force2) {
+ // pass back arg2 through params (_saved[0]) if we can
+ if(! PZVAL_IS_REF(*_saved[0])) {
+ zend_error(E_WARNING, "Parameter %d of TreeKey_getUserData wasn't passed by reference",2-argbase);
+ }else {
+ ZVAL_LONG(*_saved[0],intr2);
+ }
+ }
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setUserData) {
+ TreeKey *arg1 ;
+ char *arg2 ;
+ int arg3 = 0 ;
+ zval **args[4];
+ 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<(2-argbase) || arg_count>(3-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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_setUserData. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->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]);
+
+ }
+ (arg1)->setUserData((char const *)arg2,arg3);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getFullName) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_getFullName. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (char *)((TreeKey const *)arg1)->getFullName();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_root) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_root. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ (arg1)->root();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_parent) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_parent. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (bool)(arg1)->parent();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_firstChild) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_firstChild. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (bool)(arg1)->firstChild();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_nextSibling) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_nextSibling. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (bool)(arg1)->nextSibling();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_previousSibling) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_previousSibling. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (bool)(arg1)->previousSibling();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_hasChildren) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_hasChildren. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (bool)(arg1)->hasChildren();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_append) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_append. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ (arg1)->append();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_appendChild) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_appendChild. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ (arg1)->appendChild();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_insertBefore) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_insertBefore. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ (arg1)->insertBefore();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_remove) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_remove. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ (arg1)->remove();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setOffset) {
+ TreeKey *arg1 ;
+ unsigned long 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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_setOffset. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+
+ convert_to_long_ex(args[1-argbase]);
+ arg2 = (unsigned long) Z_LVAL_PP(args[1-argbase]);
+
+ (arg1)->setOffset(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getOffset) {
+ TreeKey *arg1 ;
+ unsigned 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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_getOffset. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (unsigned long)((TreeKey const *)arg1)->getOffset();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setPosition) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_setPosition. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->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 TreeKey_setPosition. Expected %s", 2-argbase, SWIGTYPE_p_SW_POSITION->name);
+ }
+ arg2 = *argp;
+ }
+ (arg1)->setPosition(arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_Traversable) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_Traversable. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (unsigned char)(arg1)->Traversable();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_Index) {
+ TreeKey *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_TreeKey) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of TreeKey_Index. Expected %s", 1-argbase, SWIGTYPE_p_TreeKey->name);
+ }
+
+ result = (long)((TreeKey const *)arg1)->Index();
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_new_TreeKey) {
+ zend_error(E_ERROR,"Cannot create swig object type: TreeKey as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class TreeKey
+static pval _wrap_propget_TreeKey(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_TreeKey(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_TreeKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass TreeKey
+ {
+ // chain to base class
+ if (_propget_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_TreeKey(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_TreeKey(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_TreeKey(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass TreeKey
+ {
+ // chain to base class
+ if (_propset_SWKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_TreeKeyIdx) {
+ zend_error(E_ERROR,"Cannot create swig object type: TreeKeyIdx as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class TreeKeyIdx
+static pval _wrap_propget_TreeKeyIdx(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_TreeKeyIdx(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_TreeKeyIdx(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass TreeKeyIdx
+ {
+ // chain to base class
+ if (_propget_TreeKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_TreeKeyIdx(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_TreeKeyIdx(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_TreeKeyIdx(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass TreeKeyIdx
+ {
+ // chain to base class
+ if (_propset_TreeKey(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_LocaleMgr) {
+ char *arg1 = 0 ;
+ LocaleMgr *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 = (LocaleMgr *)new LocaleMgr((char const *)arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_LocaleMgr, 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_LocaleMgr);
+ 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_LocaleMgr(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 ;
+ LocaleMgr *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_LocaleMgr TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "LocaleMgr resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_LocaleMgr) {
+ LocaleMgr *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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_LocaleMgr. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->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_LocaleMgr_getLocale) {
+ LocaleMgr *arg1 ;
+ char *arg2 ;
+ SWLocale *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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LocaleMgr_getLocale. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (SWLocale *)(arg1)->getLocale((char const *)arg2);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWLocale, 0);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_getAvailableLocales) {
+ LocaleMgr *arg1 ;
+ list<string > 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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LocaleMgr_getAvailableLocales. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->name);
+ }
+
+ result = (arg1)->getAvailableLocales();
+
+ {
+ list<string > * resultobj = new list<string >((list<string > &) result);
+ SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_listTstring_t, 0);
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_getDefaultLocaleName) {
+ LocaleMgr *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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LocaleMgr_getDefaultLocaleName. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->name);
+ }
+
+ result = (char *)(arg1)->getDefaultLocaleName();
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_setDefaultLocaleName) {
+ LocaleMgr *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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LocaleMgr_setDefaultLocaleName. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ (arg1)->setDefaultLocaleName((char const *)arg2);
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_systemLocaleMgr) {
+ LocaleMgr *arg1 ;
+ LocaleMgr *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_LocaleMgr) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LocaleMgr_systemLocaleMgr. Expected %s", 1-argbase, SWIGTYPE_p_LocaleMgr->name);
+ }
+
+ result = (LocaleMgr *)LocaleMgr_systemLocaleMgr(arg1);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_LocaleMgr, 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_LocaleMgr);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+// property handler for class LocaleMgr
+static pval _wrap_propget_LocaleMgr(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_LocaleMgr(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_LocaleMgr(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_LocaleMgr(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_LocaleMgr(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_LocaleMgr(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_SWFilterMgr) {
+ zend_error(E_ERROR,"Cannot create swig object type: SWFilterMgr as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class SWFilterMgr
+static pval _wrap_propget_SWFilterMgr(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_SWFilterMgr(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_SWFilterMgr(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_SWFilterMgr(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_SWFilterMgr(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_SWFilterMgr(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_SWText) {
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWText *result;
+ zval **args[8];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(7-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_SWText. Expected %s", 3-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ if(arg_count > 3) {
+ {
+ SWTextEncoding * argp;
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &argp, SWIGTYPE_p_SWTextEncoding) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWText. Expected %s", 4-argbase, SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg4 = *argp;
+ }
+ }
+ if(arg_count > 4) {
+ {
+ SWTextDirection * argp;
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &argp, SWIGTYPE_p_SWTextDirection) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWText. Expected %s", 5-argbase, SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if(arg_count > 5) {
+ {
+ SWTextMarkup * argp;
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &argp, SWIGTYPE_p_SWTextMarkup) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWText. Expected %s", 6-argbase, SWIGTYPE_p_SWTextMarkup->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if(arg_count > 6) {
+ convert_to_string_ex(args[6-argbase]);
+ arg7 = (char *) Z_STRVAL_PP(args[6-argbase]);
+
+ }
+ result = (SWText *)new SWText((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWText, 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_SWText);
+ 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_SWText(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 ;
+ SWText *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWText TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWText resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWText) {
+ SWText *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_SWText) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWText. Expected %s", 1-argbase, SWIGTYPE_p_SWText->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 SWText
+static pval _wrap_propget_SWText(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_SWText(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_SWText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWText
+ {
+ // chain to base class
+ if (_propget_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_SWText(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_SWText(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_SWText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWText
+ {
+ // chain to base class
+ if (_propset_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_RawText) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawText *result;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_RawText. Expected %s", 4-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ 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_RawText. 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_RawText. 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_RawText. 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 = (RawText *)new RawText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_RawText, 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_RawText);
+ add_property_zval(obj,"_cPtr",_cPtr);
+ *return_value=*obj;
+ }
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_RawText_createModule) {
+ RawText *arg1 ;
+ char *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_RawText) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of RawText_createModule. Expected %s", 1-argbase, SWIGTYPE_p_RawText->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// This function is designed to be called by the zend list destructors to typecast and do the actual destruction
+void __wrap_delete_RawText(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 ;
+ RawText *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_RawText TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "RawText resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_RawText) {
+ RawText *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_RawText) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_RawText. Expected %s", 1-argbase, SWIGTYPE_p_RawText->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 RawText
+static pval _wrap_propget_RawText(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_RawText(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_RawText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawText
+ {
+ // chain to base class
+ if (_propget_SWText(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_RawText(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_RawText(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_RawText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawText
+ {
+ // chain to base class
+ if (_propset_SWText(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_zText) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ int arg4 = CHAPTERBLOCKS ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zText *result;
+ zval **args[11];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(10-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zText. Expected %s", 5-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+ }
+ if(arg_count > 5) {
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &arg6, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zText. Expected %s", 6-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ if(arg_count > 6) {
+ {
+ SWTextEncoding * argp;
+ if(SWIG_ConvertPtr(*args[6-argbase], (void **) &argp, SWIGTYPE_p_SWTextEncoding) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zText. Expected %s", 7-argbase, SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg7 = *argp;
+ }
+ }
+ if(arg_count > 7) {
+ {
+ SWTextDirection * argp;
+ if(SWIG_ConvertPtr(*args[7-argbase], (void **) &argp, SWIGTYPE_p_SWTextDirection) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zText. Expected %s", 8-argbase, SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg8 = *argp;
+ }
+ }
+ if(arg_count > 8) {
+ {
+ SWTextMarkup * argp;
+ if(SWIG_ConvertPtr(*args[8-argbase], (void **) &argp, SWIGTYPE_p_SWTextMarkup) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zText. Expected %s", 9-argbase, SWIGTYPE_p_SWTextMarkup->name);
+ }
+ arg9 = *argp;
+ }
+ }
+ if(arg_count > 9) {
+ convert_to_string_ex(args[9-argbase]);
+ arg10 = (char *) Z_STRVAL_PP(args[9-argbase]);
+
+ }
+ result = (zText *)new zText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zText, 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_zText);
+ 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_zText(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 ;
+ zText *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zText TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "zText resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_zText) {
+ zText *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_zText) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_zText. Expected %s", 1-argbase, SWIGTYPE_p_zText->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_zText_createModule) {
+ zText *arg1 ;
+ char *arg2 ;
+ int arg3 ;
+ unsigned 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_zText) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of zText_createModule. Expected %s", 1-argbase, SWIGTYPE_p_zText->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]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2,arg3);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class zText
+static pval _wrap_propget_zText(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_zText(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_zText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zText
+ {
+ // chain to base class
+ if (_propget_SWText(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_zText(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_zText(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_zText(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zText
+ {
+ // chain to base class
+ if (_propset_SWText(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWCom) {
+ zend_error(E_ERROR,"Cannot create swig object type: SWCom as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class SWCom
+static pval _wrap_propget_SWCom(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_SWCom(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_SWCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWCom
+ {
+ // chain to base class
+ if (_propget_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_SWCom(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_SWCom(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_SWCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWCom
+ {
+ // chain to base class
+ if (_propset_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_RawCom) {
+ zend_error(E_ERROR,"Cannot create swig object type: RawCom as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class RawCom
+static pval _wrap_propget_RawCom(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_RawCom(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_RawCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawCom
+ {
+ // chain to base class
+ if (_propget_SWCom(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_RawCom(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_RawCom(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_RawCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawCom
+ {
+ // chain to base class
+ if (_propset_SWCom(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_zCom) {
+ zend_error(E_ERROR,"Cannot create swig object type: zCom as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class zCom
+static pval _wrap_propget_zCom(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_zCom(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_zCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zCom
+ {
+ // chain to base class
+ if (_propget_SWCom(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_zCom(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_zCom(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_zCom(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zCom
+ {
+ // chain to base class
+ if (_propset_SWCom(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWGenBook) {
+ zend_error(E_ERROR,"Cannot create swig object type: SWGenBook as the underlying object is abstract");
+}
+
+
+
+
+
+// property handler for class SWGenBook
+static pval _wrap_propget_SWGenBook(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_SWGenBook(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_SWGenBook(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWGenBook
+ {
+ // chain to base class
+ if (_propget_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_SWGenBook(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_SWGenBook(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_SWGenBook(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWGenBook
+ {
+ // chain to base class
+ if (_propset_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_RawGenBook) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawGenBook *result;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_RawGenBook. Expected %s", 4-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ 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_RawGenBook. 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_RawGenBook. 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_RawGenBook. 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 = (RawGenBook *)new RawGenBook((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_RawGenBook, 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_RawGenBook);
+ 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_RawGenBook(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 ;
+ RawGenBook *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_RawGenBook TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "RawGenBook resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_RawGenBook) {
+ RawGenBook *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_RawGenBook) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_RawGenBook. Expected %s", 1-argbase, SWIGTYPE_p_RawGenBook->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_RawGenBook_createModule) {
+ RawGenBook *arg1 ;
+ char *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_RawGenBook) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of RawGenBook_createModule. Expected %s", 1-argbase, SWIGTYPE_p_RawGenBook->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class RawGenBook
+static pval _wrap_propget_RawGenBook(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_RawGenBook(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_RawGenBook(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawGenBook
+ {
+ // chain to base class
+ if (_propget_SWGenBook(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_RawGenBook(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_RawGenBook(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_RawGenBook(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawGenBook
+ {
+ // chain to base class
+ if (_propset_SWGenBook(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWLD) {
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWLD *result;
+ zval **args[8];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(0-argbase) || arg_count>(7-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_SWLD. Expected %s", 3-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ if(arg_count > 3) {
+ {
+ SWTextEncoding * argp;
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &argp, SWIGTYPE_p_SWTextEncoding) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWLD. Expected %s", 4-argbase, SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg4 = *argp;
+ }
+ }
+ if(arg_count > 4) {
+ {
+ SWTextDirection * argp;
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &argp, SWIGTYPE_p_SWTextDirection) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWLD. Expected %s", 5-argbase, SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg5 = *argp;
+ }
+ }
+ if(arg_count > 5) {
+ {
+ SWTextMarkup * argp;
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &argp, SWIGTYPE_p_SWTextMarkup) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_SWLD. Expected %s", 6-argbase, SWIGTYPE_p_SWTextMarkup->name);
+ }
+ arg6 = *argp;
+ }
+ }
+ if(arg_count > 6) {
+ convert_to_string_ex(args[6-argbase]);
+ arg7 = (char *) Z_STRVAL_PP(args[6-argbase]);
+
+ }
+ result = (SWLD *)new SWLD((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWLD, 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_SWLD);
+ 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_SWLD(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 ;
+ SWLD *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWLD TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWLD resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWLD) {
+ SWLD *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_SWLD) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWLD. Expected %s", 1-argbase, SWIGTYPE_p_SWLD->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 SWLD
+static pval _wrap_propget_SWLD(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_SWLD(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_SWLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWLD
+ {
+ // chain to base class
+ if (_propget_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_SWLD(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_SWLD(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_SWLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass SWLD
+ {
+ // chain to base class
+ if (_propset_SWModule(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_RawLD) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD *result;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_RawLD. Expected %s", 4-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ 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_RawLD. 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_RawLD. 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_RawLD. 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 = (RawLD *)new RawLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_RawLD, 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_RawLD);
+ 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_RawLD(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 ;
+ RawLD *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_RawLD TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "RawLD resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_RawLD) {
+ RawLD *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_RawLD) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_RawLD. Expected %s", 1-argbase, SWIGTYPE_p_RawLD->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_RawLD_createModule) {
+ RawLD *arg1 ;
+ char *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_RawLD) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of RawLD_createModule. Expected %s", 1-argbase, SWIGTYPE_p_RawLD->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class RawLD
+static pval _wrap_propget_RawLD(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_RawLD(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_RawLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawLD
+ {
+ // chain to base class
+ if (_propget_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_RawLD(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_RawLD(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_RawLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawLD
+ {
+ // chain to base class
+ if (_propset_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_RawLD4) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD4 *result;
+ zval **args[9];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(8-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ if(SWIG_ConvertPtr(*args[3-argbase], (void **) &arg4, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_RawLD4. Expected %s", 4-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ 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_RawLD4. 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_RawLD4. 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_RawLD4. 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 = (RawLD4 *)new RawLD4((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_RawLD4, 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_RawLD4);
+ 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_RawLD4(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 ;
+ RawLD4 *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_RawLD4 TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "RawLD4 resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_RawLD4) {
+ RawLD4 *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_RawLD4) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_RawLD4. Expected %s", 1-argbase, SWIGTYPE_p_RawLD4->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_RawLD4_createModule) {
+ RawLD4 *arg1 ;
+ char *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_RawLD4) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of RawLD4_createModule. Expected %s", 1-argbase, SWIGTYPE_p_RawLD4->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class RawLD4
+static pval _wrap_propget_RawLD4(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_RawLD4(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_RawLD4(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawLD4
+ {
+ // chain to base class
+ if (_propget_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_RawLD4(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_RawLD4(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_RawLD4(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass RawLD4
+ {
+ // chain to base class
+ if (_propset_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_zLD) {
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ long arg4 = 200 ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zLD *result;
+ zval **args[11];
+ int argbase=0 ;
+ int arg_count;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ arg_count = ZEND_NUM_ARGS();
+ if(arg_count<(1-argbase) || arg_count>(10-argbase))
+ WRONG_PARAM_COUNT;
+
+ if(zend_get_parameters_array_ex(arg_count-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])));
+
+ if(arg_count > 1) {
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ }
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ if(arg_count > 3) {
+ convert_to_long_ex(args[3-argbase]);
+ arg4 = (long) Z_LVAL_PP(args[3-argbase]);
+
+ }
+ if(arg_count > 4) {
+ if(SWIG_ConvertPtr(*args[4-argbase], (void **) &arg5, SWIGTYPE_p_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zLD. Expected %s", 5-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+ }
+ if(arg_count > 5) {
+ if(SWIG_ConvertPtr(*args[5-argbase], (void **) &arg6, SWIGTYPE_p_SWDisplay) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zLD. Expected %s", 6-argbase, SWIGTYPE_p_SWDisplay->name);
+ }
+
+ }
+ if(arg_count > 6) {
+ {
+ SWTextEncoding * argp;
+ if(SWIG_ConvertPtr(*args[6-argbase], (void **) &argp, SWIGTYPE_p_SWTextEncoding) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zLD. Expected %s", 7-argbase, SWIGTYPE_p_SWTextEncoding->name);
+ }
+ arg7 = *argp;
+ }
+ }
+ if(arg_count > 7) {
+ {
+ SWTextDirection * argp;
+ if(SWIG_ConvertPtr(*args[7-argbase], (void **) &argp, SWIGTYPE_p_SWTextDirection) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zLD. Expected %s", 8-argbase, SWIGTYPE_p_SWTextDirection->name);
+ }
+ arg8 = *argp;
+ }
+ }
+ if(arg_count > 8) {
+ {
+ SWTextMarkup * argp;
+ if(SWIG_ConvertPtr(*args[8-argbase], (void **) &argp, SWIGTYPE_p_SWTextMarkup) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of new_zLD. Expected %s", 9-argbase, SWIGTYPE_p_SWTextMarkup->name);
+ }
+ arg9 = *argp;
+ }
+ }
+ if(arg_count > 9) {
+ convert_to_string_ex(args[9-argbase]);
+ arg10 = (char *) Z_STRVAL_PP(args[9-argbase]);
+
+ }
+ result = (zLD *)new zLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zLD, 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_zLD);
+ 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_zLD(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 ;
+ zLD *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zLD TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "zLD resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_zLD) {
+ zLD *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_zLD) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_zLD. Expected %s", 1-argbase, SWIGTYPE_p_zLD->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_zLD_createModule) {
+ zLD *arg1 ;
+ char *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_zLD) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of zLD_createModule. Expected %s", 1-argbase, SWIGTYPE_p_zLD->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+ result = (unsigned char)(arg1)->createModule((char const *)arg2);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+// property handler for class zLD
+static pval _wrap_propget_zLD(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_zLD(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_zLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zLD
+ {
+ // chain to base class
+ if (_propget_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_zLD(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_zLD(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_zLD(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass zLD
+ {
+ // chain to base class
+ if (_propset_SWLD(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWCompress) {
+ SWCompress *result;
+ zval **args[1];
+ int argbase=0 ;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ if(((ZEND_NUM_ARGS() + argbase )!= 0) || (zend_get_parameters_array_ex(0-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+ result = (SWCompress *)new SWCompress();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_SWCompress, 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_SWCompress);
+ 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_SWCompress(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 ;
+ SWCompress *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_SWCompress TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "SWCompress resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_SWCompress) {
+ SWCompress *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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_SWCompress. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->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_SWCompress_Buf) {
+ SWCompress *arg1 ;
+ char *arg2 = 0 ;
+ unsigned long *arg3 = 0 ;
+ char *result;
+ unsigned long intr3 ;
+ int force3 ;
+ zval **args[4];
+ 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<(1-argbase) || arg_count>(3-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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_Buf. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+ 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_unsigned_long) < 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[2-argbase])->type==IS_STRING ||
+ (*args[2-argbase])->type==IS_LONG ||
+ (*args[2-argbase])->type==IS_DOUBLE) {
+ convert_to_long_ex(args[2-argbase]);
+ intr3 = (unsigned long) (*args[2-argbase])->value.lval;
+ arg3 = &intr3;
+ // have to passback arg$arg too
+ force3=1;
+ }else {
+ // wasn't a pre/ref/thing, OR anything like an int thing
+ force3=0;
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_Buf. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase, SWIGTYPE_p_unsigned_long->name);
+ }
+ }else force3=0;
+
+ }
+ _saved[0] = args[2-argbase];
+ result = (char *)(arg1)->Buf((char const *)arg2,arg3);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+
+ if (force3) {
+ // pass back arg3 through params (_saved[0]) if we can
+ if(! PZVAL_IS_REF(*_saved[0])) {
+ zend_error(E_WARNING, "Parameter %d of SWCompress_Buf wasn't passed by reference",3-argbase);
+ }else {
+ ZVAL_LONG(*_saved[0],intr3);
+ }
+ }
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_zBuf) {
+ SWCompress *arg1 ;
+ unsigned long *arg2 ;
+ char *arg3 = 0 ;
+ char *result;
+ unsigned long intr2 ;
+ int force2 ;
+ zval **args[4];
+ 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>(3-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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_zBuf. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+
+ if(SWIG_ConvertPtr(*args[1-argbase], (void **) &arg2, SWIGTYPE_p_unsigned_long) < 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[1-argbase])->type==IS_STRING ||
+ (*args[1-argbase])->type==IS_LONG ||
+ (*args[1-argbase])->type==IS_DOUBLE) {
+ convert_to_long_ex(args[1-argbase]);
+ intr2 = (unsigned long) (*args[1-argbase])->value.lval;
+ arg2 = &intr2;
+ // have to passback arg$arg too
+ force2=1;
+ }else {
+ // wasn't a pre/ref/thing, OR anything like an int thing
+ force2=0;
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_zBuf. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 2-argbase, SWIGTYPE_p_unsigned_long->name);
+ }
+ }else force2=0;
+
+ if(arg_count > 2) {
+ convert_to_string_ex(args[2-argbase]);
+ arg3 = (char *) Z_STRVAL_PP(args[2-argbase]);
+
+ }
+ _saved[0] = args[1-argbase];
+ result = (char *)(arg1)->zBuf(arg2,arg3);
+
+
+ ZVAL_STRING(return_value,result, 1);
+
+
+ if (force2) {
+ // pass back arg2 through params (_saved[0]) if we can
+ if(! PZVAL_IS_REF(*_saved[0])) {
+ zend_error(E_WARNING, "Parameter %d of SWCompress_zBuf wasn't passed by reference",2-argbase);
+ }else {
+ ZVAL_LONG(*_saved[0],intr2);
+ }
+ }
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_GetChars) {
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long 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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_GetChars. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (unsigned long) Z_LVAL_PP(args[2-argbase]);
+
+ result = (unsigned long)(arg1)->GetChars(arg2,arg3);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_SendChars) {
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long 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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_SendChars. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+
+ convert_to_string_ex(args[1-argbase]);
+ arg2 = (char *) Z_STRVAL_PP(args[1-argbase]);
+
+
+ convert_to_long_ex(args[2-argbase]);
+ arg3 = (unsigned long) Z_LVAL_PP(args[2-argbase]);
+
+ result = (unsigned long)(arg1)->SendChars(arg2,arg3);
+
+
+ ZVAL_LONG(return_value,result);
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_Encode) {
+ SWCompress *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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_Encode. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+ (arg1)->Encode();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_Decode) {
+ SWCompress *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_SWCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of SWCompress_Decode. Expected %s", 1-argbase, SWIGTYPE_p_SWCompress->name);
+ }
+
+ (arg1)->Decode();
+
+
+}
+
+
+// property handler for class SWCompress
+static pval _wrap_propget_SWCompress(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_SWCompress(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_SWCompress(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_SWCompress(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_SWCompress(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_SWCompress(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_LZSSCompress) {
+ LZSSCompress *result;
+ zval **args[1];
+ int argbase=0 ;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ if(((ZEND_NUM_ARGS() + argbase )!= 0) || (zend_get_parameters_array_ex(0-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+ result = (LZSSCompress *)new LZSSCompress();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_LZSSCompress, 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_LZSSCompress);
+ 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_LZSSCompress(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 ;
+ LZSSCompress *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_LZSSCompress TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "LZSSCompress resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_LZSSCompress) {
+ LZSSCompress *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_LZSSCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_LZSSCompress. Expected %s", 1-argbase, SWIGTYPE_p_LZSSCompress->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_LZSSCompress_Encode) {
+ LZSSCompress *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_LZSSCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LZSSCompress_Encode. Expected %s", 1-argbase, SWIGTYPE_p_LZSSCompress->name);
+ }
+
+ (arg1)->Encode();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_LZSSCompress_Decode) {
+ LZSSCompress *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_LZSSCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of LZSSCompress_Decode. Expected %s", 1-argbase, SWIGTYPE_p_LZSSCompress->name);
+ }
+
+ (arg1)->Decode();
+
+
+}
+
+
+// property handler for class LZSSCompress
+static pval _wrap_propget_LZSSCompress(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_LZSSCompress(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_LZSSCompress(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass LZSSCompress
+ {
+ // chain to base class
+ if (_propget_SWCompress(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_LZSSCompress(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_LZSSCompress(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_LZSSCompress(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass LZSSCompress
+ {
+ // chain to base class
+ if (_propset_SWCompress(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+ZEND_NAMED_FUNCTION(_wrap_new_ZipCompress) {
+ ZipCompress *result;
+ zval **args[1];
+ int argbase=0 ;
+
+ // NATIVE Constructor
+ int self_constructor=1;
+ if(((ZEND_NUM_ARGS() + argbase )!= 0) || (zend_get_parameters_array_ex(0-argbase, args)!= SUCCESS)) {
+ WRONG_PARAM_COUNT;
+ }
+
+ result = (ZipCompress *)new ZipCompress();
+
+
+ SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ZipCompress, 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_ZipCompress);
+ 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_ZipCompress(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 ;
+ ZipCompress *arg1 ;
+
+ efree(value);
+ if (! newobject) return; // can't delete it!
+ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_ZipCompress TSRMLS_CC);
+ if (! arg1) zend_error(E_ERROR, "ZipCompress resource already free'd");
+ delete arg1;
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_delete_ZipCompress) {
+ ZipCompress *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_ZipCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of delete_ZipCompress. Expected %s", 1-argbase, SWIGTYPE_p_ZipCompress->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_ZipCompress_Encode) {
+ ZipCompress *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_ZipCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ZipCompress_Encode. Expected %s", 1-argbase, SWIGTYPE_p_ZipCompress->name);
+ }
+
+ (arg1)->Encode();
+
+
+}
+
+
+ZEND_NAMED_FUNCTION(_wrap_ZipCompress_Decode) {
+ ZipCompress *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_ZipCompress) < 0) {
+ zend_error(E_ERROR, "Type error in argument %d of ZipCompress_Decode. Expected %s", 1-argbase, SWIGTYPE_p_ZipCompress->name);
+ }
+
+ (arg1)->Decode();
+
+
+}
+
+
+// property handler for class ZipCompress
+static pval _wrap_propget_ZipCompress(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_ZipCompress(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_ZipCompress(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass ZipCompress
+ {
+ // chain to base class
+ if (_propget_SWCompress(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+static int _wrap_propset_ZipCompress(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_ZipCompress(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_ZipCompress(zend_property_reference *property_reference, pval *value) {
+ // No extra properties for subclass ZipCompress
+ {
+ // chain to base class
+ if (_propset_SWCompress(property_reference, value)==SUCCESS) return SUCCESS;
+ }
+ return FAILURE;
+}
+
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWLocale) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWMgr) {
+// has destructor: __wrap_delete_SWMgr
+__wrap_delete_SWMgr(rsrc, SWIGTYPE_p_SWMgr->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWCom) {
+//bah! No destructor for this wrapped class!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_RawLD4) {
+// has destructor: __wrap_delete_RawLD4
+__wrap_delete_RawLD4(rsrc, SWIGTYPE_p_RawLD4->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ListKey) {
+// has destructor: __wrap_delete_ListKey
+__wrap_delete_ListKey(rsrc, SWIGTYPE_p_ListKey->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWKey) {
+// has destructor: __wrap_delete_SWKey
+__wrap_delete_SWKey(rsrc, SWIGTYPE_p_SWKey->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ConfigEntMap) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_RawLD) {
+// has destructor: __wrap_delete_RawLD
+__wrap_delete_RawLD(rsrc, SWIGTYPE_p_RawLD->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_TreeKey) {
+//bah! No destructor for this wrapped class!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_bool) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_void) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWFilterMgr) {
+//bah! No destructor for this wrapped class!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWLD) {
+// has destructor: __wrap_delete_SWLD
+__wrap_delete_SWLD(rsrc, SWIGTYPE_p_SWLD->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWTextDirection) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_RawText) {
+// has destructor: __wrap_delete_RawText
+__wrap_delete_RawText(rsrc, SWIGTYPE_p_RawText->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_f_char_p_void__void) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_VerseKey) {
+// has destructor: __wrap_delete_VerseKey
+__wrap_delete_VerseKey(rsrc, SWIGTYPE_p_VerseKey->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ModMap) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_string) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SectionMap) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWDisplay) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_AttributeTypeList) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWText) {
+// has destructor: __wrap_delete_SWText
+__wrap_delete_SWText(rsrc, SWIGTYPE_p_SWText->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWCompress) {
+// has destructor: __wrap_delete_SWCompress
+__wrap_delete_SWCompress(rsrc, SWIGTYPE_p_SWCompress->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_LZSSCompress) {
+// has destructor: __wrap_delete_LZSSCompress
+__wrap_delete_LZSSCompress(rsrc, SWIGTYPE_p_LZSSCompress->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ZipCompress) {
+// has destructor: __wrap_delete_ZipCompress
+__wrap_delete_ZipCompress(rsrc, SWIGTYPE_p_ZipCompress->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SW_POSITION) {
+// has destructor: __wrap_delete_SW_POSITION
+__wrap_delete_SW_POSITION(rsrc, SWIGTYPE_p_SW_POSITION->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWModule) {
+// has destructor: __wrap_delete_SWModule
+__wrap_delete_SWModule(rsrc, SWIGTYPE_p_SWModule->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zLD) {
+// has destructor: __wrap_delete_zLD
+__wrap_delete_zLD(rsrc, SWIGTYPE_p_zLD->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWGenBook) {
+//bah! No destructor for this wrapped class!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_RawGenBook) {
+// has destructor: __wrap_delete_RawGenBook
+__wrap_delete_RawGenBook(rsrc, SWIGTYPE_p_RawGenBook->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWConfig) {
+// has destructor: __wrap_delete_SWConfig
+__wrap_delete_SWConfig(rsrc, SWIGTYPE_p_SWConfig->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_LocaleMgr) {
+// has destructor: __wrap_delete_LocaleMgr
+__wrap_delete_LocaleMgr(rsrc, SWIGTYPE_p_LocaleMgr->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWTextMarkup) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_OptionsList) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_listTstring_t) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zText) {
+// has destructor: __wrap_delete_zText
+__wrap_delete_zText(rsrc, SWIGTYPE_p_zText->name TSRMLS_CC);
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_SWTextEncoding) {
+//bah! No destructor for this simple type!!
+}
+//NEW Destructor style
+static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_long) {
+//bah! No destructor for this simple type!!
+}
+
+
+
+
+/* end wrapper section */
+/* init section */
+#ifdef COMPILE_DL_SWORD
+#ifdef __cplusplus
+extern "C" {
+#endif
+ZEND_GET_MODULE(Sword)
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+PHP_MSHUTDOWN_FUNCTION(Sword)
+{
+ return SUCCESS;
+}
+PHP_MINIT_FUNCTION(Sword)
+{
+ int i;
+ for (i = 0; swig_types_initial[i]; i++) {
+ swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
+ }
+/* oinit subsection */
+// Define class SWConfig
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWConfig,"swconfig",SWConfig_functions,NULL,_wrap_propget_SWConfig,_wrap_propset_SWConfig);
+if (! (ptr_ce_swig_SWConfig=zend_register_internal_class_ex(&ce_swig_SWConfig,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWConfig");
+
+// Define class SWMgr
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWMgr,"swmgr",SWMgr_functions,NULL,_wrap_propget_SWMgr,_wrap_propset_SWMgr);
+if (! (ptr_ce_swig_SWMgr=zend_register_internal_class_ex(&ce_swig_SWMgr,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWMgr");
+
+// Define class SWModule
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWModule,"swmodule",SWModule_functions,NULL,_wrap_propget_SWModule,_wrap_propset_SWModule);
+if (! (ptr_ce_swig_SWModule=zend_register_internal_class_ex(&ce_swig_SWModule,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWModule");
+
+// Define class SW_POSITION
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SW_POSITION,"sw_position",SW_POSITION_functions,NULL,_wrap_propget_SW_POSITION,_wrap_propset_SW_POSITION);
+if (! (ptr_ce_swig_SW_POSITION=zend_register_internal_class_ex(&ce_swig_SW_POSITION,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SW_POSITION");
+
+// Define class SWKey
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWKey,"swkey",SWKey_functions,NULL,_wrap_propget_SWKey,_wrap_propset_SWKey);
+if (! (ptr_ce_swig_SWKey=zend_register_internal_class_ex(&ce_swig_SWKey,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWKey");
+
+// Define class VerseKey
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_VerseKey,"versekey",VerseKey_functions,NULL,_wrap_propget_VerseKey,_wrap_propset_VerseKey);
+if (! (ptr_ce_swig_VerseKey=zend_register_internal_class_ex(&ce_swig_VerseKey,&ce_swig_SWKey,NULL))) zend_error(E_ERROR,"Error registering wrapper for class VerseKey");
+
+// Define class ListKey
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_ListKey,"listkey",ListKey_functions,NULL,_wrap_propget_ListKey,_wrap_propset_ListKey);
+if (! (ptr_ce_swig_ListKey=zend_register_internal_class_ex(&ce_swig_ListKey,&ce_swig_SWKey,NULL))) zend_error(E_ERROR,"Error registering wrapper for class ListKey");
+
+// Define class TreeKey
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_TreeKey,"treekey",TreeKey_functions,NULL,_wrap_propget_TreeKey,_wrap_propset_TreeKey);
+if (! (ptr_ce_swig_TreeKey=zend_register_internal_class_ex(&ce_swig_TreeKey,&ce_swig_SWKey,NULL))) zend_error(E_ERROR,"Error registering wrapper for class TreeKey");
+
+// Define class TreeKeyIdx
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_TreeKeyIdx,"treekeyidx",TreeKeyIdx_functions,NULL,_wrap_propget_TreeKeyIdx,_wrap_propset_TreeKeyIdx);
+if (! (ptr_ce_swig_TreeKeyIdx=zend_register_internal_class_ex(&ce_swig_TreeKeyIdx,&ce_swig_TreeKey,NULL))) zend_error(E_ERROR,"Error registering wrapper for class TreeKeyIdx");
+
+// Define class LocaleMgr
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_LocaleMgr,"localemgr",LocaleMgr_functions,NULL,_wrap_propget_LocaleMgr,_wrap_propset_LocaleMgr);
+if (! (ptr_ce_swig_LocaleMgr=zend_register_internal_class_ex(&ce_swig_LocaleMgr,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class LocaleMgr");
+
+// Define class SWFilterMgr
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWFilterMgr,"swfiltermgr",SWFilterMgr_functions,NULL,_wrap_propget_SWFilterMgr,_wrap_propset_SWFilterMgr);
+if (! (ptr_ce_swig_SWFilterMgr=zend_register_internal_class_ex(&ce_swig_SWFilterMgr,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWFilterMgr");
+
+// Define class SWText
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWText,"swtext",SWText_functions,NULL,_wrap_propget_SWText,_wrap_propset_SWText);
+if (! (ptr_ce_swig_SWText=zend_register_internal_class_ex(&ce_swig_SWText,&ce_swig_SWModule,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWText");
+
+// Define class RawText
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_RawText,"rawtext",RawText_functions,NULL,_wrap_propget_RawText,_wrap_propset_RawText);
+if (! (ptr_ce_swig_RawText=zend_register_internal_class_ex(&ce_swig_RawText,&ce_swig_SWText,NULL))) zend_error(E_ERROR,"Error registering wrapper for class RawText");
+
+// Define class zText
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_zText,"ztext",zText_functions,NULL,_wrap_propget_zText,_wrap_propset_zText);
+if (! (ptr_ce_swig_zText=zend_register_internal_class_ex(&ce_swig_zText,&ce_swig_SWText,NULL))) zend_error(E_ERROR,"Error registering wrapper for class zText");
+
+// Define class SWCom
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWCom,"swcom",SWCom_functions,NULL,_wrap_propget_SWCom,_wrap_propset_SWCom);
+if (! (ptr_ce_swig_SWCom=zend_register_internal_class_ex(&ce_swig_SWCom,&ce_swig_SWModule,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWCom");
+
+// Define class RawCom
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_RawCom,"rawcom",RawCom_functions,NULL,_wrap_propget_RawCom,_wrap_propset_RawCom);
+if (! (ptr_ce_swig_RawCom=zend_register_internal_class_ex(&ce_swig_RawCom,&ce_swig_SWCom,NULL))) zend_error(E_ERROR,"Error registering wrapper for class RawCom");
+
+// Define class zCom
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_zCom,"zcom",zCom_functions,NULL,_wrap_propget_zCom,_wrap_propset_zCom);
+if (! (ptr_ce_swig_zCom=zend_register_internal_class_ex(&ce_swig_zCom,&ce_swig_SWCom,NULL))) zend_error(E_ERROR,"Error registering wrapper for class zCom");
+
+// Define class SWGenBook
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWGenBook,"swgenbook",SWGenBook_functions,NULL,_wrap_propget_SWGenBook,_wrap_propset_SWGenBook);
+if (! (ptr_ce_swig_SWGenBook=zend_register_internal_class_ex(&ce_swig_SWGenBook,&ce_swig_SWModule,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWGenBook");
+
+// Define class RawGenBook
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_RawGenBook,"rawgenbook",RawGenBook_functions,NULL,_wrap_propget_RawGenBook,_wrap_propset_RawGenBook);
+if (! (ptr_ce_swig_RawGenBook=zend_register_internal_class_ex(&ce_swig_RawGenBook,&ce_swig_SWGenBook,NULL))) zend_error(E_ERROR,"Error registering wrapper for class RawGenBook");
+
+// Define class SWLD
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWLD,"swld",SWLD_functions,NULL,_wrap_propget_SWLD,_wrap_propset_SWLD);
+if (! (ptr_ce_swig_SWLD=zend_register_internal_class_ex(&ce_swig_SWLD,&ce_swig_SWModule,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWLD");
+
+// Define class RawLD
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_RawLD,"rawld",RawLD_functions,NULL,_wrap_propget_RawLD,_wrap_propset_RawLD);
+if (! (ptr_ce_swig_RawLD=zend_register_internal_class_ex(&ce_swig_RawLD,&ce_swig_SWLD,NULL))) zend_error(E_ERROR,"Error registering wrapper for class RawLD");
+
+// Define class RawLD4
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_RawLD4,"rawld4",RawLD4_functions,NULL,_wrap_propget_RawLD4,_wrap_propset_RawLD4);
+if (! (ptr_ce_swig_RawLD4=zend_register_internal_class_ex(&ce_swig_RawLD4,&ce_swig_SWLD,NULL))) zend_error(E_ERROR,"Error registering wrapper for class RawLD4");
+
+// Define class zLD
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_zLD,"zld",zLD_functions,NULL,_wrap_propget_zLD,_wrap_propset_zLD);
+if (! (ptr_ce_swig_zLD=zend_register_internal_class_ex(&ce_swig_zLD,&ce_swig_SWLD,NULL))) zend_error(E_ERROR,"Error registering wrapper for class zLD");
+
+// Define class SWCompress
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SWCompress,"swcompress",SWCompress_functions,NULL,_wrap_propget_SWCompress,_wrap_propset_SWCompress);
+if (! (ptr_ce_swig_SWCompress=zend_register_internal_class_ex(&ce_swig_SWCompress,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SWCompress");
+
+// Define class LZSSCompress
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_LZSSCompress,"lzsscompress",LZSSCompress_functions,NULL,_wrap_propget_LZSSCompress,_wrap_propset_LZSSCompress);
+if (! (ptr_ce_swig_LZSSCompress=zend_register_internal_class_ex(&ce_swig_LZSSCompress,&ce_swig_SWCompress,NULL))) zend_error(E_ERROR,"Error registering wrapper for class LZSSCompress");
+
+// Define class ZipCompress
+INIT_OVERLOADED_CLASS_ENTRY(ce_swig_ZipCompress,"zipcompress",ZipCompress_functions,NULL,_wrap_propget_ZipCompress,_wrap_propset_ZipCompress);
+if (! (ptr_ce_swig_ZipCompress=zend_register_internal_class_ex(&ce_swig_ZipCompress,&ce_swig_SWCompress,NULL))) zend_error(E_ERROR,"Error registering wrapper for class ZipCompress");
+
+
+// Register resource destructors for pointer types
+le_swig__p_SWLocale=zend_register_list_destructors_ex(_wrap_destroy_p_SWLocale,NULL,(char *)(SWIGTYPE_p_SWLocale->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWLocale,&le_swig__p_SWLocale);
+le_swig__p_SWMgr=zend_register_list_destructors_ex(_wrap_destroy_p_SWMgr,NULL,(char *)(SWIGTYPE_p_SWMgr->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWMgr,&le_swig__p_SWMgr);
+le_swig__p_SWCom=zend_register_list_destructors_ex(_wrap_destroy_p_SWCom,NULL,(char *)(SWIGTYPE_p_SWCom->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWCom,&le_swig__p_SWCom);
+le_swig__p_RawLD4=zend_register_list_destructors_ex(_wrap_destroy_p_RawLD4,NULL,(char *)(SWIGTYPE_p_RawLD4->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_RawLD4,&le_swig__p_RawLD4);
+le_swig__p_ListKey=zend_register_list_destructors_ex(_wrap_destroy_p_ListKey,NULL,(char *)(SWIGTYPE_p_ListKey->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_ListKey,&le_swig__p_ListKey);
+le_swig__p_SWKey=zend_register_list_destructors_ex(_wrap_destroy_p_SWKey,NULL,(char *)(SWIGTYPE_p_SWKey->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWKey,&le_swig__p_SWKey);
+le_swig__p_ConfigEntMap=zend_register_list_destructors_ex(_wrap_destroy_p_ConfigEntMap,NULL,(char *)(SWIGTYPE_p_ConfigEntMap->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_ConfigEntMap,&le_swig__p_ConfigEntMap);
+le_swig__p_p_char=zend_register_list_destructors_ex(_wrap_destroy_p_p_char,NULL,(char *)(SWIGTYPE_p_p_char->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_p_char,&le_swig__p_p_char);
+le_swig__p_RawLD=zend_register_list_destructors_ex(_wrap_destroy_p_RawLD,NULL,(char *)(SWIGTYPE_p_RawLD->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_RawLD,&le_swig__p_RawLD);
+le_swig__p_TreeKey=zend_register_list_destructors_ex(_wrap_destroy_p_TreeKey,NULL,(char *)(SWIGTYPE_p_TreeKey->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_TreeKey,&le_swig__p_TreeKey);
+le_swig__p_bool=zend_register_list_destructors_ex(_wrap_destroy_p_bool,NULL,(char *)(SWIGTYPE_p_bool->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_bool,&le_swig__p_bool);
+le_swig__p_void=zend_register_list_destructors_ex(_wrap_destroy_p_void,NULL,(char *)(SWIGTYPE_p_void->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_void,&le_swig__p_void);
+le_swig__p_SWFilterMgr=zend_register_list_destructors_ex(_wrap_destroy_p_SWFilterMgr,NULL,(char *)(SWIGTYPE_p_SWFilterMgr->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWFilterMgr,&le_swig__p_SWFilterMgr);
+le_swig__p_SWLD=zend_register_list_destructors_ex(_wrap_destroy_p_SWLD,NULL,(char *)(SWIGTYPE_p_SWLD->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWLD,&le_swig__p_SWLD);
+le_swig__p_SWTextDirection=zend_register_list_destructors_ex(_wrap_destroy_p_SWTextDirection,NULL,(char *)(SWIGTYPE_p_SWTextDirection->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWTextDirection,&le_swig__p_SWTextDirection);
+le_swig__p_RawText=zend_register_list_destructors_ex(_wrap_destroy_p_RawText,NULL,(char *)(SWIGTYPE_p_RawText->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_RawText,&le_swig__p_RawText);
+le_swig__p_f_char_p_void__void=zend_register_list_destructors_ex(_wrap_destroy_p_f_char_p_void__void,NULL,(char *)(SWIGTYPE_p_f_char_p_void__void->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_f_char_p_void__void,&le_swig__p_f_char_p_void__void);
+le_swig__p_VerseKey=zend_register_list_destructors_ex(_wrap_destroy_p_VerseKey,NULL,(char *)(SWIGTYPE_p_VerseKey->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_VerseKey,&le_swig__p_VerseKey);
+le_swig__p_ModMap=zend_register_list_destructors_ex(_wrap_destroy_p_ModMap,NULL,(char *)(SWIGTYPE_p_ModMap->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_ModMap,&le_swig__p_ModMap);
+le_swig__p_string=zend_register_list_destructors_ex(_wrap_destroy_p_string,NULL,(char *)(SWIGTYPE_p_string->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_string,&le_swig__p_string);
+le_swig__p_SectionMap=zend_register_list_destructors_ex(_wrap_destroy_p_SectionMap,NULL,(char *)(SWIGTYPE_p_SectionMap->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SectionMap,&le_swig__p_SectionMap);
+le_swig__p_SWDisplay=zend_register_list_destructors_ex(_wrap_destroy_p_SWDisplay,NULL,(char *)(SWIGTYPE_p_SWDisplay->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWDisplay,&le_swig__p_SWDisplay);
+le_swig__p_AttributeTypeList=zend_register_list_destructors_ex(_wrap_destroy_p_AttributeTypeList,NULL,(char *)(SWIGTYPE_p_AttributeTypeList->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_AttributeTypeList,&le_swig__p_AttributeTypeList);
+le_swig__p_SWText=zend_register_list_destructors_ex(_wrap_destroy_p_SWText,NULL,(char *)(SWIGTYPE_p_SWText->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWText,&le_swig__p_SWText);
+le_swig__p_SWCompress=zend_register_list_destructors_ex(_wrap_destroy_p_SWCompress,NULL,(char *)(SWIGTYPE_p_SWCompress->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWCompress,&le_swig__p_SWCompress);
+le_swig__p_LZSSCompress=zend_register_list_destructors_ex(_wrap_destroy_p_LZSSCompress,NULL,(char *)(SWIGTYPE_p_LZSSCompress->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_LZSSCompress,&le_swig__p_LZSSCompress);
+le_swig__p_ZipCompress=zend_register_list_destructors_ex(_wrap_destroy_p_ZipCompress,NULL,(char *)(SWIGTYPE_p_ZipCompress->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_ZipCompress,&le_swig__p_ZipCompress);
+le_swig__p_SW_POSITION=zend_register_list_destructors_ex(_wrap_destroy_p_SW_POSITION,NULL,(char *)(SWIGTYPE_p_SW_POSITION->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SW_POSITION,&le_swig__p_SW_POSITION);
+le_swig__p_SWModule=zend_register_list_destructors_ex(_wrap_destroy_p_SWModule,NULL,(char *)(SWIGTYPE_p_SWModule->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWModule,&le_swig__p_SWModule);
+le_swig__p_zLD=zend_register_list_destructors_ex(_wrap_destroy_p_zLD,NULL,(char *)(SWIGTYPE_p_zLD->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_zLD,&le_swig__p_zLD);
+le_swig__p_SWGenBook=zend_register_list_destructors_ex(_wrap_destroy_p_SWGenBook,NULL,(char *)(SWIGTYPE_p_SWGenBook->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWGenBook,&le_swig__p_SWGenBook);
+le_swig__p_RawGenBook=zend_register_list_destructors_ex(_wrap_destroy_p_RawGenBook,NULL,(char *)(SWIGTYPE_p_RawGenBook->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_RawGenBook,&le_swig__p_RawGenBook);
+le_swig__p_SWConfig=zend_register_list_destructors_ex(_wrap_destroy_p_SWConfig,NULL,(char *)(SWIGTYPE_p_SWConfig->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWConfig,&le_swig__p_SWConfig);
+le_swig__p_LocaleMgr=zend_register_list_destructors_ex(_wrap_destroy_p_LocaleMgr,NULL,(char *)(SWIGTYPE_p_LocaleMgr->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_LocaleMgr,&le_swig__p_LocaleMgr);
+le_swig__p_int=zend_register_list_destructors_ex(_wrap_destroy_p_int,NULL,(char *)(SWIGTYPE_p_int->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_int,&le_swig__p_int);
+le_swig__p_SWTextMarkup=zend_register_list_destructors_ex(_wrap_destroy_p_SWTextMarkup,NULL,(char *)(SWIGTYPE_p_SWTextMarkup->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWTextMarkup,&le_swig__p_SWTextMarkup);
+le_swig__p_OptionsList=zend_register_list_destructors_ex(_wrap_destroy_p_OptionsList,NULL,(char *)(SWIGTYPE_p_OptionsList->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_OptionsList,&le_swig__p_OptionsList);
+le_swig__p_listTstring_t=zend_register_list_destructors_ex(_wrap_destroy_p_listTstring_t,NULL,(char *)(SWIGTYPE_p_listTstring_t->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_listTstring_t,&le_swig__p_listTstring_t);
+le_swig__p_zText=zend_register_list_destructors_ex(_wrap_destroy_p_zText,NULL,(char *)(SWIGTYPE_p_zText->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_zText,&le_swig__p_zText);
+le_swig__p_SWTextEncoding=zend_register_list_destructors_ex(_wrap_destroy_p_SWTextEncoding,NULL,(char *)(SWIGTYPE_p_SWTextEncoding->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_SWTextEncoding,&le_swig__p_SWTextEncoding);
+le_swig__p_unsigned_long=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_long,NULL,(char *)(SWIGTYPE_p_unsigned_long->name),module_number);
+SWIG_TypeClientData(SWIGTYPE_p_unsigned_long,&le_swig__p_unsigned_long);
+CG(active_class_entry) = NULL;
+/* end oinit subsection */
+
+ return SUCCESS;
+}
+PHP_RINIT_FUNCTION(Sword)
+{
+/* cinit subsection */
+/* end cinit subsection */
+
+/* vinit subsection */
+/* end vinit subsection */
+
+ return SUCCESS;
+}
+PHP_RSHUTDOWN_FUNCTION(Sword)
+{
+ return SUCCESS;
+}
+PHP_MINFO_FUNCTION(Sword)
+{
+}
+/* end init section */
diff --git a/bindings/swig/php/Sword.php b/bindings/swig/php/Sword.php
new file mode 100644
index 0000000..c7fdc23
--- /dev/null
+++ b/bindings/swig/php/Sword.php
@@ -0,0 +1,24 @@
+<?php
+
+/* ----------------------------------------------------------------------------
+ * 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.
+ * ----------------------------------------------------------------------------- */
+
+global $SWORD_LOADED__;
+if ($SWORD_LOADED__) return;
+$SWORD_LOADED__ = true;
+
+/* if our extension has not been loaded, do what we can */
+if (!extension_loaded("php_Sword")) {
+ if (!dl("php_Sword.so")) return;
+}
+
+
+
+?>
diff --git a/bindings/swig/php/php_Sword.h b/bindings/swig/php/php_Sword.h
new file mode 100644
index 0000000..cf99647
--- /dev/null
+++ b/bindings/swig/php/php_Sword.h
@@ -0,0 +1,261 @@
+/* ----------------------------------------------------------------------------
+ * 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.
+ * ----------------------------------------------------------------------------- */
+
+/*
+ +----------------------------------------------------------------------+
+ | 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: |
+ | |
+ +----------------------------------------------------------------------+
+ */
+
+
+#ifndef PHP_SWORD_H
+#define PHP_SWORD_H
+
+extern zend_module_entry Sword_module_entry;
+#define phpext_Sword_ptr &Sword_module_entry
+
+#ifdef PHP_WIN32
+# define PHP_SWORD_API __declspec(dllexport)
+#else
+# define PHP_SWORD_API
+#endif
+
+PHP_MINIT_FUNCTION(Sword);
+PHP_MSHUTDOWN_FUNCTION(Sword);
+PHP_RINIT_FUNCTION(Sword);
+PHP_RSHUTDOWN_FUNCTION(Sword);
+PHP_MINFO_FUNCTION(Sword);
+
+ZEND_NAMED_FUNCTION(_wrap_new_SWConfig);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWConfig);
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_Load);
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_Save);
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_set);
+ZEND_NAMED_FUNCTION(_wrap_SWConfig_get);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_findConfig);
+ZEND_NAMED_FUNCTION(_wrap_new_SWMgr);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWMgr);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_Load);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_setGlobalOption);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOption);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptionTip);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptions);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_getGlobalOptionValues);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_setCipherKey);
+ZEND_NAMED_FUNCTION(_wrap_SWMgr_module);
+ZEND_NAMED_FUNCTION(_wrap_new_SWModule);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Error);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isUnicode);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getConfig);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getConfigEntry);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_SetKey);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Key);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_CreateKey);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_KeyText);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Display);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_nullPercent);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Search);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_createSearchFramework);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_hasSearchFramework);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isSearchOptimallySupported);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_next);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_prev);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_inc);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_dec);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setPosition);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_top);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_bottom);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_text);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_StripText);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getRawEntry);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setSkipConsecutiveLinks);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getSkipConsecutiveLinks);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_getEntryAttributes);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_processEntryAttributes);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isProcessEntryAttributes);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Name);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Description);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Type);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Direction);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Encoding);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Markup);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_Lang);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_isWritable);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_createModule);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_setEntry);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_deleteEntry);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_write);
+ZEND_NAMED_FUNCTION(_wrap_SWModule_writeLink);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWModule);
+ZEND_NAMED_FUNCTION(_wrap_new_SW_POSITION);
+ZEND_NAMED_FUNCTION(_wrap_delete_SW_POSITION);
+ZEND_NAMED_FUNCTION(_wrap_new_SWKey);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_clone);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Persist);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setPersist);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Error);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setText);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_getText);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_getShortText);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_compare);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_equals);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_decrement);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_increment);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Traversable);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_Index);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_next);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_prev);
+ZEND_NAMED_FUNCTION(_wrap_SWKey_setKey);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWKey);
+ZEND_NAMED_FUNCTION(_wrap_new_VerseKey);
+ZEND_NAMED_FUNCTION(_wrap_delete_VerseKey);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_clone);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_LowerBound);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_UpperBound);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_ClearBounds);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_decrement);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_increment);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Traversable);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getBookName);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getBookAbbrev);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Testament);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Book);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Chapter);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Verse);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Normalize);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_AutoNormalize);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_Headings);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getOSISRef);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_compare);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey__compare);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_setLocale);
+ZEND_NAMED_FUNCTION(_wrap_VerseKey_getLocale);
+ZEND_NAMED_FUNCTION(_wrap_new_ListKey);
+ZEND_NAMED_FUNCTION(_wrap_copy_ListKey);
+ZEND_NAMED_FUNCTION(_wrap_delete_ListKey);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_clone);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_ClearList);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Count);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Remove);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_SetToElement);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_GetElement);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_add);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_copyFrom);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_setPosition);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_decrement);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_increment);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Traversable);
+ZEND_NAMED_FUNCTION(_wrap_ListKey_Index);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getLocalName);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setLocalName);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getUserData);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setUserData);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getFullName);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_root);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_parent);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_firstChild);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_nextSibling);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_previousSibling);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_hasChildren);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_append);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_appendChild);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_insertBefore);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_remove);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setOffset);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_getOffset);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_setPosition);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_Traversable);
+ZEND_NAMED_FUNCTION(_wrap_TreeKey_Index);
+ZEND_NAMED_FUNCTION(_wrap_new_TreeKey);
+ZEND_NAMED_FUNCTION(_wrap_new_TreeKeyIdx);
+ZEND_NAMED_FUNCTION(_wrap_new_LocaleMgr);
+ZEND_NAMED_FUNCTION(_wrap_delete_LocaleMgr);
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_getLocale);
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_getAvailableLocales);
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_getDefaultLocaleName);
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_setDefaultLocaleName);
+ZEND_NAMED_FUNCTION(_wrap_LocaleMgr_systemLocaleMgr);
+ZEND_NAMED_FUNCTION(_wrap_new_SWFilterMgr);
+ZEND_NAMED_FUNCTION(_wrap_new_SWText);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWText);
+ZEND_NAMED_FUNCTION(_wrap_new_RawText);
+ZEND_NAMED_FUNCTION(_wrap_RawText_createModule);
+ZEND_NAMED_FUNCTION(_wrap_delete_RawText);
+ZEND_NAMED_FUNCTION(_wrap_new_zText);
+ZEND_NAMED_FUNCTION(_wrap_delete_zText);
+ZEND_NAMED_FUNCTION(_wrap_zText_createModule);
+ZEND_NAMED_FUNCTION(_wrap_new_SWCom);
+ZEND_NAMED_FUNCTION(_wrap_new_RawCom);
+ZEND_NAMED_FUNCTION(_wrap_new_zCom);
+ZEND_NAMED_FUNCTION(_wrap_new_SWGenBook);
+ZEND_NAMED_FUNCTION(_wrap_new_RawGenBook);
+ZEND_NAMED_FUNCTION(_wrap_delete_RawGenBook);
+ZEND_NAMED_FUNCTION(_wrap_RawGenBook_createModule);
+ZEND_NAMED_FUNCTION(_wrap_new_SWLD);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWLD);
+ZEND_NAMED_FUNCTION(_wrap_new_RawLD);
+ZEND_NAMED_FUNCTION(_wrap_delete_RawLD);
+ZEND_NAMED_FUNCTION(_wrap_RawLD_createModule);
+ZEND_NAMED_FUNCTION(_wrap_new_RawLD4);
+ZEND_NAMED_FUNCTION(_wrap_delete_RawLD4);
+ZEND_NAMED_FUNCTION(_wrap_RawLD4_createModule);
+ZEND_NAMED_FUNCTION(_wrap_new_zLD);
+ZEND_NAMED_FUNCTION(_wrap_delete_zLD);
+ZEND_NAMED_FUNCTION(_wrap_zLD_createModule);
+ZEND_NAMED_FUNCTION(_wrap_new_SWCompress);
+ZEND_NAMED_FUNCTION(_wrap_delete_SWCompress);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_Buf);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_zBuf);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_GetChars);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_SendChars);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_Encode);
+ZEND_NAMED_FUNCTION(_wrap_SWCompress_Decode);
+ZEND_NAMED_FUNCTION(_wrap_new_LZSSCompress);
+ZEND_NAMED_FUNCTION(_wrap_delete_LZSSCompress);
+ZEND_NAMED_FUNCTION(_wrap_LZSSCompress_Encode);
+ZEND_NAMED_FUNCTION(_wrap_LZSSCompress_Decode);
+ZEND_NAMED_FUNCTION(_wrap_new_ZipCompress);
+ZEND_NAMED_FUNCTION(_wrap_delete_ZipCompress);
+ZEND_NAMED_FUNCTION(_wrap_ZipCompress_Encode);
+ZEND_NAMED_FUNCTION(_wrap_ZipCompress_Decode);
+/*If you declare any globals in php_Sword.h uncomment this:
+ZEND_BEGIN_MODULE_GLOBALS(Sword)
+ZEND_END_MODULE_GLOBALS(Sword)
+*/
+#ifdef ZTS
+#define SWORD_D zend_Sword_globals *Sword_globals
+#define SWORD_DC , SWORD_D
+#define SWORD_C Sword_globals
+#define SWORD_CC , SWORD_C
+#define SWORD_SG(v) (Sword_globals->v)
+#define SWORD_FETCH() zend_Sword_globals *Sword_globals = ts_resource(Sword_globals_id)
+#else
+#define SWORD_D
+#define SWORD_DC
+#define SWORD_C
+#define SWORD_CC
+#define SWORD_SG(v) (Sword_globals.v)
+#define SWORD_FETCH()
+#endif
+
+#endif /* PHP_SWORD_H */
diff --git a/bindings/swig/php4.m4 b/bindings/swig/php4.m4
new file mode 100644
index 0000000..d184ec2
--- /dev/null
+++ b/bindings/swig/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/python.m4 b/bindings/swig/python.m4
new file mode 100644
index 0000000..a047ea4
--- /dev/null
+++ b/bindings/swig/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/python/README.txt b/bindings/swig/python/README.txt
new file mode 100644
index 0000000..72eb6a1
--- /dev/null
+++ b/bindings/swig/python/README.txt
@@ -0,0 +1 @@
+welcome to the python binding for sword
diff --git a/bindings/swig/python/Sword.cxx b/bindings/swig/python/Sword.cxx
new file mode 100644
index 0000000..d738380
--- /dev/null
+++ b/bindings/swig/python/Sword.cxx
@@ -0,0 +1,5062 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.14u-20020903-2331
+ *
+ * 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.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGPYTHON
+
+#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
+
+
+#include "Python.h"
+
+/***********************************************************************
+ * 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
+
+/***********************************************************************
+ * python.swg
+ *
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
+ *
+ * Author : David Beazley (beazley@cs.uchicago.edu)
+ ************************************************************************/
+
+#include "Python.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SWIG_PY_INT 1
+#define SWIG_PY_FLOAT 2
+#define SWIG_PY_STRING 3
+#define SWIG_PY_POINTER 4
+#define SWIG_PY_BINARY 5
+
+/* Flags for pointer conversion */
+
+#define SWIG_POINTER_EXCEPTION 0x1
+#define SWIG_POINTER_DISOWN 0x2
+
+/* Constant information structure */
+typedef struct swig_const_info {
+ int type;
+ char *name;
+ long lvalue;
+ double dvalue;
+ void *pvalue;
+ swig_type_info **ptype;
+} swig_const_info;
+
+#ifdef SWIG_NOINCLUDE
+
+SWIGEXPORT(PyObject *) SWIG_newvarlink();
+SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
+SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
+SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
+SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
+SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
+SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
+SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
+SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
+#else
+
+/* -----------------------------------------------------------------------------
+ * global variable support code.
+ * ----------------------------------------------------------------------------- */
+
+typedef struct swig_globalvar {
+ char *name; /* Name of global variable */
+ PyObject *(*get_attr)(void); /* Return the current value */
+ int (*set_attr)(PyObject *); /* Set the value */
+ struct swig_globalvar *next;
+} swig_globalvar;
+
+typedef struct swig_varlinkobject {
+ PyObject_HEAD
+ swig_globalvar *vars;
+} swig_varlinkobject;
+
+static PyObject *
+swig_varlink_repr(swig_varlinkobject *v) {
+ v = v;
+ return PyString_FromString("<Global variables>");
+}
+
+static int
+swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
+ swig_globalvar *var;
+ flags = flags;
+ fprintf(fp,"Global variables { ");
+ for (var = v->vars; var; var=var->next) {
+ fprintf(fp,"%s", var->name);
+ if (var->next) fprintf(fp,", ");
+ }
+ fprintf(fp," }\n");
+ return 0;
+}
+
+static PyObject *
+swig_varlink_getattr(swig_varlinkobject *v, char *n) {
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ return (*var->get_attr)();
+ }
+ var = var->next;
+ }
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ return NULL;
+}
+
+static int
+swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ return (*var->set_attr)(p);
+ }
+ var = var->next;
+ }
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ return 1;
+}
+
+statichere PyTypeObject varlinktype = {
+ PyObject_HEAD_INIT(0)
+ 0,
+ (char *)"swigvarlink", /* Type name */
+ sizeof(swig_varlinkobject), /* Basic size */
+ 0, /* Itemsize */
+ 0, /* Deallocator */
+ (printfunc) swig_varlink_print, /* Print */
+ (getattrfunc) swig_varlink_getattr, /* get attr */
+ (setattrfunc) swig_varlink_setattr, /* Set attr */
+ 0, /* tp_compare */
+ (reprfunc) swig_varlink_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_mapping*/
+ 0, /* tp_hash */
+};
+
+/* Create a variable linking object for use later */
+SWIGRUNTIME(PyObject *)
+SWIG_newvarlink(void) {
+ swig_varlinkobject *result = 0;
+ result = PyMem_NEW(swig_varlinkobject,1);
+ varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
+ result->ob_type = &varlinktype;
+ result->vars = 0;
+ result->ob_refcnt = 0;
+ Py_XINCREF((PyObject *) result);
+ return ((PyObject*) result);
+}
+
+SWIGRUNTIME(void)
+SWIG_addvarlink(PyObject *p, char *name,
+ PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
+ swig_varlinkobject *v;
+ swig_globalvar *gv;
+ v= (swig_varlinkobject *) p;
+ gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
+ gv->name = (char *) malloc(strlen(name)+1);
+ strcpy(gv->name,name);
+ gv->get_attr = get_attr;
+ gv->set_attr = set_attr;
+ gv->next = v->vars;
+ v->vars = gv;
+}
+
+/* Pack binary data into a string */
+SWIGRUNTIME(char *)
+SWIG_PackData(char *c, void *ptr, int sz) {
+ static char hex[17] = "0123456789abcdef";
+ int i;
+ unsigned char *u = (unsigned char *) ptr;
+ register unsigned char uu;
+ for (i = 0; i < sz; i++,u++) {
+ uu = *u;
+ *(c++) = hex[(uu & 0xf0) >> 4];
+ *(c++) = hex[uu & 0xf];
+ }
+ return c;
+}
+
+/* Unpack binary data from a string */
+SWIGRUNTIME(char *)
+SWIG_UnpackData(char *c, void *ptr, int sz) {
+ register unsigned char uu = 0;
+ register int d;
+ unsigned char *u = (unsigned char *) ptr;
+ int i;
+ for (i = 0; i < sz; i++, u++) {
+ d = *(c++);
+ if ((d >= '0') && (d <= '9'))
+ uu = ((d - '0') << 4);
+ else if ((d >= 'a') && (d <= 'f'))
+ uu = ((d - ('a'-10)) << 4);
+ d = *(c++);
+ if ((d >= '0') && (d <= '9'))
+ uu |= (d - '0');
+ else if ((d >= 'a') && (d <= 'f'))
+ uu |= (d - ('a'-10));
+ *u = uu;
+ }
+ return c;
+}
+
+/* Convert a pointer value */
+SWIGRUNTIME(int)
+SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
+ swig_type_info *tc;
+ char *c;
+ static PyObject *SWIG_this = 0;
+ int newref = 0;
+ PyObject *pyobj = 0;
+
+ if (!obj) return 0;
+ if (obj == Py_None) {
+ *ptr = 0;
+ return 0;
+ }
+#ifdef SWIG_COBJECT_TYPES
+ if (!(PyCObject_Check(obj))) {
+ if (!SWIG_this)
+ SWIG_this = PyString_FromString("this");
+ pyobj = obj;
+ obj = PyObject_GetAttr(obj,SWIG_this);
+ newref = 1;
+ if (!obj) goto type_error;
+ if (!PyCObject_Check(obj)) {
+ Py_DECREF(obj);
+ goto type_error;
+ }
+ }
+ *ptr = PyCObject_AsVoidPtr(obj);
+ c = (char *) PyCObject_GetDesc(obj);
+ if (newref) Py_DECREF(obj);
+ goto cobject;
+#else
+ if (!(PyString_Check(obj))) {
+ if (!SWIG_this)
+ SWIG_this = PyString_FromString("this");
+ pyobj = obj;
+ obj = PyObject_GetAttr(obj,SWIG_this);
+ newref = 1;
+ if (!obj) goto type_error;
+ if (!PyString_Check(obj)) {
+ Py_DECREF(obj);
+ goto type_error;
+ }
+ }
+ c = PyString_AsString(obj);
+ /* Pointer values must start with leading underscore */
+ if (*c != '_') {
+ *ptr = (void *) 0;
+ if (strcmp(c,"NULL") == 0) {
+ if (newref) { Py_DECREF(obj); }
+ return 0;
+ } else {
+ if (newref) { Py_DECREF(obj); }
+ goto type_error;
+ }
+ }
+ c++;
+ c = SWIG_UnpackData(c,ptr,sizeof(void *));
+ if (newref) { Py_DECREF(obj); }
+#endif
+
+#ifdef SWIG_COBJECT_TYPES
+cobject:
+#endif
+
+ if (ty) {
+ tc = SWIG_TypeCheck(c,ty);
+ if (!tc) goto type_error;
+ *ptr = SWIG_TypeCast(tc,(void*) *ptr);
+ }
+
+ if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
+ PyObject *zero = PyInt_FromLong(0);
+ PyObject_SetAttrString(pyobj,"thisown",zero);
+ Py_DECREF(zero);
+ }
+ return 0;
+
+type_error:
+ if (flags & SWIG_POINTER_EXCEPTION) {
+ if (ty) {
+ char *temp = (char *) malloc(64+strlen(ty->name));
+ sprintf(temp,"Type error. Expected %s", ty->name);
+ PyErr_SetString(PyExc_TypeError, temp);
+ free((char *) temp);
+ } else {
+ PyErr_SetString(PyExc_TypeError,"Expected a pointer");
+ }
+ }
+ return -1;
+}
+
+/* Convert a packed value value */
+SWIGRUNTIME(int)
+SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
+ swig_type_info *tc;
+ char *c;
+
+ if ((!obj) || (!PyString_Check(obj))) goto type_error;
+ c = PyString_AsString(obj);
+ /* Pointer values must start with leading underscore */
+ if (*c != '_') goto type_error;
+ c++;
+ c = SWIG_UnpackData(c,ptr,sz);
+ if (ty) {
+ tc = SWIG_TypeCheck(c,ty);
+ if (!tc) goto type_error;
+ }
+ return 0;
+
+type_error:
+
+ if (flags) {
+ if (ty) {
+ char *temp = (char *) malloc(64+strlen(ty->name));
+ sprintf(temp,"Type error. Expected %s", ty->name);
+ PyErr_SetString(PyExc_TypeError, temp);
+ free((char *) temp);
+ } else {
+ PyErr_SetString(PyExc_TypeError,"Expected a pointer");
+ }
+ }
+ return -1;
+}
+
+/* Create a new pointer object */
+SWIGRUNTIME(PyObject *)
+SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
+ PyObject *robj;
+ if (!ptr) {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+#ifdef SWIG_COBJECT_TYPES
+ robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
+#else
+ {
+ char result[1024];
+ char *r = result;
+ *(r++) = '_';
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
+ strcpy(r,type->name);
+ robj = PyString_FromString(result);
+ }
+#endif
+ if (!robj || (robj == Py_None)) return robj;
+ if (type->clientdata) {
+ PyObject *inst;
+ PyObject *args = Py_BuildValue((char*)"(O)", robj);
+ Py_DECREF(robj);
+ inst = PyObject_CallObject((PyObject *) type->clientdata, args);
+ Py_DECREF(args);
+ if (inst) {
+ if (own) {
+ PyObject *n = PyInt_FromLong(1);
+ PyObject_SetAttrString(inst,(char*)"thisown",n);
+ Py_DECREF(n);
+ }
+ robj = inst;
+ }
+ }
+ return robj;
+}
+
+SWIGRUNTIME(PyObject *)
+SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
+ char result[1024];
+ char *r = result;
+ if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
+ *(r++) = '_';
+ r = SWIG_PackData(r,ptr,sz);
+ strcpy(r,type->name);
+ return PyString_FromString(result);
+}
+
+/* Install Constants */
+SWIGRUNTIME(void)
+SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
+ int i;
+ PyObject *obj;
+ for (i = 0; constants[i].type; i++) {
+ switch(constants[i].type) {
+ case SWIG_PY_INT:
+ obj = PyInt_FromLong(constants[i].lvalue);
+ break;
+ case SWIG_PY_FLOAT:
+ obj = PyFloat_FromDouble(constants[i].dvalue);
+ break;
+ case SWIG_PY_STRING:
+ obj = PyString_FromString((char *) constants[i].pvalue);
+ break;
+ case SWIG_PY_POINTER:
+ obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
+ break;
+ case SWIG_PY_BINARY:
+ obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
+ break;
+ default:
+ obj = 0;
+ break;
+ }
+ if (obj) {
+ PyDict_SetItemString(d,constants[i].name,obj);
+ Py_DECREF(obj);
+ }
+ }
+}
+
+#endif
+
+#ifdef __cplusplus
+}
+#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_TreeKey swig_types[9]
+#define SWIGTYPE_p_bool swig_types[10]
+#define SWIGTYPE_p_SWFilterMgr swig_types[11]
+#define SWIGTYPE_p_SWLD swig_types[12]
+#define SWIGTYPE_p_SWTextDirection swig_types[13]
+#define SWIGTYPE_p_RawText swig_types[14]
+#define SWIGTYPE_p_f_char_p_void__void swig_types[15]
+#define SWIGTYPE_p_VerseKey swig_types[16]
+#define SWIGTYPE_p_ModMap swig_types[17]
+#define SWIGTYPE_p_zCom 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_TreeKeyIdx swig_types[24]
+#define SWIGTYPE_p_SWCompress swig_types[25]
+#define SWIGTYPE_p_LZSSCompress swig_types[26]
+#define SWIGTYPE_p_ZipCompress swig_types[27]
+#define SWIGTYPE_p_SW_POSITION swig_types[28]
+#define SWIGTYPE_p_SWModule swig_types[29]
+#define SWIGTYPE_p_zLD swig_types[30]
+#define SWIGTYPE_p_SWGenBook swig_types[31]
+#define SWIGTYPE_p_RawCom swig_types[32]
+#define SWIGTYPE_p_RawGenBook swig_types[33]
+#define SWIGTYPE_p_SWConfig swig_types[34]
+#define SWIGTYPE_p_LocaleMgr swig_types[35]
+#define SWIGTYPE_p_int swig_types[36]
+#define SWIGTYPE_p_SWTextMarkup swig_types[37]
+#define SWIGTYPE_p_OptionsList swig_types[38]
+#define SWIGTYPE_p_listTstring_t swig_types[39]
+#define SWIGTYPE_p_zText swig_types[40]
+#define SWIGTYPE_p_SWTextEncoding swig_types[41]
+#define SWIGTYPE_p_unsigned_long swig_types[42]
+static swig_type_info *swig_types[44];
+
+/* -------- TYPES TABLE (END) -------- */
+
+
+/*-----------------------------------------------
+ @(target):= _Sword.so
+ ------------------------------------------------*/
+#define SWIG_init init_Sword
+
+#define SWIG_name "_Sword"
+
+#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
+
+
+static void _SWIG_exception(int code, char *msg) {
+ switch(code) {
+ case SWIG_MemoryError:
+ PyErr_SetString(PyExc_MemoryError,msg);
+ break;
+ case SWIG_IOError:
+ PyErr_SetString(PyExc_IOError,msg);
+ break;
+ case SWIG_RuntimeError:
+ PyErr_SetString(PyExc_RuntimeError,msg);
+ break;
+ case SWIG_IndexError:
+ PyErr_SetString(PyExc_IndexError,msg);
+ break;
+ case SWIG_TypeError:
+ PyErr_SetString(PyExc_TypeError,msg);
+ break;
+ case SWIG_DivisionByZero:
+ PyErr_SetString(PyExc_ZeroDivisionError,msg);
+ break;
+ case SWIG_OverflowError:
+ PyErr_SetString(PyExc_OverflowError,msg);
+ break;
+ case SWIG_SyntaxError:
+ PyErr_SetString(PyExc_SyntaxError,msg);
+ break;
+ case SWIG_ValueError:
+ PyErr_SetString(PyExc_ValueError,msg);
+ break;
+ case SWIG_SystemError:
+ PyErr_SetString(PyExc_SystemError,msg);
+ break;
+ default:
+ PyErr_SetString(PyExc_RuntimeError,msg);
+ break;
+ }
+}
+
+#define SWIG_exception(a,b) { _SWIG_exception(a,b); return NULL; }
+
+
+#include <string>
+
+
+#include <string>
+
+PyObject* SwigInt_FromBool(bool b) {
+ return PyInt_FromLong(b ? 1L : 0L);
+}
+double SwigNumber_Check(PyObject* o) {
+ return PyFloat_Check(o) || PyInt_Check(o);
+}
+double SwigNumber_AsDouble(PyObject* o) {
+ return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
+}
+PyObject* SwigString_FromString(const std::string& s) {
+ return PyString_FromString(s.c_str());
+}
+std::string SwigString_AsString(PyObject* o) {
+ return std::string(PyString_AsString(o));
+}
+
+
+#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();
+ }
+
+#include <swmgr.h>
+
+SWModule *SWMgr_module(SWMgr *self,char const *modulename){
+ return self->Modules[modulename];
+ }
+
+ #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;
+ }
+
+ #include "swkey.h"
+
+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);
+ }
+
+ #include "versekey.h"
+
+
+#include "listkey.h"
+
+char ListKey_SetToElement(ListKey *self,int element){
+ return self->SetToElement(element, SW_POSITION(((char)1)));
+ }
+
+#include "treekey.h"
+
+
+#include "treekeyidx.h"
+
+
+#include <localemgr.h>
+
+LocaleMgr *const LocaleMgr_systemLocaleMgr(){
+ return &(LocaleMgr::systemLocaleMgr);
+ }
+
+#include <swfiltermgr.h>
+
+
+ #include "swtext.h"
+
+
+ #include "rawtext.h"
+
+
+ #include "ztext.h"
+
+
+ #include "swcom.h"
+
+
+ #include "rawcom.h"
+
+
+ #include "zcom.h"
+
+
+ #include "swgenbook.h"
+
+
+ #include "rawgenbook.h"
+
+
+ #include "swld.h"
+
+
+ #include "rawld.h"
+
+
+ #include "rawld4.h"
+
+
+ #include "zld.h"
+
+
+ #include <swcomprs.h>
+
+
+ #include <lzsscomprs.h>
+
+
+ #include <zipcomprs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+static PyObject *_wrap_SWConfig_filename_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ string arg2 ;
+ string *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWConfig_filename_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_string,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ if (arg1) (arg1)->filename = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_filename_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ string result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWConfig_filename_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = ((arg1)->filename);
+
+ {
+ string * resultptr;
+ resultptr = new string((string &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_string, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_Sections_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ SectionMap arg2 ;
+ SectionMap *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWConfig_Sections_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_SectionMap,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ if (arg1) (arg1)->Sections = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_Sections_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ SectionMap result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWConfig_Sections_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = ((arg1)->Sections);
+
+ {
+ SectionMap * resultptr;
+ resultptr = new SectionMap((SectionMap &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_SectionMap, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_new_SWConfig(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ SWConfig *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:new_SWConfig",&arg1)) return NULL;
+ result = (SWConfig *)new SWConfig((char const *)arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWConfig, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWConfig(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWConfig",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_Load(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWConfig_Load",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Load();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_Save(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWConfig_Save",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Save();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *arg4 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Osss:SWConfig_set",&obj0,&arg2,&arg3,&arg4)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWConfig_set(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWConfig_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oss:SWConfig_get",&obj0,&arg2,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)SWConfig_get(arg1,(char const *)arg2,(char const *)arg3);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject * SWConfig_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWConfig, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_SWMgr_findConfig(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char **arg2 ;
+ char **arg3 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"sOO:SWMgr_findConfig",&arg1,&obj1,&obj2)) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWMgr::findConfig(arg1,arg2,arg3);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_config_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWMgr_config_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) return NULL;
+ if (arg1) (arg1)->config = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_config_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ SWConfig *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_config_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWConfig *) ((arg1)->config);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWConfig, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_sysconfig_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ SWConfig *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWMgr_sysconfig_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) return NULL;
+ if (arg1) (arg1)->sysconfig = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_sysconfig_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ SWConfig *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_sysconfig_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWConfig *) ((arg1)->sysconfig);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWConfig, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_Modules_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ ModMap arg2 ;
+ ModMap *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWMgr_Modules_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_ModMap,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ if (arg1) (arg1)->Modules = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_Modules_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ ModMap result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_Modules_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = ((arg1)->Modules);
+
+ {
+ ModMap * resultptr;
+ resultptr = new ModMap((ModMap &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_ModMap, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_prefixPath_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_prefixPath_set",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ {
+ if (arg1->prefixPath) delete [] arg1->prefixPath;
+ arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->prefixPath,arg2);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_prefixPath_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_prefixPath_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *) ((arg1)->prefixPath);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_configPath_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_configPath_set",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ {
+ if (arg1->configPath) delete [] arg1->configPath;
+ arg1->configPath = (char *) (new char[strlen(arg2)+1]);
+ strcpy((char *) arg1->configPath,arg2);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_configPath_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_configPath_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *) ((arg1)->configPath);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_new_SWMgr(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWConfig *arg1 = 0 ;
+ SWConfig *arg2 = 0 ;
+ bool arg3 = true ;
+ SWFilterMgr *arg4 = 0 ;
+ SWMgr *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"|OOOO:new_SWMgr",&obj0,&obj1,&obj2,&obj3)) return NULL;
+ if (obj0) {
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj1) {
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj2) {
+ arg3 = (bool) PyInt_AsLong(obj2);
+ if (PyErr_Occurred()) return NULL;
+ }
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_SWFilterMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ result = (SWMgr *)new SWMgr(arg1,arg2,arg3,arg4);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWMgr, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWMgr(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWMgr",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_Load(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ signed char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_Load",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (signed char)(arg1)->Load();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_setGlobalOption(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oss:SWMgr_setGlobalOption",&obj0,&arg2,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setGlobalOption((char const *)arg2,(char const *)arg3);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_getGlobalOption(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_getGlobalOption",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->getGlobalOption((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_getGlobalOptionTip(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_getGlobalOptionTip",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->getGlobalOptionTip((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_getGlobalOptions(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ OptionsList result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWMgr_getGlobalOptions",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (arg1)->getGlobalOptions();
+
+ {
+ OptionsList * resultptr;
+ resultptr = new OptionsList((OptionsList &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_OptionsList, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_getGlobalOptionValues(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ OptionsList result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_getGlobalOptionValues",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (arg1)->getGlobalOptionValues((char const *)arg2);
+
+ {
+ OptionsList * resultptr;
+ resultptr = new OptionsList((OptionsList &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_OptionsList, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_setCipherKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ char *arg3 ;
+ signed char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oss:SWMgr_setCipherKey",&obj0,&arg2,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (signed char)(arg1)->setCipherKey((char const *)arg2,(char const *)arg3);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWMgr_module(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWMgr *arg1 ;
+ char *arg2 ;
+ SWModule *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWMgr_module",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWModule *)SWMgr_module(arg1,(char const *)arg2);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWModule, 0);
+ return resultobj;
+}
+
+
+static PyObject * SWMgr_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWMgr, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_SWModule_terminateSearch_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_terminateSearch_set",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg2 = (bool) PyInt_AsLong(obj1);
+ if (PyErr_Occurred()) return NULL;
+ if (arg1) (arg1)->terminateSearch = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_terminateSearch_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_terminateSearch_get",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool) ((arg1)->terminateSearch);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_new_SWModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ 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;
+ SWTextEncoding *argp5 ;
+ SWTextDirection *argp6 ;
+ SWTextMarkup *argp7 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"|ssOsOOOs:new_SWModule",&arg1,&arg2,&obj2,&arg4,&obj4,&obj5,&obj6,&arg8)) return NULL;
+ if (obj2) {
+ if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ result = (SWModule *)new SWModule((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWModule, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Error(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_Error",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Error();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_isUnicode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_isUnicode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)((SWModule const *)arg1)->isUnicode();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_getConfig(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ ConfigEntMap *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_getConfig",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ ConfigEntMap const &_result_ref = ((SWModule const *)arg1)->getConfig();
+ result = (ConfigEntMap *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ConfigEntMap, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_getConfigEntry(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWModule_getConfigEntry",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((SWModule const *)arg1)->getConfigEntry((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_SetKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ char result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_SetKey",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->SetKey((SWKey const *)arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Key(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_Key",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWKey &_result_ref = ((SWModule const *)arg1)->Key();
+ result = (SWKey *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_CreateKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_CreateKey",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWKey *)(arg1)->CreateKey();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_KeyText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|s:SWModule_KeyText",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->KeyText((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Display(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_Display",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Display();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_nullPercent(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char arg1 ;
+ void *arg2 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"cO:SWModule_nullPercent",&arg1,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWModule::nullPercent(arg1,arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Search(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ 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;
+ PyObject * obj0 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+ PyObject * obj7 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os|iiOOOO:SWModule_Search",&obj0,&arg2,&arg3,&arg4,&obj4,&obj5,&obj6,&obj7)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_bool,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_f_char_p_void__void,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj7) {
+ if ((SWIG_ConvertPtr(obj7,(void **) &arg8, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ ListKey &_result_ref = (arg1)->Search((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+ result = (ListKey *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ListKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_createSearchFramework(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ signed char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_createSearchFramework",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (signed char)(arg1)->createSearchFramework();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_hasSearchFramework(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_hasSearchFramework",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->hasSearchFramework();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_isSearchOptimallySupported(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 ;
+ int arg3 ;
+ int arg4 ;
+ SWKey *arg5 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OsiiO:SWModule_isSearchOptimallySupported",&obj0,&arg2,&arg3,&arg4,&obj4)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->isSearchOptimallySupported((char const *)arg2,arg3,arg4,arg5);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_next(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_next",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)SWModule_next(arg1);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_prev(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_prev",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)SWModule_prev(arg1);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_inc(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:SWModule_inc",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)SWModule_inc(arg1,arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_dec(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ int arg2 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:SWModule_dec",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)SWModule_dec(arg1,arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_setPosition(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ SW_POSITION *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_setPosition",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_SW_POSITION,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ SWModule_setPosition(arg1,arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_top(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_top",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWModule_top(arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_bottom(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_bottom",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWModule_bottom(arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_text(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_text",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)SWModule_text(arg1);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_StripText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_StripText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)SWModule_StripText(arg1);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_getRawEntry(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_getRawEntry",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->getRawEntry();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_setSkipConsecutiveLinks(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_setSkipConsecutiveLinks",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg2 = (bool) PyInt_AsLong(obj1);
+ if (PyErr_Occurred()) return NULL;
+ (arg1)->setSkipConsecutiveLinks(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_getSkipConsecutiveLinks(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_getSkipConsecutiveLinks",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->getSkipConsecutiveLinks();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_getEntryAttributes(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ AttributeTypeList *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_getEntryAttributes",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ AttributeTypeList &_result_ref = ((SWModule const *)arg1)->getEntryAttributes();
+ result = (AttributeTypeList *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_AttributeTypeList, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_processEntryAttributes(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_processEntryAttributes",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg2 = (bool) PyInt_AsLong(obj1);
+ if (PyErr_Occurred()) return NULL;
+ ((SWModule const *)arg1)->processEntryAttributes(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_isProcessEntryAttributes(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_isProcessEntryAttributes",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)((SWModule const *)arg1)->isProcessEntryAttributes();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Name(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|s:SWModule_Name",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->Name((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Description(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|s:SWModule_Description",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->Description((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Type(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|s:SWModule_Type",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->Type((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Direction(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|b:SWModule_Direction",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Direction(arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Encoding(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|b:SWModule_Encoding",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Encoding(arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Markup(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ signed char arg2 = -1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|b:SWModule_Markup",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Markup(arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_Lang(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|s:SWModule_Lang",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->Lang((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_isWritable(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_isWritable",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->isWritable();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ signed char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:SWModule_createModule",&arg1)) return NULL;
+ result = (signed char)SWModule::createModule((char const *)arg1);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_setEntry(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 ;
+ long arg3 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Osl:SWModule_setEntry",&obj0,&arg2,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setEntry((char const *)arg2,arg3);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_deleteEntry(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWModule_deleteEntry",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->deleteEntry();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_write(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWModule_write",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWModule_write(arg1,(char const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWModule_writeLink(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ SWKey *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWModule_writeLink",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWModule_writeLink(arg1,(SWKey const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWModule *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWModule",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWModule,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SWModule_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWModule, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_SW_POSITION(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char arg1 ;
+ SW_POSITION *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"c:new_SW_POSITION",&arg1)) return NULL;
+ result = (SW_POSITION *)new SW_POSITION(arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SW_POSITION, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SW_POSITION(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SW_POSITION *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SW_POSITION",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SW_POSITION,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SW_POSITION_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SW_POSITION, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_SWKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ SWKey *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"|s:new_SWKey",&arg1)) return NULL;
+ result = (SWKey *)new SWKey((char const *)arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_clone(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_clone",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWKey *)((SWKey const *)arg1)->clone();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_Persist(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_Persist",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)((SWKey const *)arg1)->Persist();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_setPersist(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ signed char arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Ob:SWKey_setPersist",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWKey_setPersist(arg1,arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_Error(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_Error",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Error();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_setText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:SWKey_setText",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setText((char const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_getText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_getText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((SWKey const *)arg1)->getText();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_getShortText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_getShortText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((SWKey const *)arg1)->getShortText();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_compare(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWKey_compare",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_equals(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWKey_equals",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->equals((SWKey const &)*arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_decrement(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|i:SWKey_decrement",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->decrement(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_increment(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ int arg2 = 1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|i:SWKey_increment",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->increment(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_Traversable(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_Traversable",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Traversable();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_Index(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_Index",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (long)((SWKey const *)arg1)->Index();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_next(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_next",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWKey_next(arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_prev(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWKey_prev",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWKey_prev(arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWKey_setKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ SWKey *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:SWKey_setKey",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ SWKey_setKey(arg1,(SWKey const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWKey",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SWKey_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWKey, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_VerseKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ VerseKey *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"|s:new_VerseKey",&arg1)) return NULL;
+ result = (VerseKey *)new VerseKey((char const *)arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_VerseKey, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_VerseKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_VerseKey",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_clone(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_clone",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWKey *)((VerseKey const *)arg1)->clone();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_LowerBound(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ VerseKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_LowerBound",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->LowerBound();
+ result = (VerseKey *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_VerseKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_UpperBound(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ VerseKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_UpperBound",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ VerseKey &_result_ref = ((VerseKey const *)arg1)->UpperBound();
+ result = (VerseKey *) &_result_ref;
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_VerseKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_ClearBounds(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_ClearBounds",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->ClearBounds();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_decrement(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:VerseKey_decrement",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->decrement(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_increment(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:VerseKey_increment",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->increment(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Traversable(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_Traversable",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Traversable();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_getBookName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_getBookName",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((VerseKey const *)arg1)->getBookName();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_getBookAbbrev(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_getBookAbbrev",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((VerseKey const *)arg1)->getBookAbbrev();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Testament(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_Testament",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)((VerseKey const *)arg1)->Testament();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Book(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_Book",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)((VerseKey const *)arg1)->Book();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Chapter(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_Chapter",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)((VerseKey const *)arg1)->Chapter();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Verse(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_Verse",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)((VerseKey const *)arg1)->Verse();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Normalize(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char arg2 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|c:VerseKey_Normalize",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Normalize(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_AutoNormalize(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|c:VerseKey_AutoNormalize",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->AutoNormalize(arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_Headings(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char arg2 = MAXPOS(char) ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|c:VerseKey_Headings",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Headings(arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_getOSISRef(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_getOSISRef",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((VerseKey const *)arg1)->getOSISRef();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_compare(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ SWKey *arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VerseKey_compare",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)(arg1)->compare((SWKey const &)*arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey__compare(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ VerseKey *arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VerseKey__compare",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)(arg1)->_compare((VerseKey const &)*arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_setLocale(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:VerseKey_setLocale",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setLocale((char const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_VerseKey_getLocale(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ VerseKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VerseKey_getLocale",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_VerseKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((VerseKey const *)arg1)->getLocale();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject * VerseKey_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_VerseKey, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_ListKey__SWIG_0(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ ListKey *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"|s:new_ListKey",&arg1)) return NULL;
+ result = (ListKey *)new ListKey((char const *)arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ListKey, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_new_ListKey__SWIG_1(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ ListKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:new_ListKey",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (ListKey *)new ListKey((ListKey const &)*arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ListKey, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_new_ListKey(PyObject *self, PyObject *args) {
+ int argc;
+ PyObject *argv[2];
+ int ii;
+
+ argc = PyObject_Length(args);
+ for (ii = 0; (ii < argc) && (ii < 1); ii++) {
+ argv[ii] = PyTuple_GetItem(args,ii);
+ }
+ if ((argc >= 0) && (argc <= 1)) {
+ int _m = 1;
+ int _v = 1;
+ if (argc > 0) {
+ {
+ _v = PyString_Check(argv[0]) ? 1 : 0;
+ }
+ _m &= _v;
+ }
+ if (_m && _v) {
+ return _wrap_new_ListKey__SWIG_0(self,args);
+ }
+ }
+ if (argc == 1) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *ptr;
+ if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ PyErr_Clear();
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ if (_m && _v) {
+ return _wrap_new_ListKey__SWIG_1(self,args);
+ }
+ }
+
+ PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_ListKey'");
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_ListKey(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_ListKey",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_clone(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_clone",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWKey *)((ListKey const *)arg1)->clone();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_ClearList(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_ClearList",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->ClearList();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Count(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_Count",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (int)(arg1)->Count();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Remove(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_Remove",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Remove();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_SetToElement(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ int arg2 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:ListKey_SetToElement",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)ListKey_SetToElement(arg1,arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_GetElement(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ int arg2 = -1 ;
+ SWKey *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|i:ListKey_GetElement",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWKey *)(arg1)->GetElement(arg2);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWKey, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_add(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ SWKey *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:ListKey_add",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_SWKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->add((SWKey const &)*arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_copyFrom(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ ListKey *arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:ListKey_copyFrom",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->copyFrom((ListKey const &)*arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_setPosition(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ SW_POSITION *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:ListKey_setPosition",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_SW_POSITION,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ (arg1)->setPosition(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_decrement(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:ListKey_decrement",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->decrement(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_increment(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Oi:ListKey_increment",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->increment(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Traversable(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_Traversable",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Traversable();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Index__SWIG_0(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ListKey_Index",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (long)((ListKey const *)arg1)->Index();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Index__SWIG_1(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ListKey *arg1 ;
+ long arg2 ;
+ long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Ol:ListKey_Index",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ListKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (long)(arg1)->Index(arg2);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ListKey_Index(PyObject *self, PyObject *args) {
+ int argc;
+ PyObject *argv[3];
+ int ii;
+
+ argc = PyObject_Length(args);
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
+ argv[ii] = PyTuple_GetItem(args,ii);
+ }
+ if (argc == 1) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *ptr;
+ if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ PyErr_Clear();
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ if (_m && _v) {
+ return _wrap_ListKey_Index__SWIG_0(self,args);
+ }
+ }
+ if (argc == 2) {
+ int _m = 1;
+ int _v = 1;
+ {
+ void *ptr;
+ if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_ListKey, 0) == -1) {
+ _v = 0;
+ PyErr_Clear();
+ }else {
+ _v = 1;
+ }
+ }
+ _m &= _v;
+ {
+ _v = PyInt_Check(argv[1]) ? 1 : 0;
+ }
+ _m &= _v;
+ if (_m && _v) {
+ return _wrap_ListKey_Index__SWIG_1(self,args);
+ }
+ }
+
+ PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ListKey_Index'");
+ return NULL;
+}
+
+
+static PyObject * ListKey_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_ListKey, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_TreeKey_getLocalName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_getLocalName",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->getLocalName();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_setLocalName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ char *arg2 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:TreeKey_setLocalName",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->setLocalName((char const *)arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_getUserData(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ int *arg2 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|O:TreeKey_getUserData",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if (obj1) {
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ result = (char *)(arg1)->getUserData(arg2);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_setUserData(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ char *arg2 ;
+ int arg3 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os|i:TreeKey_setUserData",&obj0,&arg2,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setUserData((char const *)arg2,arg3);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_getFullName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_getFullName",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)((TreeKey const *)arg1)->getFullName();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_root(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_root",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->root();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_parent(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_parent",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->parent();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_firstChild(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_firstChild",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->firstChild();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_nextSibling(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_nextSibling",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->nextSibling();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_previousSibling(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_previousSibling",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->previousSibling();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_hasChildren(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_hasChildren",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (bool)(arg1)->hasChildren();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_append(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_append",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->append();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_appendChild(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_appendChild",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->appendChild();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_insertBefore(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_insertBefore",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->insertBefore();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_remove(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_remove",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->remove();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_setOffset(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:TreeKey_setOffset",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg2 = (unsigned long) PyInt_AsLong(obj1);
+ if (PyErr_Occurred()) return NULL;
+ (arg1)->setOffset(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_getOffset(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_getOffset",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (unsigned long)((TreeKey const *)arg1)->getOffset();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_setPosition(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ SwigValueWrapper< SW_POSITION > arg2 ;
+ SW_POSITION *argp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:TreeKey_setPosition",&obj0,&obj1)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_SW_POSITION,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg2 = *argp2;
+ (arg1)->setPosition(arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_Traversable(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ char result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_Traversable",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char)(arg1)->Traversable();
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_TreeKey_Index(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ TreeKey *arg1 ;
+ long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:TreeKey_Index",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_TreeKey,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (long)((TreeKey const *)arg1)->Index();
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject * TreeKey_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_TreeKey, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * TreeKeyIdx_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_TreeKeyIdx, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_LocaleMgr(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ LocaleMgr *result;
+
+ if(!PyArg_ParseTuple(args,(char *)"|s:new_LocaleMgr",&arg1)) return NULL;
+ result = (LocaleMgr *)new LocaleMgr((char const *)arg1);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_LocaleMgr, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_LocaleMgr(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_LocaleMgr",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LocaleMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LocaleMgr_getLocale(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *arg1 ;
+ char *arg2 ;
+ SWLocale *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:LocaleMgr_getLocale",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LocaleMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (SWLocale *)(arg1)->getLocale((char const *)arg2);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWLocale, 0);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LocaleMgr_getAvailableLocales(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *arg1 ;
+ list<string > result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:LocaleMgr_getAvailableLocales",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LocaleMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (arg1)->getAvailableLocales();
+
+ {
+ list<string > * resultptr;
+ resultptr = new list<string >((list<string > &) result);
+ resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_listTstring_t, 1);
+ }
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LocaleMgr_getDefaultLocaleName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *arg1 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:LocaleMgr_getDefaultLocaleName",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LocaleMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->getDefaultLocaleName();
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LocaleMgr_setDefaultLocaleName(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *arg1 ;
+ char *arg2 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"Os:LocaleMgr_setDefaultLocaleName",&obj0,&arg2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LocaleMgr,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->setDefaultLocaleName((char const *)arg2);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LocaleMgr_systemLocaleMgr(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LocaleMgr *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":LocaleMgr_systemLocaleMgr")) return NULL;
+ result = (LocaleMgr *)LocaleMgr_systemLocaleMgr();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_LocaleMgr, 0);
+ return resultobj;
+}
+
+
+static PyObject * LocaleMgr_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_LocaleMgr, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * SWFilterMgr_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWFilterMgr, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_SWText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWText *result;
+ SWTextEncoding *argp4 ;
+ SWTextDirection *argp5 ;
+ SWTextMarkup *argp6 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"|ssOOOOs:new_SWText",&arg1,&arg2,&obj2,&obj3,&obj4,&obj5,&arg7)) return NULL;
+ if (obj2) {
+ if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &argp4, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg4 = *argp4;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ result = (SWText *)new SWText((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWText, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWText *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWText,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SWText_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWText, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_RawText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawText *result;
+ SWTextEncoding *argp5 ;
+ SWTextDirection *argp6 ;
+ SWTextMarkup *argp7 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|ssOOOOs:new_RawText",&arg1,&arg2,&arg3,&obj3,&obj4,&obj5,&obj6,&arg8)) return NULL;
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ result = (RawText *)new RawText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_RawText, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_RawText_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:RawText_createModule",&arg1)) return NULL;
+ result = (char)RawText::createModule((char const *)arg1);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_RawText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ RawText *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_RawText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_RawText,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * RawText_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_RawText, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_zText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ int arg4 = CHAPTERBLOCKS ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zText *result;
+ SWTextEncoding *argp7 ;
+ SWTextDirection *argp8 ;
+ SWTextMarkup *argp9 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+ PyObject * obj7 = 0 ;
+ PyObject * obj8 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|ssiOOOOOs:new_zText",&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&obj6,&obj7,&obj8,&arg10)) return NULL;
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ if (obj7) {
+ if ((SWIG_ConvertPtr(obj7,(void **) &argp8, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg8 = *argp8;
+ }
+ if (obj8) {
+ if ((SWIG_ConvertPtr(obj8,(void **) &argp9, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg9 = *argp9;
+ }
+ result = (zText *)new zText((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_zText, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_zText(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ zText *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_zText",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_zText,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_zText_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ int arg2 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"si:zText_createModule",&arg1,&arg2)) return NULL;
+ result = (char)zText::createModule((char const *)arg1,arg2);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject * zText_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_zText, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * SWCom_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWCom, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * RawCom_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_RawCom, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * zCom_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_zCom, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject * SWGenBook_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWGenBook, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_RawGenBook(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawGenBook *result;
+ SWTextEncoding *argp5 ;
+ SWTextDirection *argp6 ;
+ SWTextMarkup *argp7 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|ssOOOOs:new_RawGenBook",&arg1,&arg2,&arg3,&obj3,&obj4,&obj5,&obj6,&arg8)) return NULL;
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ result = (RawGenBook *)new RawGenBook((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_RawGenBook, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_RawGenBook(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ RawGenBook *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_RawGenBook",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_RawGenBook,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_RawGenBook_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:RawGenBook_createModule",&arg1)) return NULL;
+ result = (char)RawGenBook::createModule((char const *)arg1);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject * RawGenBook_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_RawGenBook, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_SWLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 = 0 ;
+ char *arg2 = 0 ;
+ SWDisplay *arg3 = 0 ;
+ SWTextEncoding arg4 = ENC_UNKNOWN ;
+ SWTextDirection arg5 = DIRECTION_LTR ;
+ SWTextMarkup arg6 = FMT_UNKNOWN ;
+ char *arg7 = 0 ;
+ SWLD *result;
+ SWTextEncoding *argp4 ;
+ SWTextDirection *argp5 ;
+ SWTextMarkup *argp6 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"|ssOOOOs:new_SWLD",&arg1,&arg2,&obj2,&obj3,&obj4,&obj5,&arg7)) return NULL;
+ if (obj2) {
+ if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &argp4, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg4 = *argp4;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ result = (SWLD *)new SWLD((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWLD, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWLD *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWLD",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWLD,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SWLD_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWLD, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_RawLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD *result;
+ SWTextEncoding *argp5 ;
+ SWTextDirection *argp6 ;
+ SWTextMarkup *argp7 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|ssOOOOs:new_RawLD",&arg1,&arg2,&arg3,&obj3,&obj4,&obj5,&obj6,&arg8)) return NULL;
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ result = (RawLD *)new RawLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_RawLD, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_RawLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ RawLD *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_RawLD",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_RawLD,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_RawLD_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:RawLD_createModule",&arg1)) return NULL;
+ result = (char)RawLD::createModule((char const *)arg1);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject * RawLD_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_RawLD, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_RawLD4(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ SWDisplay *arg4 = 0 ;
+ SWTextEncoding arg5 = ENC_UNKNOWN ;
+ SWTextDirection arg6 = DIRECTION_LTR ;
+ SWTextMarkup arg7 = FMT_UNKNOWN ;
+ char *arg8 = 0 ;
+ RawLD4 *result;
+ SWTextEncoding *argp5 ;
+ SWTextDirection *argp6 ;
+ SWTextMarkup *argp7 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|ssOOOOs:new_RawLD4",&arg1,&arg2,&arg3,&obj3,&obj4,&obj5,&obj6,&arg8)) return NULL;
+ if (obj3) {
+ if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg5 = *argp5;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &argp6, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg6 = *argp6;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ result = (RawLD4 *)new RawLD4((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,(char const *)arg8);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_RawLD4, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_RawLD4(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ RawLD4 *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_RawLD4",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_RawLD4,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_RawLD4_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:RawLD4_createModule",&arg1)) return NULL;
+ result = (char)RawLD4::createModule((char const *)arg1);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject * RawLD4_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_RawLD4, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_zLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char *arg2 = 0 ;
+ char *arg3 = 0 ;
+ long arg4 = 200 ;
+ SWCompress *arg5 = 0 ;
+ SWDisplay *arg6 = 0 ;
+ SWTextEncoding arg7 = ENC_UNKNOWN ;
+ SWTextDirection arg8 = DIRECTION_LTR ;
+ SWTextMarkup arg9 = FMT_UNKNOWN ;
+ char *arg10 = 0 ;
+ zLD *result;
+ SWTextEncoding *argp7 ;
+ SWTextDirection *argp8 ;
+ SWTextMarkup *argp9 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+ PyObject * obj7 = 0 ;
+ PyObject * obj8 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"s|sslOOOOOs:new_zLD",&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&obj6,&obj7,&obj8,&arg10)) return NULL;
+ if (obj4) {
+ if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj5) {
+ if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_SWDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ if (obj6) {
+ if ((SWIG_ConvertPtr(obj6,(void **) &argp7, SWIGTYPE_p_SWTextEncoding,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg7 = *argp7;
+ }
+ if (obj7) {
+ if ((SWIG_ConvertPtr(obj7,(void **) &argp8, SWIGTYPE_p_SWTextDirection,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg8 = *argp8;
+ }
+ if (obj8) {
+ if ((SWIG_ConvertPtr(obj8,(void **) &argp9, SWIGTYPE_p_SWTextMarkup,SWIG_POINTER_EXCEPTION) == -1)) return NULL;
+ arg9 = *argp9;
+ }
+ result = (zLD *)new zLD((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_zLD, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_zLD(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ zLD *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_zLD",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_zLD,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_zLD_createModule(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ char *arg1 ;
+ char result;
+
+ if(!PyArg_ParseTuple(args,(char *)"s:zLD_createModule",&arg1)) return NULL;
+ result = (char)zLD::createModule((char const *)arg1);
+
+ resultobj = Py_BuildValue((char*)"c",result);
+ return resultobj;
+}
+
+
+static PyObject * zLD_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_zLD, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_SWCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_SWCompress")) return NULL;
+ result = (SWCompress *)new SWCompress();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_SWCompress, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_SWCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_SWCompress",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_Buf(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ char *arg2 = 0 ;
+ unsigned long *arg3 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O|sO:SWCompress_Buf",&obj0,&arg2,&obj2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if (obj2) {
+ if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ }
+ result = (char *)(arg1)->Buf((char const *)arg2,arg3);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_zBuf(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ unsigned long *arg2 ;
+ char *arg3 = 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO|s:SWCompress_zBuf",&obj0,&obj1,&arg3)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ result = (char *)(arg1)->zBuf(arg2,arg3);
+
+ resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_GetChars(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OsO:SWCompress_GetChars",&obj0,&arg2,&obj2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg3 = (unsigned long) PyInt_AsLong(obj2);
+ if (PyErr_Occurred()) return NULL;
+ result = (unsigned long)(arg1)->GetChars(arg2,arg3);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_SendChars(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ char *arg2 ;
+ unsigned long arg3 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OsO:SWCompress_SendChars",&obj0,&arg2,&obj2)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ arg3 = (unsigned long) PyInt_AsLong(obj2);
+ if (PyErr_Occurred()) return NULL;
+ result = (unsigned long)(arg1)->SendChars(arg2,arg3);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_Encode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWCompress_Encode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Encode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_SWCompress_Decode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ SWCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SWCompress_Decode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_SWCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Decode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * SWCompress_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SWCompress, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_LZSSCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LZSSCompress *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_LZSSCompress")) return NULL;
+ result = (LZSSCompress *)new LZSSCompress();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_LZSSCompress, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_LZSSCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LZSSCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_LZSSCompress",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LZSSCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LZSSCompress_Encode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LZSSCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:LZSSCompress_Encode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LZSSCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Encode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_LZSSCompress_Decode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ LZSSCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:LZSSCompress_Decode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LZSSCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Decode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * LZSSCompress_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_LZSSCompress, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_new_ZipCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ZipCompress *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_ZipCompress")) return NULL;
+ result = (ZipCompress *)new ZipCompress();
+
+ resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ZipCompress, 1);
+ return resultobj;
+}
+
+
+static PyObject *_wrap_delete_ZipCompress(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ZipCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_ZipCompress",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ZipCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ delete arg1;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ZipCompress_Encode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ZipCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ZipCompress_Encode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ZipCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Encode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject *_wrap_ZipCompress_Decode(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ ZipCompress *arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:ZipCompress_Decode",&obj0)) return NULL;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ZipCompress,SWIG_POINTER_EXCEPTION | 0 )) == -1) return NULL;
+ (arg1)->Decode();
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+}
+
+
+static PyObject * ZipCompress_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_ZipCompress, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyMethodDef SwigMethods[] = {
+ { (char *)"SWConfig_filename_set", _wrap_SWConfig_filename_set, METH_VARARGS },
+ { (char *)"SWConfig_filename_get", _wrap_SWConfig_filename_get, METH_VARARGS },
+ { (char *)"SWConfig_Sections_set", _wrap_SWConfig_Sections_set, METH_VARARGS },
+ { (char *)"SWConfig_Sections_get", _wrap_SWConfig_Sections_get, METH_VARARGS },
+ { (char *)"new_SWConfig", _wrap_new_SWConfig, METH_VARARGS },
+ { (char *)"delete_SWConfig", _wrap_delete_SWConfig, METH_VARARGS },
+ { (char *)"SWConfig_Load", _wrap_SWConfig_Load, METH_VARARGS },
+ { (char *)"SWConfig_Save", _wrap_SWConfig_Save, METH_VARARGS },
+ { (char *)"SWConfig_set", _wrap_SWConfig_set, METH_VARARGS },
+ { (char *)"SWConfig_get", _wrap_SWConfig_get, METH_VARARGS },
+ { (char *)"SWConfig_swigregister", SWConfig_swigregister, METH_VARARGS },
+ { (char *)"SWMgr_findConfig", _wrap_SWMgr_findConfig, METH_VARARGS },
+ { (char *)"SWMgr_config_set", _wrap_SWMgr_config_set, METH_VARARGS },
+ { (char *)"SWMgr_config_get", _wrap_SWMgr_config_get, METH_VARARGS },
+ { (char *)"SWMgr_sysconfig_set", _wrap_SWMgr_sysconfig_set, METH_VARARGS },
+ { (char *)"SWMgr_sysconfig_get", _wrap_SWMgr_sysconfig_get, METH_VARARGS },
+ { (char *)"SWMgr_Modules_set", _wrap_SWMgr_Modules_set, METH_VARARGS },
+ { (char *)"SWMgr_Modules_get", _wrap_SWMgr_Modules_get, METH_VARARGS },
+ { (char *)"SWMgr_prefixPath_set", _wrap_SWMgr_prefixPath_set, METH_VARARGS },
+ { (char *)"SWMgr_prefixPath_get", _wrap_SWMgr_prefixPath_get, METH_VARARGS },
+ { (char *)"SWMgr_configPath_set", _wrap_SWMgr_configPath_set, METH_VARARGS },
+ { (char *)"SWMgr_configPath_get", _wrap_SWMgr_configPath_get, METH_VARARGS },
+ { (char *)"new_SWMgr", _wrap_new_SWMgr, METH_VARARGS },
+ { (char *)"delete_SWMgr", _wrap_delete_SWMgr, METH_VARARGS },
+ { (char *)"SWMgr_Load", _wrap_SWMgr_Load, METH_VARARGS },
+ { (char *)"SWMgr_setGlobalOption", _wrap_SWMgr_setGlobalOption, METH_VARARGS },
+ { (char *)"SWMgr_getGlobalOption", _wrap_SWMgr_getGlobalOption, METH_VARARGS },
+ { (char *)"SWMgr_getGlobalOptionTip", _wrap_SWMgr_getGlobalOptionTip, METH_VARARGS },
+ { (char *)"SWMgr_getGlobalOptions", _wrap_SWMgr_getGlobalOptions, METH_VARARGS },
+ { (char *)"SWMgr_getGlobalOptionValues", _wrap_SWMgr_getGlobalOptionValues, METH_VARARGS },
+ { (char *)"SWMgr_setCipherKey", _wrap_SWMgr_setCipherKey, METH_VARARGS },
+ { (char *)"SWMgr_module", _wrap_SWMgr_module, METH_VARARGS },
+ { (char *)"SWMgr_swigregister", SWMgr_swigregister, METH_VARARGS },
+ { (char *)"SWModule_terminateSearch_set", _wrap_SWModule_terminateSearch_set, METH_VARARGS },
+ { (char *)"SWModule_terminateSearch_get", _wrap_SWModule_terminateSearch_get, METH_VARARGS },
+ { (char *)"new_SWModule", _wrap_new_SWModule, METH_VARARGS },
+ { (char *)"SWModule_Error", _wrap_SWModule_Error, METH_VARARGS },
+ { (char *)"SWModule_isUnicode", _wrap_SWModule_isUnicode, METH_VARARGS },
+ { (char *)"SWModule_getConfig", _wrap_SWModule_getConfig, METH_VARARGS },
+ { (char *)"SWModule_getConfigEntry", _wrap_SWModule_getConfigEntry, METH_VARARGS },
+ { (char *)"SWModule_SetKey", _wrap_SWModule_SetKey, METH_VARARGS },
+ { (char *)"SWModule_Key", _wrap_SWModule_Key, METH_VARARGS },
+ { (char *)"SWModule_CreateKey", _wrap_SWModule_CreateKey, METH_VARARGS },
+ { (char *)"SWModule_KeyText", _wrap_SWModule_KeyText, METH_VARARGS },
+ { (char *)"SWModule_Display", _wrap_SWModule_Display, METH_VARARGS },
+ { (char *)"SWModule_nullPercent", _wrap_SWModule_nullPercent, METH_VARARGS },
+ { (char *)"SWModule_Search", _wrap_SWModule_Search, METH_VARARGS },
+ { (char *)"SWModule_createSearchFramework", _wrap_SWModule_createSearchFramework, METH_VARARGS },
+ { (char *)"SWModule_hasSearchFramework", _wrap_SWModule_hasSearchFramework, METH_VARARGS },
+ { (char *)"SWModule_isSearchOptimallySupported", _wrap_SWModule_isSearchOptimallySupported, METH_VARARGS },
+ { (char *)"SWModule_next", _wrap_SWModule_next, METH_VARARGS },
+ { (char *)"SWModule_prev", _wrap_SWModule_prev, METH_VARARGS },
+ { (char *)"SWModule_inc", _wrap_SWModule_inc, METH_VARARGS },
+ { (char *)"SWModule_dec", _wrap_SWModule_dec, METH_VARARGS },
+ { (char *)"SWModule_setPosition", _wrap_SWModule_setPosition, METH_VARARGS },
+ { (char *)"SWModule_top", _wrap_SWModule_top, METH_VARARGS },
+ { (char *)"SWModule_bottom", _wrap_SWModule_bottom, METH_VARARGS },
+ { (char *)"SWModule_text", _wrap_SWModule_text, METH_VARARGS },
+ { (char *)"SWModule_StripText", _wrap_SWModule_StripText, METH_VARARGS },
+ { (char *)"SWModule_getRawEntry", _wrap_SWModule_getRawEntry, METH_VARARGS },
+ { (char *)"SWModule_setSkipConsecutiveLinks", _wrap_SWModule_setSkipConsecutiveLinks, METH_VARARGS },
+ { (char *)"SWModule_getSkipConsecutiveLinks", _wrap_SWModule_getSkipConsecutiveLinks, METH_VARARGS },
+ { (char *)"SWModule_getEntryAttributes", _wrap_SWModule_getEntryAttributes, METH_VARARGS },
+ { (char *)"SWModule_processEntryAttributes", _wrap_SWModule_processEntryAttributes, METH_VARARGS },
+ { (char *)"SWModule_isProcessEntryAttributes", _wrap_SWModule_isProcessEntryAttributes, METH_VARARGS },
+ { (char *)"SWModule_Name", _wrap_SWModule_Name, METH_VARARGS },
+ { (char *)"SWModule_Description", _wrap_SWModule_Description, METH_VARARGS },
+ { (char *)"SWModule_Type", _wrap_SWModule_Type, METH_VARARGS },
+ { (char *)"SWModule_Direction", _wrap_SWModule_Direction, METH_VARARGS },
+ { (char *)"SWModule_Encoding", _wrap_SWModule_Encoding, METH_VARARGS },
+ { (char *)"SWModule_Markup", _wrap_SWModule_Markup, METH_VARARGS },
+ { (char *)"SWModule_Lang", _wrap_SWModule_Lang, METH_VARARGS },
+ { (char *)"SWModule_isWritable", _wrap_SWModule_isWritable, METH_VARARGS },
+ { (char *)"SWModule_createModule", _wrap_SWModule_createModule, METH_VARARGS },
+ { (char *)"SWModule_setEntry", _wrap_SWModule_setEntry, METH_VARARGS },
+ { (char *)"SWModule_deleteEntry", _wrap_SWModule_deleteEntry, METH_VARARGS },
+ { (char *)"SWModule_write", _wrap_SWModule_write, METH_VARARGS },
+ { (char *)"SWModule_writeLink", _wrap_SWModule_writeLink, METH_VARARGS },
+ { (char *)"delete_SWModule", _wrap_delete_SWModule, METH_VARARGS },
+ { (char *)"SWModule_swigregister", SWModule_swigregister, METH_VARARGS },
+ { (char *)"new_SW_POSITION", _wrap_new_SW_POSITION, METH_VARARGS },
+ { (char *)"delete_SW_POSITION", _wrap_delete_SW_POSITION, METH_VARARGS },
+ { (char *)"SW_POSITION_swigregister", SW_POSITION_swigregister, METH_VARARGS },
+ { (char *)"new_SWKey", _wrap_new_SWKey, METH_VARARGS },
+ { (char *)"SWKey_clone", _wrap_SWKey_clone, METH_VARARGS },
+ { (char *)"SWKey_Persist", _wrap_SWKey_Persist, METH_VARARGS },
+ { (char *)"SWKey_setPersist", _wrap_SWKey_setPersist, METH_VARARGS },
+ { (char *)"SWKey_Error", _wrap_SWKey_Error, METH_VARARGS },
+ { (char *)"SWKey_setText", _wrap_SWKey_setText, METH_VARARGS },
+ { (char *)"SWKey_getText", _wrap_SWKey_getText, METH_VARARGS },
+ { (char *)"SWKey_getShortText", _wrap_SWKey_getShortText, METH_VARARGS },
+ { (char *)"SWKey_compare", _wrap_SWKey_compare, METH_VARARGS },
+ { (char *)"SWKey_equals", _wrap_SWKey_equals, METH_VARARGS },
+ { (char *)"SWKey_decrement", _wrap_SWKey_decrement, METH_VARARGS },
+ { (char *)"SWKey_increment", _wrap_SWKey_increment, METH_VARARGS },
+ { (char *)"SWKey_Traversable", _wrap_SWKey_Traversable, METH_VARARGS },
+ { (char *)"SWKey_Index", _wrap_SWKey_Index, METH_VARARGS },
+ { (char *)"SWKey_next", _wrap_SWKey_next, METH_VARARGS },
+ { (char *)"SWKey_prev", _wrap_SWKey_prev, METH_VARARGS },
+ { (char *)"SWKey_setKey", _wrap_SWKey_setKey, METH_VARARGS },
+ { (char *)"delete_SWKey", _wrap_delete_SWKey, METH_VARARGS },
+ { (char *)"SWKey_swigregister", SWKey_swigregister, METH_VARARGS },
+ { (char *)"new_VerseKey", _wrap_new_VerseKey, METH_VARARGS },
+ { (char *)"delete_VerseKey", _wrap_delete_VerseKey, METH_VARARGS },
+ { (char *)"VerseKey_clone", _wrap_VerseKey_clone, METH_VARARGS },
+ { (char *)"VerseKey_LowerBound", _wrap_VerseKey_LowerBound, METH_VARARGS },
+ { (char *)"VerseKey_UpperBound", _wrap_VerseKey_UpperBound, METH_VARARGS },
+ { (char *)"VerseKey_ClearBounds", _wrap_VerseKey_ClearBounds, METH_VARARGS },
+ { (char *)"VerseKey_decrement", _wrap_VerseKey_decrement, METH_VARARGS },
+ { (char *)"VerseKey_increment", _wrap_VerseKey_increment, METH_VARARGS },
+ { (char *)"VerseKey_Traversable", _wrap_VerseKey_Traversable, METH_VARARGS },
+ { (char *)"VerseKey_getBookName", _wrap_VerseKey_getBookName, METH_VARARGS },
+ { (char *)"VerseKey_getBookAbbrev", _wrap_VerseKey_getBookAbbrev, METH_VARARGS },
+ { (char *)"VerseKey_Testament", _wrap_VerseKey_Testament, METH_VARARGS },
+ { (char *)"VerseKey_Book", _wrap_VerseKey_Book, METH_VARARGS },
+ { (char *)"VerseKey_Chapter", _wrap_VerseKey_Chapter, METH_VARARGS },
+ { (char *)"VerseKey_Verse", _wrap_VerseKey_Verse, METH_VARARGS },
+ { (char *)"VerseKey_Normalize", _wrap_VerseKey_Normalize, METH_VARARGS },
+ { (char *)"VerseKey_AutoNormalize", _wrap_VerseKey_AutoNormalize, METH_VARARGS },
+ { (char *)"VerseKey_Headings", _wrap_VerseKey_Headings, METH_VARARGS },
+ { (char *)"VerseKey_getOSISRef", _wrap_VerseKey_getOSISRef, METH_VARARGS },
+ { (char *)"VerseKey_compare", _wrap_VerseKey_compare, METH_VARARGS },
+ { (char *)"VerseKey__compare", _wrap_VerseKey__compare, METH_VARARGS },
+ { (char *)"VerseKey_setLocale", _wrap_VerseKey_setLocale, METH_VARARGS },
+ { (char *)"VerseKey_getLocale", _wrap_VerseKey_getLocale, METH_VARARGS },
+ { (char *)"VerseKey_swigregister", VerseKey_swigregister, METH_VARARGS },
+ { (char *)"new_ListKey", _wrap_new_ListKey, METH_VARARGS },
+ { (char *)"delete_ListKey", _wrap_delete_ListKey, METH_VARARGS },
+ { (char *)"ListKey_clone", _wrap_ListKey_clone, METH_VARARGS },
+ { (char *)"ListKey_ClearList", _wrap_ListKey_ClearList, METH_VARARGS },
+ { (char *)"ListKey_Count", _wrap_ListKey_Count, METH_VARARGS },
+ { (char *)"ListKey_Remove", _wrap_ListKey_Remove, METH_VARARGS },
+ { (char *)"ListKey_SetToElement", _wrap_ListKey_SetToElement, METH_VARARGS },
+ { (char *)"ListKey_GetElement", _wrap_ListKey_GetElement, METH_VARARGS },
+ { (char *)"ListKey_add", _wrap_ListKey_add, METH_VARARGS },
+ { (char *)"ListKey_copyFrom", _wrap_ListKey_copyFrom, METH_VARARGS },
+ { (char *)"ListKey_setPosition", _wrap_ListKey_setPosition, METH_VARARGS },
+ { (char *)"ListKey_decrement", _wrap_ListKey_decrement, METH_VARARGS },
+ { (char *)"ListKey_increment", _wrap_ListKey_increment, METH_VARARGS },
+ { (char *)"ListKey_Traversable", _wrap_ListKey_Traversable, METH_VARARGS },
+ { (char *)"ListKey_Index", _wrap_ListKey_Index, METH_VARARGS },
+ { (char *)"ListKey_swigregister", ListKey_swigregister, METH_VARARGS },
+ { (char *)"TreeKey_getLocalName", _wrap_TreeKey_getLocalName, METH_VARARGS },
+ { (char *)"TreeKey_setLocalName", _wrap_TreeKey_setLocalName, METH_VARARGS },
+ { (char *)"TreeKey_getUserData", _wrap_TreeKey_getUserData, METH_VARARGS },
+ { (char *)"TreeKey_setUserData", _wrap_TreeKey_setUserData, METH_VARARGS },
+ { (char *)"TreeKey_getFullName", _wrap_TreeKey_getFullName, METH_VARARGS },
+ { (char *)"TreeKey_root", _wrap_TreeKey_root, METH_VARARGS },
+ { (char *)"TreeKey_parent", _wrap_TreeKey_parent, METH_VARARGS },
+ { (char *)"TreeKey_firstChild", _wrap_TreeKey_firstChild, METH_VARARGS },
+ { (char *)"TreeKey_nextSibling", _wrap_TreeKey_nextSibling, METH_VARARGS },
+ { (char *)"TreeKey_previousSibling", _wrap_TreeKey_previousSibling, METH_VARARGS },
+ { (char *)"TreeKey_hasChildren", _wrap_TreeKey_hasChildren, METH_VARARGS },
+ { (char *)"TreeKey_append", _wrap_TreeKey_append, METH_VARARGS },
+ { (char *)"TreeKey_appendChild", _wrap_TreeKey_appendChild, METH_VARARGS },
+ { (char *)"TreeKey_insertBefore", _wrap_TreeKey_insertBefore, METH_VARARGS },
+ { (char *)"TreeKey_remove", _wrap_TreeKey_remove, METH_VARARGS },
+ { (char *)"TreeKey_setOffset", _wrap_TreeKey_setOffset, METH_VARARGS },
+ { (char *)"TreeKey_getOffset", _wrap_TreeKey_getOffset, METH_VARARGS },
+ { (char *)"TreeKey_setPosition", _wrap_TreeKey_setPosition, METH_VARARGS },
+ { (char *)"TreeKey_Traversable", _wrap_TreeKey_Traversable, METH_VARARGS },
+ { (char *)"TreeKey_Index", _wrap_TreeKey_Index, METH_VARARGS },
+ { (char *)"TreeKey_swigregister", TreeKey_swigregister, METH_VARARGS },
+ { (char *)"TreeKeyIdx_swigregister", TreeKeyIdx_swigregister, METH_VARARGS },
+ { (char *)"new_LocaleMgr", _wrap_new_LocaleMgr, METH_VARARGS },
+ { (char *)"delete_LocaleMgr", _wrap_delete_LocaleMgr, METH_VARARGS },
+ { (char *)"LocaleMgr_getLocale", _wrap_LocaleMgr_getLocale, METH_VARARGS },
+ { (char *)"LocaleMgr_getAvailableLocales", _wrap_LocaleMgr_getAvailableLocales, METH_VARARGS },
+ { (char *)"LocaleMgr_getDefaultLocaleName", _wrap_LocaleMgr_getDefaultLocaleName, METH_VARARGS },
+ { (char *)"LocaleMgr_setDefaultLocaleName", _wrap_LocaleMgr_setDefaultLocaleName, METH_VARARGS },
+ { (char *)"LocaleMgr_systemLocaleMgr", _wrap_LocaleMgr_systemLocaleMgr, METH_VARARGS },
+ { (char *)"LocaleMgr_swigregister", LocaleMgr_swigregister, METH_VARARGS },
+ { (char *)"SWFilterMgr_swigregister", SWFilterMgr_swigregister, METH_VARARGS },
+ { (char *)"new_SWText", _wrap_new_SWText, METH_VARARGS },
+ { (char *)"delete_SWText", _wrap_delete_SWText, METH_VARARGS },
+ { (char *)"SWText_swigregister", SWText_swigregister, METH_VARARGS },
+ { (char *)"new_RawText", _wrap_new_RawText, METH_VARARGS },
+ { (char *)"RawText_createModule", _wrap_RawText_createModule, METH_VARARGS },
+ { (char *)"delete_RawText", _wrap_delete_RawText, METH_VARARGS },
+ { (char *)"RawText_swigregister", RawText_swigregister, METH_VARARGS },
+ { (char *)"new_zText", _wrap_new_zText, METH_VARARGS },
+ { (char *)"delete_zText", _wrap_delete_zText, METH_VARARGS },
+ { (char *)"zText_createModule", _wrap_zText_createModule, METH_VARARGS },
+ { (char *)"zText_swigregister", zText_swigregister, METH_VARARGS },
+ { (char *)"SWCom_swigregister", SWCom_swigregister, METH_VARARGS },
+ { (char *)"RawCom_swigregister", RawCom_swigregister, METH_VARARGS },
+ { (char *)"zCom_swigregister", zCom_swigregister, METH_VARARGS },
+ { (char *)"SWGenBook_swigregister", SWGenBook_swigregister, METH_VARARGS },
+ { (char *)"new_RawGenBook", _wrap_new_RawGenBook, METH_VARARGS },
+ { (char *)"delete_RawGenBook", _wrap_delete_RawGenBook, METH_VARARGS },
+ { (char *)"RawGenBook_createModule", _wrap_RawGenBook_createModule, METH_VARARGS },
+ { (char *)"RawGenBook_swigregister", RawGenBook_swigregister, METH_VARARGS },
+ { (char *)"new_SWLD", _wrap_new_SWLD, METH_VARARGS },
+ { (char *)"delete_SWLD", _wrap_delete_SWLD, METH_VARARGS },
+ { (char *)"SWLD_swigregister", SWLD_swigregister, METH_VARARGS },
+ { (char *)"new_RawLD", _wrap_new_RawLD, METH_VARARGS },
+ { (char *)"delete_RawLD", _wrap_delete_RawLD, METH_VARARGS },
+ { (char *)"RawLD_createModule", _wrap_RawLD_createModule, METH_VARARGS },
+ { (char *)"RawLD_swigregister", RawLD_swigregister, METH_VARARGS },
+ { (char *)"new_RawLD4", _wrap_new_RawLD4, METH_VARARGS },
+ { (char *)"delete_RawLD4", _wrap_delete_RawLD4, METH_VARARGS },
+ { (char *)"RawLD4_createModule", _wrap_RawLD4_createModule, METH_VARARGS },
+ { (char *)"RawLD4_swigregister", RawLD4_swigregister, METH_VARARGS },
+ { (char *)"new_zLD", _wrap_new_zLD, METH_VARARGS },
+ { (char *)"delete_zLD", _wrap_delete_zLD, METH_VARARGS },
+ { (char *)"zLD_createModule", _wrap_zLD_createModule, METH_VARARGS },
+ { (char *)"zLD_swigregister", zLD_swigregister, METH_VARARGS },
+ { (char *)"new_SWCompress", _wrap_new_SWCompress, METH_VARARGS },
+ { (char *)"delete_SWCompress", _wrap_delete_SWCompress, METH_VARARGS },
+ { (char *)"SWCompress_Buf", _wrap_SWCompress_Buf, METH_VARARGS },
+ { (char *)"SWCompress_zBuf", _wrap_SWCompress_zBuf, METH_VARARGS },
+ { (char *)"SWCompress_GetChars", _wrap_SWCompress_GetChars, METH_VARARGS },
+ { (char *)"SWCompress_SendChars", _wrap_SWCompress_SendChars, METH_VARARGS },
+ { (char *)"SWCompress_Encode", _wrap_SWCompress_Encode, METH_VARARGS },
+ { (char *)"SWCompress_Decode", _wrap_SWCompress_Decode, METH_VARARGS },
+ { (char *)"SWCompress_swigregister", SWCompress_swigregister, METH_VARARGS },
+ { (char *)"new_LZSSCompress", _wrap_new_LZSSCompress, METH_VARARGS },
+ { (char *)"delete_LZSSCompress", _wrap_delete_LZSSCompress, METH_VARARGS },
+ { (char *)"LZSSCompress_Encode", _wrap_LZSSCompress_Encode, METH_VARARGS },
+ { (char *)"LZSSCompress_Decode", _wrap_LZSSCompress_Decode, METH_VARARGS },
+ { (char *)"LZSSCompress_swigregister", LZSSCompress_swigregister, METH_VARARGS },
+ { (char *)"new_ZipCompress", _wrap_new_ZipCompress, METH_VARARGS },
+ { (char *)"delete_ZipCompress", _wrap_delete_ZipCompress, METH_VARARGS },
+ { (char *)"ZipCompress_Encode", _wrap_ZipCompress_Encode, METH_VARARGS },
+ { (char *)"ZipCompress_Decode", _wrap_ZipCompress_Decode, METH_VARARGS },
+ { (char *)"ZipCompress_swigregister", ZipCompress_swigregister, METH_VARARGS },
+ { NULL, NULL }
+};
+
+
+/* -------- 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_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_zCom[] = {{"_p_zCom", 0, "zCom *", 0},{"_p_zCom"},{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_TreeKeyIdx[] = {{"_p_TreeKeyIdx", 0, "TreeKeyIdx *", 0},{"_p_TreeKeyIdx"},{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_RawCom[] = {{"_p_RawCom", 0, "RawCom *", 0},{"_p_RawCom"},{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_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_zCom,
+_swigt__p_string,
+_swigt__p_SectionMap,
+_swigt__p_SWDisplay,
+_swigt__p_AttributeTypeList,
+_swigt__p_SWText,
+_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_OptionsList,
+_swigt__p_listTstring_t,
+_swigt__p_zText,
+_swigt__p_SWTextEncoding,
+_swigt__p_unsigned_long,
+0
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+static swig_const_info swig_const_table[] = {
+{0}};
+
+#ifdef __cplusplus
+}
+#endif
+
+#ifdef __cplusplus
+extern "C"
+#endif
+SWIGEXPORT(void) SWIG_init(void) {
+ static PyObject *SWIG_globals = 0;
+ static int typeinit = 0;
+ PyObject *m, *d;
+ int i;
+ if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
+ m = Py_InitModule((char *) SWIG_name, SwigMethods);
+ d = PyModule_GetDict(m);
+
+ if (!typeinit) {
+ for (i = 0; swig_types_initial[i]; i++) {
+ swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
+ }
+ typeinit = 1;
+ }
+ SWIG_InstallConstants(d,swig_const_table);
+
+}
+
diff --git a/bindings/swig/python/Sword.py b/bindings/swig/python/Sword.py
new file mode 100644
index 0000000..c3758b5
--- /dev/null
+++ b/bindings/swig/python/Sword.py
@@ -0,0 +1,796 @@
+# This file was created automatically by SWIG.
+# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
+import _Sword
+def _swig_setattr(self,class_type,name,value):
+ if (name == "this"):
+ if isinstance(value, class_type):
+ self.__dict__[name] = value.this
+ if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
+ del value.thisown
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ self.__dict__[name] = value
+
+def _swig_getattr(self,class_type,name):
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+
+
+class SWConfig(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWConfig, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWConfig, name)
+ __swig_setmethods__["filename"] = _Sword.SWConfig_filename_set
+ __swig_getmethods__["filename"] = _Sword.SWConfig_filename_get
+ if _newclass:filename = property(_Sword.SWConfig_filename_get,_Sword.SWConfig_filename_set)
+ __swig_setmethods__["Sections"] = _Sword.SWConfig_Sections_set
+ __swig_getmethods__["Sections"] = _Sword.SWConfig_Sections_get
+ if _newclass:Sections = property(_Sword.SWConfig_Sections_get,_Sword.SWConfig_Sections_set)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWConfig,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SWConfig):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def Load(*args): return apply(_Sword.SWConfig_Load,args)
+ def Save(*args): return apply(_Sword.SWConfig_Save,args)
+ def set(*args): return apply(_Sword.SWConfig_set,args)
+ def get(*args): return apply(_Sword.SWConfig_get,args)
+ def __repr__(self):
+ return "<C SWConfig instance at %s>" % (self.this,)
+
+class SWConfigPtr(SWConfig):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWConfig
+_Sword.SWConfig_swigregister(SWConfigPtr)
+
+class SWMgr(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWMgr, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWMgr, name)
+ __swig_getmethods__["findConfig"] = lambda x: _Sword.SWMgr_findConfig
+ if _newclass:findConfig = staticmethod(_Sword.SWMgr_findConfig)
+ __swig_setmethods__["config"] = _Sword.SWMgr_config_set
+ __swig_getmethods__["config"] = _Sword.SWMgr_config_get
+ if _newclass:config = property(_Sword.SWMgr_config_get,_Sword.SWMgr_config_set)
+ __swig_setmethods__["sysconfig"] = _Sword.SWMgr_sysconfig_set
+ __swig_getmethods__["sysconfig"] = _Sword.SWMgr_sysconfig_get
+ if _newclass:sysconfig = property(_Sword.SWMgr_sysconfig_get,_Sword.SWMgr_sysconfig_set)
+ __swig_setmethods__["Modules"] = _Sword.SWMgr_Modules_set
+ __swig_getmethods__["Modules"] = _Sword.SWMgr_Modules_get
+ if _newclass:Modules = property(_Sword.SWMgr_Modules_get,_Sword.SWMgr_Modules_set)
+ __swig_setmethods__["prefixPath"] = _Sword.SWMgr_prefixPath_set
+ __swig_getmethods__["prefixPath"] = _Sword.SWMgr_prefixPath_get
+ if _newclass:prefixPath = property(_Sword.SWMgr_prefixPath_get,_Sword.SWMgr_prefixPath_set)
+ __swig_setmethods__["configPath"] = _Sword.SWMgr_configPath_set
+ __swig_getmethods__["configPath"] = _Sword.SWMgr_configPath_get
+ if _newclass:configPath = property(_Sword.SWMgr_configPath_get,_Sword.SWMgr_configPath_set)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWMgr,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SWMgr):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def Load(*args): return apply(_Sword.SWMgr_Load,args)
+ def setGlobalOption(*args): return apply(_Sword.SWMgr_setGlobalOption,args)
+ def getGlobalOption(*args): return apply(_Sword.SWMgr_getGlobalOption,args)
+ def getGlobalOptionTip(*args): return apply(_Sword.SWMgr_getGlobalOptionTip,args)
+ def getGlobalOptions(*args): return apply(_Sword.SWMgr_getGlobalOptions,args)
+ def getGlobalOptionValues(*args): return apply(_Sword.SWMgr_getGlobalOptionValues,args)
+ def setCipherKey(*args): return apply(_Sword.SWMgr_setCipherKey,args)
+ def module(*args): return apply(_Sword.SWMgr_module,args)
+ def __repr__(self):
+ return "<C SWMgr instance at %s>" % (self.this,)
+
+class SWMgrPtr(SWMgr):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWMgr
+_Sword.SWMgr_swigregister(SWMgrPtr)
+SWMgr_findConfig = _Sword.SWMgr_findConfig
+
+
+class SWModule(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWModule, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWModule, name)
+ __swig_setmethods__["terminateSearch"] = _Sword.SWModule_terminateSearch_set
+ __swig_getmethods__["terminateSearch"] = _Sword.SWModule_terminateSearch_get
+ if _newclass:terminateSearch = property(_Sword.SWModule_terminateSearch_get,_Sword.SWModule_terminateSearch_set)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWModule,args)
+ self.thisown = 1
+ def Error(*args): return apply(_Sword.SWModule_Error,args)
+ def isUnicode(*args): return apply(_Sword.SWModule_isUnicode,args)
+ def getConfig(*args): return apply(_Sword.SWModule_getConfig,args)
+ def getConfigEntry(*args): return apply(_Sword.SWModule_getConfigEntry,args)
+ def SetKey(*args): return apply(_Sword.SWModule_SetKey,args)
+ def Key(*args): return apply(_Sword.SWModule_Key,args)
+ def CreateKey(*args): return apply(_Sword.SWModule_CreateKey,args)
+ def KeyText(*args): return apply(_Sword.SWModule_KeyText,args)
+ def Display(*args): return apply(_Sword.SWModule_Display,args)
+ __swig_getmethods__["nullPercent"] = lambda x: _Sword.SWModule_nullPercent
+ if _newclass:nullPercent = staticmethod(_Sword.SWModule_nullPercent)
+ def Search(*args): return apply(_Sword.SWModule_Search,args)
+ def createSearchFramework(*args): return apply(_Sword.SWModule_createSearchFramework,args)
+ def hasSearchFramework(*args): return apply(_Sword.SWModule_hasSearchFramework,args)
+ def isSearchOptimallySupported(*args): return apply(_Sword.SWModule_isSearchOptimallySupported,args)
+ def next(*args): return apply(_Sword.SWModule_next,args)
+ def prev(*args): return apply(_Sword.SWModule_prev,args)
+ def inc(*args): return apply(_Sword.SWModule_inc,args)
+ def dec(*args): return apply(_Sword.SWModule_dec,args)
+ def setPosition(*args): return apply(_Sword.SWModule_setPosition,args)
+ def top(*args): return apply(_Sword.SWModule_top,args)
+ def bottom(*args): return apply(_Sword.SWModule_bottom,args)
+ def text(*args): return apply(_Sword.SWModule_text,args)
+ def StripText(*args): return apply(_Sword.SWModule_StripText,args)
+ def getRawEntry(*args): return apply(_Sword.SWModule_getRawEntry,args)
+ def setSkipConsecutiveLinks(*args): return apply(_Sword.SWModule_setSkipConsecutiveLinks,args)
+ def getSkipConsecutiveLinks(*args): return apply(_Sword.SWModule_getSkipConsecutiveLinks,args)
+ def getEntryAttributes(*args): return apply(_Sword.SWModule_getEntryAttributes,args)
+ def processEntryAttributes(*args): return apply(_Sword.SWModule_processEntryAttributes,args)
+ def isProcessEntryAttributes(*args): return apply(_Sword.SWModule_isProcessEntryAttributes,args)
+ def Name(*args): return apply(_Sword.SWModule_Name,args)
+ def Description(*args): return apply(_Sword.SWModule_Description,args)
+ def Type(*args): return apply(_Sword.SWModule_Type,args)
+ def Direction(*args): return apply(_Sword.SWModule_Direction,args)
+ def Encoding(*args): return apply(_Sword.SWModule_Encoding,args)
+ def Markup(*args): return apply(_Sword.SWModule_Markup,args)
+ def Lang(*args): return apply(_Sword.SWModule_Lang,args)
+ def isWritable(*args): return apply(_Sword.SWModule_isWritable,args)
+ __swig_getmethods__["createModule"] = lambda x: _Sword.SWModule_createModule
+ if _newclass:createModule = staticmethod(_Sword.SWModule_createModule)
+ def setEntry(*args): return apply(_Sword.SWModule_setEntry,args)
+ def deleteEntry(*args): return apply(_Sword.SWModule_deleteEntry,args)
+ def write(*args): return apply(_Sword.SWModule_write,args)
+ def writeLink(*args): return apply(_Sword.SWModule_writeLink,args)
+ def __del__(self, destroy= _Sword.delete_SWModule):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C SWModule instance at %s>" % (self.this,)
+
+class SWModulePtr(SWModule):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWModule
+_Sword.SWModule_swigregister(SWModulePtr)
+SWModule_nullPercent = _Sword.SWModule_nullPercent
+
+SWModule_createModule = _Sword.SWModule_createModule
+
+
+class SW_POSITION(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SW_POSITION, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SW_POSITION, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SW_POSITION,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SW_POSITION):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C SW_POSITION instance at %s>" % (self.this,)
+
+class SW_POSITIONPtr(SW_POSITION):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SW_POSITION
+_Sword.SW_POSITION_swigregister(SW_POSITIONPtr)
+
+class SWKey(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWKey, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWKey, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWKey,args)
+ self.thisown = 1
+ def clone(*args): return apply(_Sword.SWKey_clone,args)
+ def Persist(*args): return apply(_Sword.SWKey_Persist,args)
+ def setPersist(*args): return apply(_Sword.SWKey_setPersist,args)
+ def Error(*args): return apply(_Sword.SWKey_Error,args)
+ def setText(*args): return apply(_Sword.SWKey_setText,args)
+ def getText(*args): return apply(_Sword.SWKey_getText,args)
+ def getShortText(*args): return apply(_Sword.SWKey_getShortText,args)
+ def compare(*args): return apply(_Sword.SWKey_compare,args)
+ def equals(*args): return apply(_Sword.SWKey_equals,args)
+ def decrement(*args): return apply(_Sword.SWKey_decrement,args)
+ def increment(*args): return apply(_Sword.SWKey_increment,args)
+ def Traversable(*args): return apply(_Sword.SWKey_Traversable,args)
+ def Index(*args): return apply(_Sword.SWKey_Index,args)
+ def next(*args): return apply(_Sword.SWKey_next,args)
+ def prev(*args): return apply(_Sword.SWKey_prev,args)
+ def setKey(*args): return apply(_Sword.SWKey_setKey,args)
+ def __del__(self, destroy= _Sword.delete_SWKey):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C SWKey instance at %s>" % (self.this,)
+
+class SWKeyPtr(SWKey):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWKey
+_Sword.SWKey_swigregister(SWKeyPtr)
+
+class VerseKey(SWKey):
+ __swig_setmethods__ = {}
+ for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, VerseKey, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, VerseKey, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_VerseKey,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_VerseKey):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def clone(*args): return apply(_Sword.VerseKey_clone,args)
+ def LowerBound(*args): return apply(_Sword.VerseKey_LowerBound,args)
+ def UpperBound(*args): return apply(_Sword.VerseKey_UpperBound,args)
+ def ClearBounds(*args): return apply(_Sword.VerseKey_ClearBounds,args)
+ def decrement(*args): return apply(_Sword.VerseKey_decrement,args)
+ def increment(*args): return apply(_Sword.VerseKey_increment,args)
+ def Traversable(*args): return apply(_Sword.VerseKey_Traversable,args)
+ def getBookName(*args): return apply(_Sword.VerseKey_getBookName,args)
+ def getBookAbbrev(*args): return apply(_Sword.VerseKey_getBookAbbrev,args)
+ def Testament(*args): return apply(_Sword.VerseKey_Testament,args)
+ def Book(*args): return apply(_Sword.VerseKey_Book,args)
+ def Chapter(*args): return apply(_Sword.VerseKey_Chapter,args)
+ def Verse(*args): return apply(_Sword.VerseKey_Verse,args)
+ def Normalize(*args): return apply(_Sword.VerseKey_Normalize,args)
+ def AutoNormalize(*args): return apply(_Sword.VerseKey_AutoNormalize,args)
+ def Headings(*args): return apply(_Sword.VerseKey_Headings,args)
+ def getOSISRef(*args): return apply(_Sword.VerseKey_getOSISRef,args)
+ def compare(*args): return apply(_Sword.VerseKey_compare,args)
+ def _compare(*args): return apply(_Sword.VerseKey__compare,args)
+ def setLocale(*args): return apply(_Sword.VerseKey_setLocale,args)
+ def getLocale(*args): return apply(_Sword.VerseKey_getLocale,args)
+ def __repr__(self):
+ return "<C VerseKey instance at %s>" % (self.this,)
+
+class VerseKeyPtr(VerseKey):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = VerseKey
+_Sword.VerseKey_swigregister(VerseKeyPtr)
+
+class ListKey(SWKey):
+ __swig_setmethods__ = {}
+ for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, ListKey, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, ListKey, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_ListKey,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_ListKey):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def clone(*args): return apply(_Sword.ListKey_clone,args)
+ def ClearList(*args): return apply(_Sword.ListKey_ClearList,args)
+ def Count(*args): return apply(_Sword.ListKey_Count,args)
+ def Remove(*args): return apply(_Sword.ListKey_Remove,args)
+ def SetToElement(*args): return apply(_Sword.ListKey_SetToElement,args)
+ def GetElement(*args): return apply(_Sword.ListKey_GetElement,args)
+ def add(*args): return apply(_Sword.ListKey_add,args)
+ def copyFrom(*args): return apply(_Sword.ListKey_copyFrom,args)
+ def setPosition(*args): return apply(_Sword.ListKey_setPosition,args)
+ def decrement(*args): return apply(_Sword.ListKey_decrement,args)
+ def increment(*args): return apply(_Sword.ListKey_increment,args)
+ def Traversable(*args): return apply(_Sword.ListKey_Traversable,args)
+ def Index(*args): return apply(_Sword.ListKey_Index,args)
+ def __repr__(self):
+ return "<C ListKey instance at %s>" % (self.this,)
+
+class ListKeyPtr(ListKey):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = ListKey
+_Sword.ListKey_swigregister(ListKeyPtr)
+
+class TreeKey(SWKey):
+ __swig_setmethods__ = {}
+ for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, TreeKey, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, TreeKey, name)
+ def getLocalName(*args): return apply(_Sword.TreeKey_getLocalName,args)
+ def setLocalName(*args): return apply(_Sword.TreeKey_setLocalName,args)
+ def getUserData(*args): return apply(_Sword.TreeKey_getUserData,args)
+ def setUserData(*args): return apply(_Sword.TreeKey_setUserData,args)
+ def getFullName(*args): return apply(_Sword.TreeKey_getFullName,args)
+ def root(*args): return apply(_Sword.TreeKey_root,args)
+ def parent(*args): return apply(_Sword.TreeKey_parent,args)
+ def firstChild(*args): return apply(_Sword.TreeKey_firstChild,args)
+ def nextSibling(*args): return apply(_Sword.TreeKey_nextSibling,args)
+ def previousSibling(*args): return apply(_Sword.TreeKey_previousSibling,args)
+ def hasChildren(*args): return apply(_Sword.TreeKey_hasChildren,args)
+ def append(*args): return apply(_Sword.TreeKey_append,args)
+ def appendChild(*args): return apply(_Sword.TreeKey_appendChild,args)
+ def insertBefore(*args): return apply(_Sword.TreeKey_insertBefore,args)
+ def remove(*args): return apply(_Sword.TreeKey_remove,args)
+ def setOffset(*args): return apply(_Sword.TreeKey_setOffset,args)
+ def getOffset(*args): return apply(_Sword.TreeKey_getOffset,args)
+ def setPosition(*args): return apply(_Sword.TreeKey_setPosition,args)
+ def Traversable(*args): return apply(_Sword.TreeKey_Traversable,args)
+ def Index(*args): return apply(_Sword.TreeKey_Index,args)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C TreeKey instance at %s>" % (self.this,)
+
+class TreeKeyPtr(TreeKey):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = TreeKey
+_Sword.TreeKey_swigregister(TreeKeyPtr)
+
+class TreeKeyIdx(TreeKey):
+ __swig_setmethods__ = {}
+ for _s in [TreeKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, TreeKeyIdx, name, value)
+ __swig_getmethods__ = {}
+ for _s in [TreeKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, TreeKeyIdx, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C TreeKeyIdx instance at %s>" % (self.this,)
+
+class TreeKeyIdxPtr(TreeKeyIdx):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = TreeKeyIdx
+_Sword.TreeKeyIdx_swigregister(TreeKeyIdxPtr)
+
+class LocaleMgr(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, LocaleMgr, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, LocaleMgr, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_LocaleMgr,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_LocaleMgr):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def getLocale(*args): return apply(_Sword.LocaleMgr_getLocale,args)
+ def getAvailableLocales(*args): return apply(_Sword.LocaleMgr_getAvailableLocales,args)
+ def getDefaultLocaleName(*args): return apply(_Sword.LocaleMgr_getDefaultLocaleName,args)
+ def setDefaultLocaleName(*args): return apply(_Sword.LocaleMgr_setDefaultLocaleName,args)
+ __swig_getmethods__["systemLocaleMgr"] = lambda x: _Sword.LocaleMgr_systemLocaleMgr
+ if _newclass:systemLocaleMgr = staticmethod(_Sword.LocaleMgr_systemLocaleMgr)
+ def __repr__(self):
+ return "<C LocaleMgr instance at %s>" % (self.this,)
+
+class LocaleMgrPtr(LocaleMgr):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = LocaleMgr
+_Sword.LocaleMgr_swigregister(LocaleMgrPtr)
+LocaleMgr_systemLocaleMgr = _Sword.LocaleMgr_systemLocaleMgr
+
+
+class SWFilterMgr(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWFilterMgr, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWFilterMgr, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C SWFilterMgr instance at %s>" % (self.this,)
+
+class SWFilterMgrPtr(SWFilterMgr):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWFilterMgr
+_Sword.SWFilterMgr_swigregister(SWFilterMgrPtr)
+
+class SWText(SWModule):
+ __swig_setmethods__ = {}
+ for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWText, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, SWText, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWText,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SWText):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C SWText instance at %s>" % (self.this,)
+
+class SWTextPtr(SWText):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWText
+_Sword.SWText_swigregister(SWTextPtr)
+
+class RawText(SWText):
+ __swig_setmethods__ = {}
+ for _s in [SWText]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, RawText, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWText]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, RawText, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_RawText,args)
+ self.thisown = 1
+ __swig_getmethods__["createModule"] = lambda x: _Sword.RawText_createModule
+ if _newclass:createModule = staticmethod(_Sword.RawText_createModule)
+ def __del__(self, destroy= _Sword.delete_RawText):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C RawText instance at %s>" % (self.this,)
+
+class RawTextPtr(RawText):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = RawText
+_Sword.RawText_swigregister(RawTextPtr)
+RawText_createModule = _Sword.RawText_createModule
+
+
+class zText(SWText):
+ __swig_setmethods__ = {}
+ for _s in [SWText]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, zText, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWText]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, zText, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_zText,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_zText):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ __swig_getmethods__["createModule"] = lambda x: _Sword.zText_createModule
+ if _newclass:createModule = staticmethod(_Sword.zText_createModule)
+ def __repr__(self):
+ return "<C zText instance at %s>" % (self.this,)
+
+class zTextPtr(zText):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = zText
+_Sword.zText_swigregister(zTextPtr)
+zText_createModule = _Sword.zText_createModule
+
+
+class SWCom(SWModule):
+ __swig_setmethods__ = {}
+ for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWCom, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, SWCom, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C SWCom instance at %s>" % (self.this,)
+
+class SWComPtr(SWCom):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWCom
+_Sword.SWCom_swigregister(SWComPtr)
+
+class RawCom(SWCom):
+ __swig_setmethods__ = {}
+ for _s in [SWCom]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, RawCom, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWCom]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, RawCom, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C RawCom instance at %s>" % (self.this,)
+
+class RawComPtr(RawCom):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = RawCom
+_Sword.RawCom_swigregister(RawComPtr)
+
+class zCom(SWCom):
+ __swig_setmethods__ = {}
+ for _s in [SWCom]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, zCom, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWCom]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, zCom, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C zCom instance at %s>" % (self.this,)
+
+class zComPtr(zCom):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = zCom
+_Sword.zCom_swigregister(zComPtr)
+
+class SWGenBook(SWModule):
+ __swig_setmethods__ = {}
+ for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWGenBook, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, SWGenBook, name)
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<C SWGenBook instance at %s>" % (self.this,)
+
+class SWGenBookPtr(SWGenBook):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWGenBook
+_Sword.SWGenBook_swigregister(SWGenBookPtr)
+
+class RawGenBook(SWGenBook):
+ __swig_setmethods__ = {}
+ for _s in [SWGenBook]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, RawGenBook, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWGenBook]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, RawGenBook, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_RawGenBook,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_RawGenBook):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ __swig_getmethods__["createModule"] = lambda x: _Sword.RawGenBook_createModule
+ if _newclass:createModule = staticmethod(_Sword.RawGenBook_createModule)
+ def __repr__(self):
+ return "<C RawGenBook instance at %s>" % (self.this,)
+
+class RawGenBookPtr(RawGenBook):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = RawGenBook
+_Sword.RawGenBook_swigregister(RawGenBookPtr)
+RawGenBook_createModule = _Sword.RawGenBook_createModule
+
+
+class SWLD(SWModule):
+ __swig_setmethods__ = {}
+ for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWLD, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, SWLD, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWLD,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SWLD):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def __repr__(self):
+ return "<C SWLD instance at %s>" % (self.this,)
+
+class SWLDPtr(SWLD):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWLD
+_Sword.SWLD_swigregister(SWLDPtr)
+
+class RawLD(SWLD):
+ __swig_setmethods__ = {}
+ for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, RawLD, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, RawLD, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_RawLD,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_RawLD):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ __swig_getmethods__["createModule"] = lambda x: _Sword.RawLD_createModule
+ if _newclass:createModule = staticmethod(_Sword.RawLD_createModule)
+ def __repr__(self):
+ return "<C RawLD instance at %s>" % (self.this,)
+
+class RawLDPtr(RawLD):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = RawLD
+_Sword.RawLD_swigregister(RawLDPtr)
+RawLD_createModule = _Sword.RawLD_createModule
+
+
+class RawLD4(SWLD):
+ __swig_setmethods__ = {}
+ for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, RawLD4, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, RawLD4, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_RawLD4,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_RawLD4):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ __swig_getmethods__["createModule"] = lambda x: _Sword.RawLD4_createModule
+ if _newclass:createModule = staticmethod(_Sword.RawLD4_createModule)
+ def __repr__(self):
+ return "<C RawLD4 instance at %s>" % (self.this,)
+
+class RawLD4Ptr(RawLD4):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = RawLD4
+_Sword.RawLD4_swigregister(RawLD4Ptr)
+RawLD4_createModule = _Sword.RawLD4_createModule
+
+
+class zLD(SWLD):
+ __swig_setmethods__ = {}
+ for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, zLD, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, zLD, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_zLD,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_zLD):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ __swig_getmethods__["createModule"] = lambda x: _Sword.zLD_createModule
+ if _newclass:createModule = staticmethod(_Sword.zLD_createModule)
+ def __repr__(self):
+ return "<C zLD instance at %s>" % (self.this,)
+
+class zLDPtr(zLD):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = zLD
+_Sword.zLD_swigregister(zLDPtr)
+zLD_createModule = _Sword.zLD_createModule
+
+
+class SWCompress(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SWCompress, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SWCompress, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_SWCompress,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_SWCompress):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def Buf(*args): return apply(_Sword.SWCompress_Buf,args)
+ def zBuf(*args): return apply(_Sword.SWCompress_zBuf,args)
+ def GetChars(*args): return apply(_Sword.SWCompress_GetChars,args)
+ def SendChars(*args): return apply(_Sword.SWCompress_SendChars,args)
+ def Encode(*args): return apply(_Sword.SWCompress_Encode,args)
+ def Decode(*args): return apply(_Sword.SWCompress_Decode,args)
+ def __repr__(self):
+ return "<C SWCompress instance at %s>" % (self.this,)
+
+class SWCompressPtr(SWCompress):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = SWCompress
+_Sword.SWCompress_swigregister(SWCompressPtr)
+
+class LZSSCompress(SWCompress):
+ __swig_setmethods__ = {}
+ for _s in [SWCompress]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, LZSSCompress, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWCompress]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, LZSSCompress, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_LZSSCompress,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_LZSSCompress):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def Encode(*args): return apply(_Sword.LZSSCompress_Encode,args)
+ def Decode(*args): return apply(_Sword.LZSSCompress_Decode,args)
+ def __repr__(self):
+ return "<C LZSSCompress instance at %s>" % (self.this,)
+
+class LZSSCompressPtr(LZSSCompress):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = LZSSCompress
+_Sword.LZSSCompress_swigregister(LZSSCompressPtr)
+
+class ZipCompress(SWCompress):
+ __swig_setmethods__ = {}
+ for _s in [SWCompress]: __swig_setmethods__.update(_s.__swig_setmethods__)
+ __setattr__ = lambda self, name, value: _swig_setattr(self, ZipCompress, name, value)
+ __swig_getmethods__ = {}
+ for _s in [SWCompress]: __swig_getmethods__.update(_s.__swig_getmethods__)
+ __getattr__ = lambda self, name: _swig_getattr(self, ZipCompress, name)
+ def __init__(self,*args):
+ self.this = apply(_Sword.new_ZipCompress,args)
+ self.thisown = 1
+ def __del__(self, destroy= _Sword.delete_ZipCompress):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+ def Encode(*args): return apply(_Sword.ZipCompress_Encode,args)
+ def Decode(*args): return apply(_Sword.ZipCompress_Decode,args)
+ def __repr__(self):
+ return "<C ZipCompress instance at %s>" % (self.this,)
+
+class ZipCompressPtr(ZipCompress):
+ def __init__(self,this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = ZipCompress
+_Sword.ZipCompress_swigregister(ZipCompressPtr)
+
+
diff --git a/bindings/swig/swig.m4 b/bindings/swig/swig.m4
new file mode 100644
index 0000000..9ff89d7
--- /dev/null
+++ b/bindings/swig/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/sword.m4 b/bindings/swig/sword.m4
new file mode 100644
index 0000000..f22da68
--- /dev/null
+++ b/bindings/swig/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/tcl.m4 b/bindings/swig/tcl.m4
new file mode 100644
index 0000000..11afcd1
--- /dev/null
+++ b/bindings/swig/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/zlib.m4 b/bindings/swig/zlib.m4
new file mode 100644
index 0000000..952e5bd
--- /dev/null
+++ b/bindings/swig/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/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..5c1d98e
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,27 @@
+An apt-getable archive is now available at crosswire with additional
+modules that you can install. Add this line to your sources.list
+
+deb ftp://ftp.crosswire.org/pub/sword/packages/debian woody main
+
+Please report any bugs with these packages to the sword package,
+priority wishlist.
+
+You can also download modules from:
+
+ http://www.crosswire.org/sword/modules/
+
+then install modules in /usr/share/sword
+
+# cd /usr/share/sword
+# unzip ~/SwordMod.zip
+
+That method of install is not supported.
+
+Alternatively, for use on a user by user basis install them to
+~/.sword
+
+Also, feel free to join us on irc.openprojects.net #sword
+
+:)
+Daniel
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d55d9f7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,223 @@
+sword (1.5.4+cvs20021008-1) unstable; urgency=low
+
+ * try and build a package from cvs
+
+ -- Daniel Glassey <wdg@debian.org> Tue, 8 Oct 2002 19:08:46 +0100
+
+sword (1.5.4-1) unstable; urgency=low
+
+ * new upstream version
+ * bump shlibs version since old version was released with woody
+ * package now libsword2 instead of libsword1
+
+ -- Daniel Glassey <wdg@debian.org> Sat, 28 Sep 2002 13:31:47 +0100
+
+sword (1.5.3-3) unstable; urgency=high
+
+ * problem integrating hppa patch messed up rules, trying again
+ * updating README.Debian to mention apt-gettable archive on
+ crosswire
+
+ -- Daniel Glassey <wdg@debian.org> Sun, 14 Apr 2002 15:19:14 +0100
+
+sword (1.5.3-2) unstable; urgency=low
+
+ * make sure will build on gcc-3.0, sorry, Closes: #142617
+ * alpha won't compile with -g flag so compiling without it
+ see bug 142703
+
+ -- Daniel Glassey <wdg@debian.org> Sat, 13 Apr 2002 13:04:28 +0100
+
+sword (1.5.3-1) unstable; urgency=high
+
+ * New upstream release
+
+ -- Daniel Glassey <wdg@debian.org> Tue, 2 Apr 2002 21:38:58 +0100
+
+sword (1.5.2-10) unstable; urgency=low
+
+ * -9 failed on hppa, using namespace std needed in testblocks.cpp
+ fix tested on sarti
+
+ -- Daniel Glassey <wdg@debian.org> Sat, 9 Feb 2002 18:20:40 +0000
+
+sword (1.5.2-9) unstable; urgency=low
+
+ * make the diatheke configure executable in debian/rules
+ Closes: #132863
+ * make diatheke description useful debian/control
+ * bump shlibs version to 1.5.2-9
+ * debian/rules dh_shlibdeps changed to -ldebian/tmp/usr/lib
+ * compzip.cpp #include string.h and stdlib.h added for gcc 3.0
+ * README.Debian mention #sword irc channel
+
+ -- Daniel Glassey <wdg@debian.org> Fri, 8 Feb 2002 08:59:29 +0000
+
+sword (1.5.2-8) unstable; urgency=low
+
+ * rwphtml change greek_str to signed char
+ * migrate to automake 1.5
+ * move utilities to separate package libsword-runtime, Closes: #130909
+ * new package containing diatheke from apps/console/diatheke, Closes: #130908
+ * Bump standards version to 3.5.6.0
+
+ -- Daniel Glassey <wdg@debian.org> Thu, 24 Jan 2002 20:01:16 +0000
+
+sword (1.5.2-7) unstable; urgency=low
+
+ * Rename roman.cpp to romanc.cpp, Closes #130038
+ * Update README.Debian to mention apt-gettable module archive
+ deb http://www.crosswire.org/~glasseyes/debian unstable main
+
+ -- Daniel Glassey <wdg@debian.org> Wed, 23 Jan 2002 18:53:18 +0000
+
+sword (1.5.2-6) unstable; urgency=low
+
+ * remove -Werror, autobuilders not happy (fair enough, I can check
+ through the build logs for warnings myself :) )
+ * rawstr, rawstr4 more signed char in findoffset, Closes: #130038
+ * c++ comments so roman.c -> roman.cpp, Closes: #129886
+
+ -- Daniel Glassey <wdg@debian.org> Mon, 21 Jan 2002 20:19:31 +0000
+
+sword (1.5.2-5) unstable; urgency=low
+
+ * char signedness fixes
+ (in response to debian-devel-announce from Gerhard Tonn
+ swkey: persist to signed char
+ swmodule: createModule to signed char
+ createSearchFramework to signed char
+ versekey: book,testament to signed char
+ swmgr: setCipherKey to signed char
+ filemgr: trunc to signed char
+ rawtext: createSearchFramework to signed char
+ rawstr: findoffset to signed char
+ rawstr4: findoffset to signed char
+ in gettext make localsize to unsigned int
+ * use -Werror in Makefile.cfg to catch any more
+ * anything else is either already fixed or will be fixed in the
+ imminent version 1.5.3
+
+ -- Daniel Glassey <wdg@debian.org> Thu, 17 Jan 2002 23:55:08 +0000
+
+sword (1.5.2-4) unstable; urgency=low
+
+ * Change maintainer to wdg@debian.org
+ * change shlibs to libsword1 >= 1.5.2-4 (gnomesword bug 123418)
+ by dh_makeshlibs -V 'libsword1 (>= 1.5.2-4)' in debian/rules
+ * remove reference to cheatah in package description
+
+ -- Daniel Glassey <wdg@debian.org> Tue, 11 Dec 2001 22:36:44 +0000
+
+sword (1.5.2-3) unstable; urgency=low
+
+ * oops, include gifs in html documentation as well
+ * chmod 755 before executing configure, closes #122658
+ * remove autoconf from build-depends
+
+ -- Daniel Glassey <wdg@debian.org> Wed, 5 Dec 2001 00:25:07 +0000
+
+sword (1.5.2-2) unstable; urgency=low
+
+ * Backport endian solution from CVS, Closes: #103732
+ * include some module utilities in the dev package
+ * use the latest config.* from /usr/share/misc
+
+ -- Daniel Glassey <wdg@debian.org> Mon, 3 Dec 2001 19:11:08 +0000
+
+sword (1.5.2-1.1) unstable; urgency=low
+
+ * NMU to satisfy build-dependencies.
+ * Fix gcc 3.0 compile failures. Closes: #108707.
+
+ -- LaMont Jones <lamont@debian.org> Tue, 14 Aug 2001 09:25:42 -0600
+
+sword (1.5.2-1) unstable; urgency=low
+
+ * New upstream release
+ * final 1.5.2 release
+
+ -- Daniel Glassey <wdg@debian.org> Mon, 2 Jul 2001 22:53:50 +0000
+
+sword (1.5.1.99-1) unstable; urgency=low
+
+ * New upstream release
+ * prerelease of 1.5.2
+ * change maintainer address to wdg@debian.org
+ * add libsword-dev.manpages
+
+ -- Daniel Glassey <wdg@debian.org> Mon, 25 Jun 2001 18:32:04 +0000
+
+sword (1.5.1a-4) unstable; urgency=low
+
+ * Merged with Ivan Moore's latest package (1.5.1a-2 in Debian)
+ * Now recommends frontend and doesn't depend on modules
+
+ -- Daniel Glassey <danglassey@yahoo.com> Mon, 22 Jan 2001 22:22:10 +0000
+
+sword (1.5.1a-3) unstable; urgency=low
+
+ * use autoconf to determine platform
+ * add zlib to build-depends
+ * up standards version to 3.2.1
+ * module creation progs added to dev
+
+ -- Daniel Glassey <danglassey@yahoo.com> Mon, 15 Jan 2001 18:53:14 +0000
+
+sword (1.5.1a-2) unstable; urgency=low
+
+ * recommend text, suggest dict and comm. install locales.
+
+ -- Daniel Glassey <danglassey@yahoo.com> Mon, 4 Dec 2000 21:32:33 +0000
+
+sword (1.5.1a-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Daniel Glassey <danglassey@yahoo.com> Thu, 23 Nov 2000 20:06:03 +0000
+
+sword (1.5.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Daniel Glassey <danglassey@yahoo.com> Mon, 28 Aug 2000 21:34:49 +0100
+
+sword (1.4.6-2) unstable; urgency=low
+
+ * Change of maintainer
+
+ -- Daniel Glassey <danglassey@yahoo.com> Mon, 28 Aug 2000 19:14:22 +0100
+
+sword (1.4.6-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Ivan E. Moore II <rkrusty@debian.org> Thu, 20 Jan 2000 19:30:16 -0700
+
+sword (1.4.4-4) unstable; urgency=low
+
+ * Removing mods.conf file
+
+ -- Ivan E. Moore II <rkrusty@debian.org> Fri, 01 Oct 1999 07:30:16 -0400
+
+sword (1.4.4-3) unstable; urgency=low
+
+ * Fixing minor pathing bug with mods.conf files
+
+ -- Ivan E. Moore II <rkrusty@debian.org> Fri, 01 Oct 1999 04:45:16 -0400
+
+sword (1.4.4-2) unstable; urgency=low
+
+ * Fixing alot of things.
+
+ -- Ivan E. Moore II <rkrusty@debian.org> Fri, 01 Oct 1999 01:30:16 -0400
+
+sword (1.4.4-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Ivan E. Moore II <rkrusty@debian.org> Thu, 30 Sep 1999 08:30:16 -0400
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644
index 0000000..f1aa0db
--- /dev/null
+++ b/debian/conffiles
@@ -0,0 +1 @@
+/etc/sword.conf
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e403b78
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,63 @@
+Source: sword
+Build-Depends: debhelper, libz-dev, php4-dev, perl (>= 5.6.0-16)
+Section: libs
+Priority: optional
+Maintainer: Daniel Glassey <wdg@debian.org>
+Standards-Version: 3.5.6.0
+
+Package: libsword2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Recommends: sword-frontend
+Description: API/library for bible software
+ The SWORD Project is an open source, cross-platform (Linux, Windows, Solaris,
+ etc.) API/library for Bible software with a constantly growing list of
+ front-ends (GUI, textmode, web-based, etc.) and a library of over 100 text
+ modules.
+ .
+ This package contains the core libraries for the project.
+ .
+ Please read the README.Debian for more information on how to obtain other
+ modules for sword.
+
+Package: libsword-dev
+Architecture: any
+Section: devel
+Depends: libsword1 (= ${Source-Version}), libc6-dev, libz-dev
+Provides: sword-dev
+Recommends: libsword-runtime
+Description: Development files for libsword
+ This package contains the static libraries and headers for developing
+ applications that use the sword library.
+
+Package: libsword-runtime
+Architecture: any
+Section: text
+Depends: ${shlibs:Depends}
+Conflicts: libsword-dev (<< 1.5.3-1)
+Description: Utilities for sword
+ This package contains utilities for generating data modules.
+
+Package: diatheke
+Architecture: any
+Section: web
+Depends: ${shlibs:Depends}, apache | httpd
+Recommends: libapache-mod-perl | apache-perl
+Description: CGI script for making bible website
+ A command line utility for sword, and a cgi perl script that
+ uses the utility to produce a bible browsing/searching website.
+
+Package: libsword-perl
+Architecture: any
+Section: web
+Depends: ${shlibs:Depends}, ${perl:Depends}
+Description: Perl bindings for sword
+ incorporate bible related texts into your perl scripts
+
+Package: php4-sword
+Architecture: any
+Section: web
+Depends: ${shlibs:Depends}, php4 | php4-cgi
+Description: PHP bindings for sword
+ incorporate bible related texts into your php4 scripts
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2687b39
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+This package was debianized by Ivan E. Moore II <rkrusty@debian.org> on
+Thu, 30 Sep 1999 08:30:16 -0400.
+
+It was downloaded from www.crosswire.org
+
+Copyright:
+The SWORD Project is copyrighted under the GNU GPL.
+Note: The GNU GPL is copyrighted by the Free Software Foundation, Inc.,
+but the SWORD Project is copyrighted by the members of the SWORD Project
+team and Corporately under:
+ CrossWire Bible Society
+ P. O. Box 2528
+ Tempe, AZ 85280-2528
+-------------------------------------------------------------------------
+ For the GNU GPL .. see /usr/share/common-licenses/GPL
+
diff --git a/debian/diatheke.dirs b/debian/diatheke.dirs
new file mode 100644
index 0000000..f9ae794
--- /dev/null
+++ b/debian/diatheke.dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/lib/cgi-bin
+usr/share/doc/diatheke/examples
diff --git a/debian/diatheke.undocumented b/debian/diatheke.undocumented
new file mode 100644
index 0000000..66c3751
--- /dev/null
+++ b/debian/diatheke.undocumented
@@ -0,0 +1 @@
+diatheke.1
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..a712b0a
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,6 @@
+usr/lib
+etc/
+usr/share/sword
+usr/share/sword/mods.d
+usr/share/sword/modules
+usr/share/sword/locales.d
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e867332
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+doc/greektrans.txt
+doc/translation-template.conf
diff --git a/debian/libsword-dev.dirs b/debian/libsword-dev.dirs
new file mode 100644
index 0000000..db8f930
--- /dev/null
+++ b/debian/libsword-dev.dirs
@@ -0,0 +1,3 @@
+usr/lib
+usr/include/sword
+usr/share/doc/libsword-dev/html
diff --git a/debian/libsword-dev.doc-base b/debian/libsword-dev.doc-base
new file mode 100644
index 0000000..df71c21
--- /dev/null
+++ b/debian/libsword-dev.doc-base
@@ -0,0 +1,9 @@
+Document: sword
+Title: SWORD API Documentation
+Author: The SWORD Project
+Abstract: SWORD API Documentation
+Section: programming
+
+Format: HTML
+Index: /usr/share/doc/libsword-dev/html/index.html
+Files: /usr/share/doc/libsword-dev/html/*.html
diff --git a/debian/libsword-runtime.dirs b/debian/libsword-runtime.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/libsword-runtime.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/libsword-runtime.undocumented b/debian/libsword-runtime.undocumented
new file mode 100644
index 0000000..eeb28f9
--- /dev/null
+++ b/debian/libsword-runtime.undocumented
@@ -0,0 +1,9 @@
+lexdump.1
+mkfastmod.1
+mod2vpl.1
+vpl2mod.1
+mod2zmod.1
+modwrite.1
+addld.1
+emptyvss.1
+addvs.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d5a05df
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,129 @@
+#!/usr/bin/make -f
+#-*- makefile -*-
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# This version is for a hypothetical package that builds an
+# architecture-dependant package, as well as an architecture-independant
+# package.
+
+package=sword
+
+version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
+version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+#export DH_COMPAT=2
+
+ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifeq ($(ARCH),alpha)
+ COMPILER_FLAGS=CFLAGS="-O0 -mieee" CXXFLAGS="-O0 -mieee"
+endif
+PHPENV=EXTRA_INCLUDES="-I../../../include -DSWIG"
+PHPEXTDIR=`php-config --extension-dir`
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ #autoheader
+ #autoconf
+ chmod 755 configure
+ #chmod 755 apps/console/diatheke/configure
+ chmod 755 bindings/swig/configure
+ $(COMPILER_FLAGS) ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
+ --infodir=\$${prefix}/share/info --with-zlib \
+ --sysconfdir=/etc --enable-shared --with-icu
+ #cd apps/console/diatheke && ./configure --prefix=/usr
+ cd bindings/swig && $(COMPILER_FLAGS) ./configure --prefix=/usr \
+ --with-sword-dir=`pwd`/../.. --without-swigbin
+ cd bindings/swig && $(MAKE) perl_makebuild \
+ && $(MAKE) php_makebuild
+ cd bindings/swig/php && phpize && \
+ $(COMPILER_FLAGS) ./configure --prefix=/usr --enable-Sword
+ touch configure.stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+ dh_testdir
+
+ $(MAKE)
+ cd bindings/swig && $(MAKE) perl_makebuild
+ cd bindings/swig/perl && perl Makefile.PL INSTALLDIRS=vendor && \
+ $(MAKE) OPTIMIZE="-O2 -g -Wall"
+ cd bindings/swig/php && $(PHPENV) $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ -$(MAKE) distclean
+ -cd bindings/swig/perl && $(MAKE) clean
+ -cd bindings/swig/php && $(MAKE) distclean && rm -rf modules
+ -cd bindings/swig && $(MAKE) distclean
+ rm -f build-stamp configure-stamp install-stamp lib/lib* \
+ config.h config.status config.log config.cache
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp.
+ \$(MAKE) install DESTDIR=`pwd`/debian/tmp
+ cd bindings/swig/perl && \
+ $(MAKE) install PREFIX=`pwd`/../../../debian/libsword-perl/usr
+ #cd bindings/swig/php && \
+ $(MAKE) install DESTDIR=`pwd`/../../../debian/php-sword
+ dh_install bindings/swig/php/modules/*.so $(PHPEXTDIR)
+
+ dh_movefiles -pphp4-sword usr/lib/php4/*
+ dh_movefiles -plibsword-dev usr/lib/lib*so usr/lib/lib*.a \
+ usr/include/*
+ dh_movefiles -pdiatheke usr/bin/diatheke
+ dh_movefiles -plibsword-runtime usr/bin/*
+ mkdir -p debian/libsword-dev/usr/share/doc/libsword-dev/html
+ cp -R doc/api-documentation/html debian/libsword-dev/usr/share/doc/libsword-dev
+ mkdir -p debian/diatheke/usr/share/doc/diatheke/examples
+ cp -a apps/console/diatheke/cgi/index-public.html debian/diatheke/usr/share/doc/diatheke/examples
+ cp -a apps/console/diatheke/cgi/*.pl debian/diatheke/usr/lib/cgi-bin
+ cp -a apps/console/diatheke/README debian/diatheke/usr/share/doc/diatheke
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installexamples
+ dh_installinfo
+ dh_installmenu
+ #dh_installmanpages
+ dh_installman
+ dh_undocumented
+ dh_installchangelogs ChangeLog
+ dh_strip
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_makeshlibs -V 'libsword1 (>=1.5.3-1)'
+ dh_perl
+ dh_shlibdeps -ldebian/tmp/usr/lib
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+#source diff:
+# @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/shlibs b/debian/shlibs
new file mode 100644
index 0000000..fab1ad8
--- /dev/null
+++ b/debian/shlibs
@@ -0,0 +1 @@
+libsword 2 libsword2 (>> 1.5.4-1)
diff --git a/debian/sword.conf b/debian/sword.conf
new file mode 100644
index 0000000..49ea7ee
--- /dev/null
+++ b/debian/sword.conf
@@ -0,0 +1,2 @@
+[Install]
+DataPath=/usr/share/sword/
diff --git a/doc/ads/de/sword_cd.pdf b/doc/ads/de/sword_cd.pdf
new file mode 100644
index 0000000..91c8b6a
--- /dev/null
+++ b/doc/ads/de/sword_cd.pdf
Binary files differ
diff --git a/doc/ads/de/sword_cd.sxw b/doc/ads/de/sword_cd.sxw
new file mode 100644
index 0000000..e116513
--- /dev/null
+++ b/doc/ads/de/sword_cd.sxw
Binary files differ
diff --git a/doc/ads/de/sword_cd_cover.pdf b/doc/ads/de/sword_cd_cover.pdf
new file mode 100644
index 0000000..405249c
--- /dev/null
+++ b/doc/ads/de/sword_cd_cover.pdf
Binary files differ
diff --git a/doc/ads/de/sword_cd_cover.sxd b/doc/ads/de/sword_cd_cover.sxd
new file mode 100644
index 0000000..45b19f4
--- /dev/null
+++ b/doc/ads/de/sword_cd_cover.sxd
Binary files differ
diff --git a/icu/translit_Any_Latex.txt b/icu/translit_Any_Latex.txt
new file mode 100644
index 0000000..d6423f1
--- /dev/null
+++ b/icu/translit_Any_Latex.txt
@@ -0,0 +1,79 @@
+// Any_Latex
+
+// This transliterator is supposed to convert Unicode text into
+// the (language-specific) transliterated format that latex (babel and arabtex)
+// expects. For the start, only ancient greek will be supported. Feel free to
+// add support for your language if desired.
+// I am just starting to use ICU, so please forgive my mistakes.
+
+// Author Martin Gruner
+// Copyright the Crosswire Bible Society
+
+translit_Any_Latex {
+ Rule {
+
+ //Decompose combined characters
+ ":: NFD (NFC) ;"
+
+ //How to handle accents now?
+
+ //The letters:
+ " \u0307A > | ;" //Iota subscriptum
+ " \u03084 > ' ;" //Accent acute
+
+ " \u03091 > A ;" //Alpha
+ " \u03092 > B ;" //Beta
+ " \u03093 > D ;" //Gamma
+ " \u03094 > G ;" //Delta
+ " \u03095 > E ;" //Epsilon
+ " \u03096 > Z ;" //Zeta
+ " \u03097 > J ;" //Thetha !!
+ " \u03098 > H ;" //Eta
+ " \u03099 > I ;" //Iota
+ " \u0309A > K ;" //Kappa
+ " \u0309B > L ;" //Lambda
+ " \u0309C > M ;" //My
+ " \u0309D > N ;" //Ny
+ " \u0309E > X ;" //Xi
+ " \u0309F > O ;" //Omikron
+ " \u030A0 > P ;" //Pi
+ " \u030A1 > R ;" //Rho
+ " \u030A3 > S ;" //Sigma
+ " \u030A4 > T ;" //Tau
+ " \u030A5 > U ;" //Ypsilon !!
+ " \u030A6 > F ;" //Phi
+ " \u030A7 > Q ;" //Chi !!
+ " \u030A8 > Y ;" //Psi !!
+ " \u030A9 > W ;" //Omikron
+
+ " \u030B1 > a ;" //alpha
+ " \u030B2 > b ;" //beta
+ " \u030B3 > d ;" //gamma
+ " \u030B4 > g ;" //delta
+ " \u030B5 > e ;" //epsilon
+ " \u030B6 > z ;" //zeta
+ " \u030B7 > j ;" //thetha !!
+ " \u030B8 > h ;" //eta
+ " \u030B9 > i ;" //iota
+ " \u030BA > k ;" //kappa
+ " \u030BB > l ;" //lambda
+ " \u030BC > m ;" //my
+ " \u030BD > n ;" //ny
+ " \u030BE > x ;" //xi
+ " \u030BF > o ;" //omikron
+ " \u030C0 > p ;" //pi
+ " \u030C1 > r ;" //rho
+ " \u030C3 > s ;" //sigma
+ " \u030C4 > t ;" //tau
+ " \u030C5 > u ;" //ypsilon !!
+ " \u030C6 > f ;" //phi
+ " \u030C7 > q ;" //chi !!
+ " \u030C8 > y ;" //psi !!
+ " \u030C9 > w ;" //omikron
+
+
+ ":: NFC (NFD);"
+
+ }
+}
+
diff --git a/include/ftpparse.h b/include/ftpparse.h
new file mode 100644
index 0000000..3da3c1b
--- /dev/null
+++ b/include/ftpparse.h
@@ -0,0 +1,53 @@
+#ifndef FTPPARSE_H
+#define FTPPARSE_H
+
+#include <time.h>
+
+/*
+ftpparse(&fp,buf,len) tries to parse one line of LIST output.
+
+The line is an array of len characters stored in buf.
+It should not include the terminating CR LF; so buf[len] is typically CR.
+
+If ftpparse() can't find a filename, it returns 0.
+
+If ftpparse() can find a filename, it fills in fp and returns 1.
+fp is a struct ftpparse, defined below.
+The name is an array of fp.namelen characters stored in fp.name;
+fp.name points somewhere within buf.
+*/
+
+struct ftpparse {
+ char *name; /* not necessarily 0-terminated */
+ int namelen;
+ int flagtrycwd; /* 0 if cwd is definitely pointless, 1 otherwise */
+ int flagtryretr; /* 0 if retr is definitely pointless, 1 otherwise */
+ int sizetype;
+ long size; /* number of octets */
+ int mtimetype;
+ time_t mtime; /* modification time */
+ int idtype;
+ char *id; /* not necessarily 0-terminated */
+ int idlen;
+} ;
+
+#define FTPPARSE_SIZE_UNKNOWN 0
+#define FTPPARSE_SIZE_BINARY 1 /* size is the number of octets in TYPE I */
+#define FTPPARSE_SIZE_ASCII 2 /* size is the number of octets in TYPE A */
+
+#define FTPPARSE_MTIME_UNKNOWN 0
+#define FTPPARSE_MTIME_LOCAL 1 /* time is correct */
+#define FTPPARSE_MTIME_REMOTEMINUTE 2 /* time zone and secs are unknown */
+#define FTPPARSE_MTIME_REMOTEDAY 3 /* time zone and time of day are unknown */
+/*
+When a time zone is unknown, it is assumed to be GMT. You may want
+to use localtime() for LOCAL times, along with an indication that the
+time is correct in the local time zone, and gmtime() for REMOTE* times.
+*/
+
+#define FTPPARSE_ID_UNKNOWN 0
+#define FTPPARSE_ID_FULL 1 /* unique identifier for files on this FTP server */
+
+extern int ftpparse(struct ftpparse *,char *,int);
+
+#endif
diff --git a/include/installmgr.h b/include/installmgr.h
new file mode 100644
index 0000000..8491fdf
--- /dev/null
+++ b/include/installmgr.h
@@ -0,0 +1,51 @@
+#ifndef INSTALLMGR_H
+#define INSTALLMGR_H
+
+#include <stdio.h>
+#include <vector>
+#include <defs.h>
+
+SWORD_NAMESPACE_START
+
+
+// move this include to cpp once struct ftpparse isn't exposed anymore
+extern "C" {
+#include <ftpparse.h>
+}
+
+
+// initialize/cleanup SYSTEMWIDE library with life of this static.
+class InstallMgr_init {
+public:
+ InstallMgr_init();
+ ~InstallMgr_init();
+};
+
+
+struct FtpFile {
+ const char *filename;
+ FILE *stream;
+};
+
+int my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream);
+int my_fprogress(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow);
+
+//public stuff
+
+
+// probably change to group these ftp functions into some kind of FTPSession
+// class, and open/close functions become c_tor/d_tor.
+
+void *FTPOpenSession();
+void FTPCloseSession(void *session);
+char FTPURLGetFile(void *session, const char *dest, const char *sourceurl, bool passive = true, void (*status_callback)(double dltotal, double dlnow)=0);
+
+// probably change to not expose struct ftpparse. We probably need our
+// own FTPFile class or something that contains things like file name,
+// size, type (dir, file, special). Then change to vector of this class
+// instead of ftpparse
+std::vector<struct ftpparse> FTPURLGetDir(void *session, const char *dirurl, bool passive = true);
+
+SWORD_NAMESPACE_END
+
+#endif
diff --git a/locales.d/af.conf b/locales.d/af.conf
new file mode 100644
index 0000000..226e0ca
--- /dev/null
+++ b/locales.d/af.conf
@@ -0,0 +1,256 @@
+[Meta]
+Name=af
+Description=Afrikaans
+
+[Text]
+Genesis=Gen
+Exodus=Ex
+Leviticus=Lev
+Numbers=Num
+Deuteronomy=Deut
+Joshua=Josh
+Judges=Judg
+Ruth=Ruth
+I Samuel=1Sam
+II Samuel=2Sam
+I Kings=1Kgs
+II Kings=2Kgs
+I Chronicles=1Chr
+II Chronicles=2Chr
+Ezra=Ezra
+Nehemiah=Neh
+Esther=Esth
+Job=Job
+Psalms=Pss
+Proverbs=Prov
+Ecclesiastes=Eccl
+Song of Solomon=Song
+Isaiah=Isa
+Jeremiah=Jer
+Lamentations=Lam
+Ezekiel=Eze
+Daniel=Dan
+Hosea=Hos
+Joel=Joel
+Amos=Amos
+Obadiah=Ob
+Jonah=Jonah
+Micah=Mic
+Nahum=Nah
+Habakkuk=Hab
+Zephaniah=Zeph
+Haggai=Hag
+Zechariah=Zech
+Malachi=Mal
+Matthew=Mt
+Mark=Mk
+Luke=Lk
+John=Jn
+Acts=Acts
+Romans=Rom
+I Corinthians=1Cor
+II Corinthians=2Cor
+Galatians=Gal
+Ephesians=Eph
+Philippians=Php
+Colossians=Col
+I Thessalonians=1Thes
+II Thessalonians=2Thes
+I Timothy=1Tim
+II Timothy=2Tim
+Titus=Tit
+Philemon=Phm
+Hebrews=Heb
+James=Jas
+I Peter=1Pet
+II Peter=2Pet
+I John=1Jn
+II John=2Jn
+III John=3Jn
+Jude=Jude
+Revelation of John=Rev
+
+[Book Abbrevs]
+1 C=46
+1 CHRONICLES=13
+1 CORINTHIANS=46
+1 JN=62
+1 JOHN=62
+1 KGS=11
+1 KINGS=11
+1 PETER=60
+1 PTR=60
+1 SAMUEL=9
+1 THESSALONIANS=52
+1 TIMOTHY=54
+1C=46
+1CHRONICLES=13
+1CORINTHIANS=46
+1JN=62
+1JOHN=62
+1KGS=11
+1KINGS=11
+1PETER=60
+1PTR=60
+1SAMUEL=9
+1THESSALONIANS=52
+1TIMOTHY=54
+2 C=47
+2 CHRONICLES=14
+2 CORINTHIANS=47
+2 JN=63
+2 JOHN=63
+2 KGS=12
+2 KINGS=12
+2 PETER=61
+2 PTR=61
+2 SAMUEL=10
+2 THESSALONIANS=53
+2 TIMOTHY=55
+2C=47
+2CHRONICLES=14
+2CORINTHIANS=47
+2JN=63
+2JOHN=63
+2KGS=12
+2KINGS=12
+2PETER=61
+2PTR=61
+2SAMUEL=10
+2THESSALONIANS=53
+2TIMOTHY=55
+3 JN=64
+3 JOHN=64
+3JN=64
+3JOHN=64
+ACTS=44
+AMOS=30
+APOCALYPSE OF ST. JOHN=66
+C=51
+CANTICLE OF CANTICLES=22
+COC=22
+COLOSSIANS=51
+D=5
+DANIEL=27
+DEUTERONOMY=5
+E=49
+ECCLESIASTES=21
+EPHESIANS=49
+ESTER=17
+ESTHER=17
+EXODUS=2
+EZEKIEL=26
+EZRA=15
+G=1
+GALATIANS=48
+GENESIS=1
+H=58
+HABAKKUK=35
+HAGGAI=37
+HEBREWS=58
+HOSEA=28
+I C=46
+I CHRONICLES=13
+I CORINTHIANS=46
+I JN=62
+I JOHN=62
+I KGS=11
+I KINGS=11
+I PETER=60
+I PTR=60
+I SAMUEL=9
+I THESSALONIANS=52
+I TIMOTHY=54
+IC=46
+ICHRONICLES=13
+ICORINTHIANS=46
+II C=47
+II CHRONICLES=14
+II CORINTHIANS=47
+II JN=63
+II JOHN=63
+II KGS=12
+II KINGS=12
+II PETER=61
+II PTR=61
+II SAMUEL=10
+II THESSALONIANS=53
+II TIMOTHY=55
+IIC=47
+IICHRONICLES=14
+IICORINTHIANS=47
+III JN=64
+III JOHN=64
+IIIJN=64
+IIIJOHN=64
+IIJN=63
+IIJOHN=63
+IIKGS=12
+IIKINGS=12
+IIPETER=61
+IIPTR=61
+IISAMUEL=10
+IITHESSALONIANS=53
+IITIMOTHY=55
+IJN=62
+IJOHN=62
+IKGS=11
+IKINGS=11
+IPETER=60
+IPTR=60
+ISA=23
+ISAIAH=23
+ISAMUEL=9
+ITHESSALONIANS=52
+ITIMOTHY=54
+J=43
+JAMES=59
+JAS=59
+JEREMIAH=24
+JN=43
+JO=43
+JOB=18
+JOEL=29
+JOHN=43
+JONAH=32
+JOSHUA=6
+JUD=7
+JUDE=65
+JUDGES=7
+L=42
+LAMENTATIONS=25
+LEVITICUS=3
+LK=42
+LUKE=42
+MA=40
+MALACHI=39
+MARK=41
+MATTHEW=40
+MICAH=33
+MK=41
+MR=41
+MT=40
+N=4
+NAHUM=34
+NEHEMIAH=16
+NUMBERS=4
+OBADIAH=31
+P=19
+PH=50
+PHILEMON=57
+PHILIPPIANS=50
+PHM=57
+PHP=50
+PROVERBS=20
+PSALMS=19
+PSM=19
+PSS=19
+REVELATION OF JOHN=66
+ROMANS=45
+RUTH=8
+SONG OF SOLOMON=22
+SONG OF SONGS=22
+SOS=22
+TITUS=56
+ZECHARIAH=38
+ZEPHANIAH=36
diff --git a/locales.d/en_GB.conf b/locales.d/en_GB.conf
new file mode 100644
index 0000000..d2290e9
--- /dev/null
+++ b/locales.d/en_GB.conf
@@ -0,0 +1,256 @@
+[Meta]
+Name=en_GB
+Description=English (UK)
+
+[Text]
+Genesis=Genesis
+Exodus=Exodus
+Leviticus=Leviticus
+Numbers=Numbers
+Deuteronomy=Deuteronomy
+Joshua=Joshua
+Judges=Judges
+Ruth=Ruth
+I Samuel=I Samuel
+II Samuel=II Samuel
+I Kings=I Kings
+II Kings=II Kings
+I Chronicles=I Chronicles
+II Chronicles=II Chronicles
+Ezra=Ezra
+Nehemiah=Nehemiah
+Esther=Esther
+Job=Job
+Psalms=Psalms
+Proverbs=Proverbs
+Ecclesiastes=Ecclesiastes
+Song of Solomon=Song of Solomon
+Isaiah=Isaiah
+Jeremiah=Jeremiah
+Lamentations=Lamentations
+Ezekiel=Ezekiel
+Daniel=Daniel
+Hosea=Hosea
+Joel=Joel
+Amos=Amos
+Obadiah=Obadiah
+Jonah=Jonah
+Micah=Micah
+Nahum=Nahum
+Habakkuk=Habakkuk
+Zephaniah=Zephaniah
+Haggai=Haggai
+Zechariah=Zechariah
+Malachi=Malachi
+Matthew=Matthew
+Mark=Mark
+Luke=Luke
+John=John
+Acts=Acts
+Romans=Romans
+I Corinthians=I Corinthians
+II Corinthians=II Corinthians
+Galatians=Galatians
+Ephesians=Ephesians
+Philippians=Philippians
+Colossians=Colossians
+I Thessalonians=I Thessalonians
+II Thessalonians=II Thessalonians
+I Timothy=I Timothy
+II Timothy=II Timothy
+Titus=Titus
+Philemon=Philemon
+Hebrews=Hebrews
+James=James
+I Peter=I Peter
+II Peter=II Peter
+I John=I John
+II John=II John
+III John=III John
+Jude=Jude
+Revelation of John=Revelation of John
+
+[Book Abbrevs]
+1 C=46
+1 CHRONICLES=13
+1 CORINTHIANS=46
+1 JN=62
+1 JOHN=62
+1 KGS=11
+1 KINGS=11
+1 PETER=60
+1 PTR=60
+1 SAMUEL=9
+1 THESSALONIANS=52
+1 TIMOTHY=54
+1C=46
+1CHRONICLES=13
+1CORINTHIANS=46
+1JN=62
+1JOHN=62
+1KGS=11
+1KINGS=11
+1PETER=60
+1PTR=60
+1SAMUEL=9
+1THESSALONIANS=52
+1TIMOTHY=54
+2 C=47
+2 CHRONICLES=14
+2 CORINTHIANS=47
+2 JN=63
+2 JOHN=63
+2 KGS=12
+2 KINGS=12
+2 PETER=61
+2 PTR=61
+2 SAMUEL=10
+2 THESSALONIANS=53
+2 TIMOTHY=55
+2C=47
+2CHRONICLES=14
+2CORINTHIANS=47
+2JN=63
+2JOHN=63
+2KGS=12
+2KINGS=12
+2PETER=61
+2PTR=61
+2SAMUEL=10
+2THESSALONIANS=53
+2TIMOTHY=55
+3 JN=64
+3 JOHN=64
+3JN=64
+3JOHN=64
+ACTS=44
+AMOS=30
+APOCALYPSE OF ST. JOHN=66
+C=51
+CANTICLE OF CANTICLES=22
+COC=22
+COLOSSIANS=51
+D=5
+DANIEL=27
+DEUTERONOMY=5
+E=49
+ECCLESIASTES=21
+EPHESIANS=49
+ESTER=17
+ESTHER=17
+EXODUS=2
+EZEKIEL=26
+EZRA=15
+G=1
+GALATIANS=48
+GENESIS=1
+H=58
+HABAKKUK=35
+HAGGAI=37
+HEBREWS=58
+HOSEA=28
+I C=46
+I CHRONICLES=13
+I CORINTHIANS=46
+I JN=62
+I JOHN=62
+I KGS=11
+I KINGS=11
+I PETER=60
+I PTR=60
+I SAMUEL=9
+I THESSALONIANS=52
+I TIMOTHY=54
+IC=46
+ICHRONICLES=13
+ICORINTHIANS=46
+II C=47
+II CHRONICLES=14
+II CORINTHIANS=47
+II JN=63
+II JOHN=63
+II KGS=12
+II KINGS=12
+II PETER=61
+II PTR=61
+II SAMUEL=10
+II THESSALONIANS=53
+II TIMOTHY=55
+IIC=47
+IICHRONICLES=14
+IICORINTHIANS=47
+III JN=64
+III JOHN=64
+IIIJN=64
+IIIJOHN=64
+IIJN=63
+IIJOHN=63
+IIKGS=12
+IIKINGS=12
+IIPETER=61
+IIPTR=61
+IISAMUEL=10
+IITHESSALONIANS=53
+IITIMOTHY=55
+IJN=62
+IJOHN=62
+IKGS=11
+IKINGS=11
+IPETER=60
+IPTR=60
+ISA=23
+ISAIAH=23
+ISAMUEL=9
+ITHESSALONIANS=52
+ITIMOTHY=54
+J=43
+JAMES=59
+JAS=59
+JEREMIAH=24
+JN=43
+JO=43
+JOB=18
+JOEL=29
+JOHN=43
+JONAH=32
+JOSHUA=6
+JUD=7
+JUDE=65
+JUDGES=7
+L=42
+LAMENTATIONS=25
+LEVITICUS=3
+LK=42
+LUKE=42
+MA=40
+MALACHI=39
+MARK=41
+MATTHEW=40
+MICAH=33
+MK=41
+MR=41
+MT=40
+N=4
+NAHUM=34
+NEHEMIAH=16
+NUMBERS=4
+OBADIAH=31
+P=19
+PH=50
+PHILEMON=57
+PHILIPPIANS=50
+PHM=57
+PHP=50
+PROVERBS=20
+PSALMS=19
+PSM=19
+PSS=19
+REVELATION OF JOHN=66
+ROMANS=45
+RUTH=8
+SONG OF SOLOMON=22
+SONG OF SONGS=22
+SOS=22
+TITUS=56
+ZECHARIAH=38
+ZEPHANIAH=36
diff --git a/locales.d/et.conf b/locales.d/et.conf
new file mode 100644
index 0000000..dd6af07
--- /dev/null
+++ b/locales.d/et.conf
@@ -0,0 +1,430 @@
+[Meta]
+Name=et
+Description=Estonian
+
+[Text]
+Genesis= 1. Moosese raamat
+Exodus= 2. Moosese raamat
+Leviticus=3. Moosese raamat
+Numbers=4. Moosese raamat
+Deuteronomy=5. Moosese raamat
+Joshua=Joosua
+Judges=KohtumУistjate raamat
+Ruth=Rutt
+I Samuel=1. Saamueli raamat
+II Samuel=2. Saamueli raamat
+I Kings=1. Kuningate raamat
+II Kings=2. Kuningate raamat
+I Chronicles=1. Ajaraamat
+II Chronicles=2. Ajaraamat
+Ezra=Esra
+Nehemiah=Nehemja
+Esther=Ester
+Job=Iiob
+Psalms=Laulud
+Proverbs=уpetussУnad
+Ecclesiastes=Koguja
+Song of Solomon=эlemlaul
+Isaiah=Jesaja
+Jeremiah=Jeremija
+Lamentations=Nutulaulud
+Ezekiel=Hesekiel
+Daniel=Taaniel
+Hosea=Hoosea
+Joel=Joel
+Amos=Aamos
+Obadiah=Obadja
+Jonah=Joona
+Micah=Miika
+Nahum=Nahum
+Habakkuk=Habakuk
+Zephaniah=Sefanja
+Haggai=Haggai
+Zechariah=Sakarja
+Malachi=Malaki
+Matthew=Matteuse evangeelium
+Mark=Markuse evangeelium
+Luke=Luuka evangeelium
+John=Johannese evangeelium
+Acts=Apostlite teod
+Romans=Pauluse kiri roomlastele
+I Corinthians=Pauluse 1. kiri korintlastele
+II Corinthians=Pauluse 2. kiri korintlastele
+Galatians=Pauluse kiri galaatlastele
+Ephesians=Pauluse kiri efeslastele
+Philippians=Pauluse kiri filiplastele
+Colossians=Pauluse kiri koloslastele
+I Thessalonians=Pauluse 1. kiri tessalooniklastele
+II Thessalonians=Pauluse 2. kiri tessalooniklastele
+I Timothy= Pauluse 1. kiri Timoteosele
+II Timothy=Pauluse 2. kiri Timoteosele
+Titus=Pauluse kiri Tiitusele
+Philemon=Pauluse kiri Fileemonile
+Hebrews=Kiri heebrealastele
+James=Jaakobuse kiri
+I Peter=Peetruse 1. kiri
+II Peter=Peetruse 2. kiri
+I John=Johannese 1. kiri
+II John=Johannese 2. kiri
+III John=Johannese 3. kiri
+Jude=Juuda kiri
+Revelation of John=Johannese ilmutus
+
+[Book Abbrevs]
+
+1 C=46
+1 CHRONICLES=13
+1 CORINTHIANS=46
+1 JN=62
+1 JOHN=62
+1 KGS=11
+1 KINGS=11
+1 PETER=60
+1 PTR=60
+1 SAMUEL=9
+1 THESSALONIANS=52
+1 TIMOTHY=54
+1C=46
+1CHRONICLES=13
+1CORINTHIANS=46
+1JN=62
+1JOHN=62
+1KGS=11
+1KINGS=11
+1PETER=60
+1PTR=60
+1SAMUEL=9
+1THESSALONIANS=52
+1TIMOTHY=54
+2 C=47
+2 CHRONICLES=14
+2 CORINTHIANS=47
+2 JN=63
+2 JOHN=63
+2 KGS=12
+2 KINGS=12
+2 PETER=61
+2 PTR=61
+2 SAMUEL=10
+2 THESSALONIANS=53
+2 TIMOTHY=55
+2C=47
+2CHRONICLES=14
+2CORINTHIANS=47
+2JN=63
+2JOHN=63
+2KGS=12
+2KINGS=12
+2PETER=61
+2PTR=61
+2SAMUEL=10
+2THESSALONIANS=53
+2TIMOTHY=55
+3 JN=64
+3 JOHN=64
+3JN=64
+3JOHN=64
+ACTS=44
+AMOS=30
+APOCALYPSE OF ST. JOHN=66
+C=51
+CANTICLE OF CANTICLES=22
+COC=22
+COLOSSIANS=51
+D=5
+DANIEL=27
+DEUTERONOMY=5
+E=49
+ECCLESIASTES=21
+EPHESIANS=49
+ESTER=17
+ESTHER=17
+EXODUS=2
+EZEKIEL=26
+EZRA=15
+G=1
+GALATIANS=48
+GENESIS=1
+H=58
+HABAKKUK=35
+HAGGAI=37
+HEBREWS=58
+HOSEA=28
+I C=46
+I CHRONICLES=13
+I CORINTHIANS=46
+I JN=62
+I JOHN=62
+I KGS=11
+I KINGS=11
+I PETER=60
+I PTR=60
+I SAMUEL=9
+I THESSALONIANS=52
+I TIMOTHY=54
+IC=46
+ICHRONICLES=13
+ICORINTHIANS=46
+II C=47
+II CHRONICLES=14
+II CORINTHIANS=47
+II JN=63
+II JOHN=63
+II KGS=12
+II KINGS=12
+II PETER=61
+II PTR=61
+II SAMUEL=10
+II THESSALONIANS=53
+II TIMOTHY=55
+IIC=47
+IICHRONICLES=14
+IICORINTHIANS=47
+III JN=64
+III JOHN=64
+IIIJN=64
+IIIJOHN=64
+IIJN=63
+IIJOHN=63
+IIKGS=12
+IIKINGS=12
+IIPETER=61
+IIPTR=61
+IISAMUEL=10
+IITHESSALONIANS=53
+IITIMOTHY=55
+IJN=62
+IJOHN=62
+IKGS=11
+IKINGS=11
+IPETER=60
+IPTR=60
+ISA=23
+ISAIAH=23
+ISAMUEL=9
+ITHESSALONIANS=52
+ITIMOTHY=54
+J=43
+JAMES=59
+JAS=59
+JEREMIAH=24
+JN=43
+JO=43
+JOB=18
+JOEL=29
+JOHN=43
+JONAH=32
+JOSHUA=6
+JUD=7
+JUDE=65
+JUDGES=7
+L=42
+LAMENTATIONS=25
+LEVITICUS=3
+LK=42
+LUKE=42
+MA=40
+MALACHI=39
+MARK=41
+MATTHEW=40
+MICAH=33
+MK=41
+MR=41
+MT=40
+N=4
+NAHUM=34
+NEHEMIAH=16
+NUMBERS=4
+OBADIAH=31
+P=19
+PH=50
+PHILEMON=57
+PHILIPPIANS=50
+PHM=57
+PHP=50
+PROVERBS=20
+PSALMS=19
+PSM=19
+PSS=19
+REVELATION OF JOHN=66
+ROMANS=45
+RUTH=8
+SONG OF SOLOMON=22
+SONG OF SONGS=22
+SOS=22
+TITUS=56
+ZECHARIAH=38
+ZEPHANIAH=36
+
+<here are the booknames and possible abbrevations of your language! The
+names below are german booknames, change them!. The number after the names
+are the booknumber (location of book in the bible). Delete these three lines!>
+
+1MO=1
+1MS=1
+G=1
+GE=1
+1. MOOSESE RAAMAT=1
+2MO=2
+2MS=2
+EX=2
+2. MOOSESE RAAMAT=2
+3MO=3
+3MS=3
+LEV=3
+3. MOOSESE RAAMAT=3
+4MO=4
+4MS=4
+NU=4
+4. MOOSESE RAAMAT=4
+5MO=5
+5MS=5
+DT=5
+5. MOOSESE RAAMAT=5
+JO=6
+JOOSUA=6
+KM=7
+KOHTUMуISTJATE RAAMAT=7
+RU=8
+RUTT=8
+1SM=9
+1. SAAMUELI RAAMAT=9
+2SM=10
+2. SAAMUELI RAAMAT=10
+1KN=11
+1KU=11
+1. KUNINGATE RAAMAT=11
+2KN=12
+2KU=12
+2. KUNINGATE RAAMAT=12
+1AJ=13
+1. AJARAAMAT=13
+2AJ=14
+2. AJARAAMAT=14
+ES=15
+ESRA=15
+NE=16
+NEHEMJA=16
+EST=17
+ESTER=17
+II=18
+IIOB=18
+PS=19
+LA=19
+PSALMID=19
+LAULUD=19
+уP=20
+уPETUSSуNAD=20
+KG=21
+KOGUJA=21
+эL=22
+эLEMLAUL=22
+JS=23
+JESAJA=23
+JR=24
+JEREMIJA=24
+NL=25
+NUTULAULUD=25
+HS=26
+HESEKIEL=26
+TA=27
+TAANIEL=27
+HO=28
+HOOSEA=28
+JL=29
+JOEL=29
+AM=30
+AAMOS=30
+OB=31
+OBADJA=31
+JN=32
+JOONA=32
+MI=33
+MIIKA=33
+NA=34
+NAHUM=34
+HA=35
+HABAKUK=35
+SF=36
+SEFANJA=36
+HG=37
+HAGGAI=37
+SK=38
+SAKARJA=38
+ML=39
+MALAKI=39
+MT=40
+MAT=40
+MATTEUSE EVANGEELIUM=40
+MK=41
+MAR=41
+MARKUSE EVANGEELIUM=41
+LU=42
+LK=42
+LUUKA EVANGEELIUM=42
+JH=43
+JOHANNESE EVANGEELIUM=43
+AP=44
+APT=44
+APOSTLITE TEOD=44
+RO=45
+RM=45
+PAULUSE KIRI ROOMLASTELE=45
+1KO=46
+1KR=46
+1KORINTLASTELE=46
+PAULUSE 1. KIRI KORINTLASTELE=46
+2KO=47
+2KR=47
+2KORINTLASTELE=47
+PAULUSE 2. KIRI KORINTLASTELE=47
+GL=48
+PAULUSE KIRI GALAATLASTELE=48
+EF=49
+PAULUSE KIRI EFESLASTELE=49
+FI=50
+PAULUSE KIRI FILIPLASTELE=50
+KO=51
+KL=51
+PAULUSE KIRI KOLOSLASTELE=51
+1TS=52
+1TE=52
+PAULUSE 1. KIRI TESSALOONIKLASTELE=52
+2TS=53
+2TE=53
+PAULUSE 2. KIRI TESSALOONIKLASTELE=53
+1TM=54
+1TI=54
+PAULUSE 1. KIRI TIMOTEOSELE=54
+2TM=55
+2TI=55
+PAULUSE 2. KIRI TIMOTEOSELE=55
+TI=56
+PAULUSE KIRI TIITUSELE=56
+FL=57
+FM=57
+PAULUSE KIRI FILEEMONILE=57
+HE=58
+HB=58
+KIRI HEEBREALASTELE=58
+JK=59
+JAAKOBUSE KIRI=59
+1PT=60
+1PE=60
+PEETRUSE 1. KIRI=60
+1. PEETRUSE KIRI=60
+2PT=61
+2PE=61
+PEETRUSE 2. KIRI=61
+2. PEETRUSE KIRI=61
+1JH=62
+JOHANNESE 1. KIRI=62
+2JH=63
+JOHANNESE 2. KIRI=63
+3JH=64
+JOHANNESE 3. KIRI=64
+JU=65
+JD=65
+JUUDA KIRI=65
+ILM=66
+JOHANNESE ILMUTUS=66
diff --git a/locales.d/et_abbr.conf b/locales.d/et_abbr.conf
new file mode 100644
index 0000000..c1d23f4
--- /dev/null
+++ b/locales.d/et_abbr.conf
@@ -0,0 +1,332 @@
+[Meta]
+Name=et_abbrev
+Description=Estonian abbreviations
+
+[Text]
+Genesis=1Ms
+Exodus=2Ms
+Leviticus=3Ms
+Numbers=4Ms
+Deuteronomy=5Ms
+Joshua=Jos
+Judges=Km
+Ruth=Rt
+I Samuel=1Sm
+II Samuel=2Sm
+I Kings=1Kn
+II Kings=2Kn
+I Chronicles=1Aj
+II Chronicles=2Aj
+Ezra=Esr
+Nehemiah=Ne
+Esther=Est
+Job=Ii
+Psalms=Ps
+Proverbs=уp
+Ecclesiastes=Kg
+Song of Solomon=эl
+Isaiah=Js
+Jeremiah=Jr
+Lamentations=Nl
+Ezekiel=Hs
+Daniel=Tn
+Hosea=Ho
+Joel=Jl
+Amos=Am
+Obadiah=Ob
+Jonah=Jn
+Micah=Mi
+Nahum=Na
+Habakkuk=Ha
+Zephaniah=Sf
+Haggai=Hg
+Zechariah=Sk
+Malachi=Ml
+Matthew=Mt
+Mark=Mk
+Luke=Lk
+John=Jh
+Acts=Ap
+Romans=Rm
+I Corinthians=1Kr
+II Corinthians=2Kr
+Galatians=Gl
+Ephesians=Ef
+Philippians=Fl
+Colossians=Kl
+I Thessalonians=1Ts
+II Thessalonians=2Ts
+I Timothy=1Tm
+II Timothy=2Tm
+Titus=Tt
+Philemon=Fm
+Hebrews=Hb
+James=Jk
+I Peter=1Pt
+II Peter=2Pt
+I John=1Jh
+II John=2Jh
+III John=3Jh
+Jude=Jd
+Revelation of John=Ilm
+
+[Book Abbrevs]
+1 C=46
+1 CHRONICLES=13
+1 CORINTHIANS=46
+1 JN=62
+1 JOHN=62
+1 KGS=11
+1 KINGS=11
+1 PETER=60
+1 PTR=60
+1 SAMUEL=9
+1 THESSALONIANS=52
+1 TIMOTHY=54
+1C=46
+1CHRONICLES=13
+1CORINTHIANS=46
+1JN=62
+1JOHN=62
+1KGS=11
+1KINGS=11
+1PETER=60
+1PTR=60
+1SAMUEL=9
+1THESSALONIANS=52
+1TIMOTHY=54
+2 C=47
+2 CHRONICLES=14
+2 CORINTHIANS=47
+2 JN=63
+2 JOHN=63
+2 KGS=12
+2 KINGS=12
+2 PETER=61
+2 PTR=61
+2 SAMUEL=10
+2 THESSALONIANS=53
+2 TIMOTHY=55
+2C=47
+2CHRONICLES=14
+2CORINTHIANS=47
+2JN=63
+2JOHN=63
+2KGS=12
+2KINGS=12
+2PETER=61
+2PTR=61
+2SAMUEL=10
+2THESSALONIANS=53
+2TIMOTHY=55
+3 JN=64
+3 JOHN=64
+3JN=64
+3JOHN=64
+ACTS=44
+AMOS=30
+APOCALYPSE OF ST. JOHN=66
+C=51
+CANTICLE OF CANTICLES=22
+COC=22
+COLOSSIANS=51
+D=5
+DANIEL=27
+DEUTERONOMY=5
+E=49
+ECCLESIASTES=21
+EPHESIANS=49
+ESTER=17
+ESTHER=17
+EXODUS=2
+EZEKIEL=26
+EZRA=15
+G=1
+GALATIANS=48
+GENESIS=1
+H=58
+HABAKKUK=35
+HAGGAI=37
+HEBREWS=58
+HOSEA=28
+I C=46
+I CHRONICLES=13
+I CORINTHIANS=46
+I JN=62
+I JOHN=62
+I KGS=11
+I KINGS=11
+I PETER=60
+I PTR=60
+I SAMUEL=9
+I THESSALONIANS=52
+I TIMOTHY=54
+IC=46
+ICHRONICLES=13
+ICORINTHIANS=46
+II C=47
+II CHRONICLES=14
+II CORINTHIANS=47
+II JN=63
+II JOHN=63
+II KGS=12
+II KINGS=12
+II PETER=61
+II PTR=61
+II SAMUEL=10
+II THESSALONIANS=53
+II TIMOTHY=55
+IIC=47
+IICHRONICLES=14
+IICORINTHIANS=47
+III JN=64
+III JOHN=64
+IIIJN=64
+IIIJOHN=64
+IIJN=63
+IIJOHN=63
+IIKGS=12
+IIKINGS=12
+IIPETER=61
+IIPTR=61
+IISAMUEL=10
+IITHESSALONIANS=53
+IITIMOTHY=55
+IJN=62
+IJOHN=62
+IKGS=11
+IKINGS=11
+IPETER=60
+IPTR=60
+ISA=23
+ISAIAH=23
+ISAMUEL=9
+ITHESSALONIANS=52
+ITIMOTHY=54
+J=43
+JAMES=59
+JAS=59
+JEREMIAH=24
+JN=43
+JO=43
+JOB=18
+JOEL=29
+JOHN=43
+JONAH=32
+JOSHUA=6
+JUDE=65
+JUDGES=7
+L=42
+LAMENTATIONS=25
+LEVITICUS=3
+LK=42
+LUKE=42
+MA=40
+MALACHI=39
+MARK=41
+MATTHEW=40
+MICAH=33
+MK=41
+MR=41
+MT=40
+N=4
+NAHUM=34
+NEHEMIAH=16
+NUMBERS=4
+OBADIAH=31
+P=19
+PH=50
+PHILEMON=57
+PHILIPPIANS=50
+PHM=57
+PHP=50
+PROVERBS=20
+PSALMS=19
+PSM=19
+PSS=19
+REVELATION OF JOHN=66
+ROMANS=45
+RUTH=8
+SONG OF SOLOMON=22
+SONG OF SONGS=22
+SOS=22
+TITUS=56
+ZECHARIAH=38
+ZEPHANIAH=36
+
+1MS=1
+2MS=2
+3MS=3
+4MS=4
+5MS=5
+JOS=6
+KM=7
+RT=8
+RUT=8
+1SM=9
+2SM=10
+1KN=11
+2KN=12
+1AJ=13
+2AJ=14
+ESR=15
+NE=16
+EST=17
+II=18
+PS=19
+LA=19
+уP=20
+KG=21
+эL=22
+JS=23
+JR=24
+NL=25
+HS=26
+TN=27
+HO=28
+JL=29
+AM=30
+OB=31
+JN=32
+MI=33
+NA=34
+HA=35
+SF=36
+HG=37
+SK=38
+ML=39
+MT=40
+MK=41
+LK=42
+JH=43
+AP=44
+APT=44
+RO=45
+RM=45
+1KO=46
+1KR=46
+2KO=47
+2KR=47
+GL=48
+EF=49
+FL=50
+KOL=51
+KL=51
+1TS=52
+2TS=53
+1TIM=54
+1TM=54
+2TIM=55
+2TM=55
+TI=56
+TT=56
+FM=57
+HB=58
+JK=59
+1PT=60
+2PT=61
+1JH=62
+2JH=63
+3JH=64
+JD=65
+ILM=66
diff --git a/locales.d/ru.conf b/locales.d/ru.conf
new file mode 100644
index 0000000..abf8f36
--- /dev/null
+++ b/locales.d/ru.conf
@@ -0,0 +1,464 @@
+[Meta]
+Name=ru
+Description=Russian
+
+[Text]
+Genesis=Бытие
+Exodus=Исход
+Leviticus=Левит
+Numbers=Числа
+Deuteronomy=Второзаконие
+Joshua=Иисус Навин
+Judges=Судьи
+Ruth=Руфь
+I Samuel=1-я Царств
+II Samuel=2-я Царств
+I Kings=3-я Царств
+II Kings=4-я Царств
+I Chronicles=1-я Паралипоменон
+II Chronicles=2-я Паралипоменон
+Ezra=Ездра
+Nehemiah=Неемия
+Esther=Есфирь
+Job=Иов
+Psalms=Псалтирь
+Proverbs=Притчи
+Ecclesiastes=Екклесиаст
+Song of Solomon=Песня Песней
+Isaiah=Исаия
+Jeremiah=Иеремия
+Lamentations=Плач Иеремии
+Ezekiel=Иезекииль
+Daniel=Даниил
+Hosea=Осия
+Joel=Иоиль
+Amos=Амос
+Obadiah=Авдий
+Jonah=Иона
+Micah=Михей
+Nahum=Наум
+Habakkuk=Аввакум
+Zephaniah=Софония
+Haggai=Аггей
+Zechariah=Захария
+Malachi=Малахия
+Matthew=От Матфея
+Mark=От Марка
+Luke=От Луки
+John=От Иоанна
+Acts=Деяния
+Romans=К Римлянам
+I Corinthians=1-е Коринфянам
+II Corinthians=2-е Коринфянам
+Galatians=К Галатам
+Ephesians=К Ефесянам
+Philippians=К Филиппийцам
+Colossians=К Колоссянам
+I Thessalonians=1-е Фессалоникийцам
+II Thessalonians=2-е Фессалоникийцам
+I Timothy=1-е Тимофею
+II Timothy=2-е Тимофею
+Titus=К Титу
+Philemon=К Филимону
+Hebrews=К Евреям
+James=Иакова
+I Peter=1-е Петра
+II Peter=2-е Петра
+I John=1-е Иоанна
+II John=2-е Иоанна
+III John=3-е Иоанна
+Jude=Иуды
+Revelation of John=Откровение
+
+[Book Abbrevs]
+1 C=46
+1 CHRONICLES=13
+1 CORINTHIANS=46
+1 JN=62
+1 JOHN=62
+1 KGS=11
+1 KINGS=11
+1 PETER=60
+1 PTR=60
+1 SAMUEL=9
+1 THESSALONIANS=52
+1 TIMOTHY=54
+1C=46
+1CHRONICLES=13
+1CORINTHIANS=46
+1JN=62
+1JOHN=62
+1KGS=11
+1KINGS=11
+1PETER=60
+1PTR=60
+1SAMUEL=9
+1THESSALONIANS=52
+1TIMOTHY=54
+2 C=47
+2 CHRONICLES=14
+2 CORINTHIANS=47
+2 JN=63
+2 JOHN=63
+2 KGS=12
+2 KINGS=12
+2 PETER=61
+2 PTR=61
+2 SAMUEL=10
+2 THESSALONIANS=53
+2 TIMOTHY=55
+2C=47
+2CHRONICLES=14
+2CORINTHIANS=47
+2JN=63
+2JOHN=63
+2KGS=12
+2KINGS=12
+2PETER=61
+2PTR=61
+2SAMUEL=10
+2THESSALONIANS=53
+2TIMOTHY=55
+3 JN=64
+3 JOHN=64
+3JN=64
+3JOHN=64
+ACTS=44
+AMOS=30
+APOCALYPSE OF ST. JOHN=66
+C=51
+CANTICLE OF CANTICLES=22
+COC=22
+COLOSSIANS=51
+D=5
+DANIEL=27
+DEUTERONOMY=5
+E=49
+ECCLESIASTES=21
+EPHESIANS=49
+ESTER=17
+ESTHER=17
+EXODUS=2
+EZEKIEL=26
+EZRA=15
+G=1
+GALATIANS=48
+GENESIS=1
+H=58
+HABAKKUK=35
+HAGGAI=37
+HEBREWS=58
+HOSEA=28
+I C=46
+I CHRONICLES=13
+I CORINTHIANS=46
+I JN=62
+I JOHN=62
+I KGS=11
+I KINGS=11
+I PETER=60
+I PTR=60
+I SAMUEL=9
+I THESSALONIANS=52
+I TIMOTHY=54
+IC=46
+ICHRONICLES=13
+ICORINTHIANS=46
+II C=47
+II CHRONICLES=14
+II CORINTHIANS=47
+II JN=63
+II JOHN=63
+II KGS=12
+II KINGS=12
+II PETER=61
+II PTR=61
+II SAMUEL=10
+II THESSALONIANS=53
+II TIMOTHY=55
+IIC=47
+IICHRONICLES=14
+IICORINTHIANS=47
+III JN=64
+III JOHN=64
+IIIJN=64
+IIIJOHN=64
+IIJN=63
+IIJOHN=63
+IIKGS=12
+IIKINGS=12
+IIPETER=61
+IIPTR=61
+IISAMUEL=10
+IITHESSALONIANS=53
+IITIMOTHY=55
+IJN=62
+IJOHN=62
+IKGS=11
+IKINGS=11
+IPETER=60
+IPTR=60
+ISA=23
+ISAIAH=23
+ISAMUEL=9
+ITHESSALONIANS=52
+ITIMOTHY=54
+J=43
+JAMES=59
+JAS=59
+JEREMIAH=24
+JN=43
+JO=43
+JOB=18
+JOEL=29
+JOHN=43
+JONAH=32
+JOSHUA=6
+JUD=7
+JUDE=65
+JUDGES=7
+L=42
+LAMENTATIONS=25
+LEVITICUS=3
+LK=42
+LUKE=42
+MA=40
+MALACHI=39
+MARK=41
+MATTHEW=40
+MICAH=33
+MK=41
+MR=41
+MT=40
+N=4
+NAHUM=34
+NEHEMIAH=16
+NUMBERS=4
+OBADIAH=31
+P=19
+PH=50
+PHILEMON=57
+PHILIPPIANS=50
+PHM=57
+PHP=50
+PROVERBS=20
+PSALMS=19
+PSM=19
+PSS=19
+REVELATION OF JOHN=66
+ROMANS=45
+RUTH=8
+SONG OF SOLOMON=22
+SONG OF SONGS=22
+SOS=22
+TITUS=56
+ZECHARIAH=38
+ZEPHANIAH=36
+быт=1
+быт=1
+бытие=1
+исх=2
+исх.=2
+исход=2
+лев.=3
+левит=3
+леВ=3
+леВит=3
+чис=4
+чис.=4
+числа=4
+Втор=5
+Втор.=5
+Второзаконие=5
+иис.нав.=6
+иис.наВ=6
+иисус навин=6
+иисус наВин=6
+суд=7
+суд.=7
+судьи=7
+руф=8
+руф.=8
+руфь=8
+1-я царств=9
+1-я царстВ=9
+1цар=9
+1цар.=9
+2-я царств=10
+2-я царстВ=10
+2цар=10
+2цар.=10
+3-я царств=11
+3-я царстВ=11
+3цар=11
+3цар.=11
+4-я царств=12
+4-я царстВ=12
+4цар=12
+4цар.=12
+1-я паралипоменон=13
+1пар=13
+1пар.=13
+2-я паралипоменон=14
+2пар=14
+2пар.=14
+ездр=15
+ездр.=15
+ездра=15
+неем=16
+неем.=16
+неемия=16
+есф=17
+есф.=17
+есфирь=17
+иов=18
+иов.=18
+иоВ=18
+пс=19
+пс.=19
+псалтирь=19
+прит=20
+прит.=20
+притчи=20
+еккл=21
+еккл.=21
+екклесиаст=21
+песн=22
+песн.=22
+песня песней=22
+ис=23
+ис.=23
+исаия=23
+иер=24
+иер.=24
+иеремия=24
+плач=25
+плач иеремии=25
+плач.=25
+иез=26
+иез.=26
+иезекииль=26
+дан=27
+дан.=27
+даниил=27
+ос=28
+ос.=28
+осия=28
+иоил=29
+иоил.=29
+иоиль=29
+ам=30
+ам.=30
+амос=30
+авд.=31
+авдий=31
+аВд=31
+аВдий=31
+ион=32
+ион.=32
+иона=32
+мих=33
+мих.=33
+михей=33
+наум=34
+наум.=34
+авв.=35
+аввакум=35
+аВВ=35
+аВВакум=35
+соф=36
+соф.=36
+софония=36
+агг=37
+агг.=37
+аггей=37
+зах=38
+зах.=38
+захария=38
+мал=39
+мал.=39
+малахия=39
+матф=40
+матф=40
+от матфея=40
+мар=41
+мар.=41
+от марка=41
+лук=42
+лук.=42
+от луки=42
+иоан=43
+иоан.=43
+от иоанна=43
+деян=44
+деян.=44
+деяния=44
+к римлянам=45
+рим=45
+рим=45
+1-е коринфянам=46
+1кор=46
+1кор=46
+2-е коринфянам=47
+2кор=47
+2кор.=47
+гал=48
+гал.=48
+к галатам=48
+еф=49
+еф.=49
+к ефесянам=49
+фил=50
+фил.=50
+к филиппийцам=50
+к колоссянам=51
+кол=51
+кол.=51
+1-е фессалоникийцам=52
+1фесс=52
+1фесс.=52
+2-е фессалоникийцам=53
+2фесс=53
+2фесс.=53
+1-е тимофею=54
+1тим=54
+1тим.=54
+2-е тимофею=55
+2тим=55
+2тим.=55
+к титу=56
+тит=56
+тит.=56
+флм=57
+флм.=57
+к филимону=57
+евр.=58
+еВр=58
+к евреям=58
+к еВреям=58
+иак=59
+иак.=59
+иакова=59
+иакоВа=59
+1-е петра=60
+1пет=60
+1пет.=60
+2-е петра=61
+2пет=61
+2пет.=61
+1-е иоанна=62
+1иоан=62
+1иоан.=62
+2-е иоанна=63
+2иоан=63
+2иоан.=63
+3-е иоанна=64
+3иоан=64
+3иоан.=64
+иуд=65
+иуд.=65
+иуды=65
+откр=66
+откр.=66
+откровение=66
+откроВение=66
diff --git a/src/mgr/installmgr.cpp b/src/mgr/installmgr.cpp
new file mode 100644
index 0000000..4e1cb35
--- /dev/null
+++ b/src/mgr/installmgr.cpp
@@ -0,0 +1,145 @@
+/*****************************************************************************
+ * InstallMgr functions to be made into something usefully exposed by
+ * master Glassey
+ *
+ */
+
+
+#include <installmgr.h>
+
+#include <fcntl.h>
+#ifndef __GNUC__
+#include <io.h>
+#else
+#include <unistd.h>
+#endif
+
+#include <curl/curl.h>
+#include <curl/types.h>
+#include <curl/easy.h>
+#include <defs.h>
+#include <vector>
+
+using namespace std;
+
+SWORD_NAMESPACE_START
+
+static InstallMgr_init _InstallMgr_init;
+
+InstallMgr_init::InstallMgr_init() {
+ curl_global_init(CURL_GLOBAL_DEFAULT);
+}
+
+InstallMgr_init::~InstallMgr_init() {
+ curl_global_cleanup();
+}
+
+
+int my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) {
+ struct FtpFile *out=(struct FtpFile *)stream;
+ if (out && !out->stream) {
+ /* open file for writing */
+ out->stream=fopen(out->filename, "wb");
+ if (!out->stream)
+ return -1; /* failure, can't open file to write */
+ }
+ return fwrite(buffer, size, nmemb, out->stream);
+}
+
+
+int my_fprogress(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) {
+ if (clientp) {
+ (*(void (*)(double, double))clientp)(dltotal, dlnow);
+ }
+ return 0;
+}
+
+
+char FTPURLGetFile(void *session, const char *dest, const char *sourceurl, bool passive, void (*status_callback)(double dltotal, double dlnow)) {
+ struct FtpFile ftpfile = {dest, NULL};
+ char retVal = 0;
+
+ CURL *curl = (CURL *)session;
+ CURLcode res;
+
+ if (curl) {
+ curl_easy_setopt(curl, CURLOPT_URL, sourceurl);
+
+ curl_easy_setopt(curl, CURLOPT_USERPWD, "ftp:installmgr@user.com");
+ curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
+ if (!passive)
+ curl_easy_setopt(curl, CURLOPT_FTPPORT, "-");
+ curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
+ curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, status_callback);
+ curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_fprogress);
+ /* Set a pointer to our struct to pass to the callback */
+ curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile);
+
+ /* Switch on full protocol/debug output */
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
+
+ res = curl_easy_perform(curl);
+
+ if(CURLE_OK != res) {
+ retVal = -1;
+ }
+ }
+
+ if (ftpfile.stream)
+ fclose(ftpfile.stream); /* close the local file */
+ return retVal;
+}
+
+
+
+vector<struct ftpparse> FTPURLGetDir(void *session, const char *dirurl, bool passive) {
+
+ vector<struct ftpparse> dirList;
+
+ if (!FTPURLGetFile(session, "dirlist", dirurl, passive)) {
+ int fd = open("dirlist", O_RDONLY|O_BINARY);
+ long size = lseek(fd, 0, SEEK_END);
+ lseek(fd, 0, SEEK_SET);
+ char *buf = new char [ size + 1 ];
+ read(fd, buf, size);
+ close(fd);
+ char *start = buf;
+ char *end = start;
+ while (start < (buf+size)) {
+ struct ftpparse item;
+ bool looking = true;
+ for (end = start; *end; end++) {
+ if (looking) {
+ if ((*end == 10) || (*end == 13)) {
+ *end = 0;
+ looking = false;
+ }
+ }
+ else if ((*end != 10) && (*end != 13))
+ break;
+ }
+ int status = ftpparse(&item, start, end - start);
+ if (status)
+ dirList.push_back(item);
+ start = end;
+ }
+ }
+ return dirList;
+}
+
+
+void *FTPOpenSession() {
+ CURL *curl;
+
+ curl = curl_easy_init();
+ return curl;
+}
+
+
+void FTPCloseSession(void *session) {
+ CURL *curl = (CURL *)session;
+ curl_easy_cleanup(curl);
+}
+
+SWORD_NAMESPACE_END
+
diff --git a/src/utilfuns/ftpparse.c b/src/utilfuns/ftpparse.c
new file mode 100644
index 0000000..58a692e
--- /dev/null
+++ b/src/utilfuns/ftpparse.c
@@ -0,0 +1,446 @@
+/* ftpparse.c, ftpparse.h: library for parsing FTP LIST responses
+20001223
+D. J. Bernstein, djb@cr.yp.to
+http://cr.yp.to/ftpparse.html
+
+Commercial use is fine, if you let me know what programs you're using this in.
+
+Currently covered formats:
+EPLF.
+UNIX ls, with or without gid.
+Microsoft FTP Service.
+Windows NT FTP Server.
+VMS.
+WFTPD.
+NetPresenz (Mac).
+NetWare.
+MSDOS.
+
+Definitely not covered:
+Long VMS filenames, with information split across two lines.
+NCSA Telnet FTP server. Has LIST = NLST (and bad NLST for directories).
+*/
+
+#include <ftpparse.h>
+
+static long totai(long year,long month,long mday)
+{
+ long result;
+ if (month >= 2) month -= 2;
+ else { month += 10; --year; }
+ result = (mday - 1) * 10 + 5 + 306 * month;
+ result /= 10;
+ if (result == 365) { year -= 3; result = 1460; }
+ else result += 365 * (year % 4);
+ year /= 4;
+ result += 1461 * (year % 25);
+ year /= 25;
+ if (result == 36524) { year -= 3; result = 146096; }
+ else { result += 36524 * (year % 4); }
+ year /= 4;
+ result += 146097 * (year - 5);
+ result += 11017;
+ return result * 86400;
+}
+
+static int flagneedbase = 1;
+static time_t base; /* time() value on this OS at the beginning of 1970 TAI */
+static long now; /* current time */
+static int flagneedcurrentyear = 1;
+static long currentyear; /* approximation to current year */
+
+static void initbase(void)
+{
+ struct tm *t;
+ if (!flagneedbase) return;
+
+ base = 0;
+ t = gmtime(&base);
+ base = -(totai(t->tm_year + 1900,t->tm_mon,t->tm_mday) + t->tm_hour * 3600 + t->tm_min * 60 + t->tm_sec);
+ /* assumes the right time_t, counting seconds. */
+ /* base may be slightly off if time_t counts non-leap seconds. */
+ flagneedbase = 0;
+}
+
+static void initnow(void)
+{
+ long day;
+ long year;
+
+ initbase();
+ now = time((time_t *) 0) - base;
+
+ if (flagneedcurrentyear) {
+ day = now / 86400;
+ if ((now % 86400) < 0) --day;
+ day -= 11017;
+ year = 5 + day / 146097;
+ day = day % 146097;
+ if (day < 0) { day += 146097; --year; }
+ year *= 4;
+ if (day == 146096) { year += 3; day = 36524; }
+ else { year += day / 36524; day %= 36524; }
+ year *= 25;
+ year += day / 1461;
+ day %= 1461;
+ year *= 4;
+ if (day == 1460) { year += 3; day = 365; }
+ else { year += day / 365; day %= 365; }
+ day *= 10;
+ if ((day + 5) / 306 >= 10) ++year;
+ currentyear = year;
+ flagneedcurrentyear = 0;
+ }
+}
+
+/* UNIX ls does not show the year for dates in the last six months. */
+/* So we have to guess the year. */
+/* Apparently NetWare uses ``twelve months'' instead of ``six months''; ugh. */
+/* Some versions of ls also fail to show the year for future dates. */
+static long guesstai(long month,long mday)
+{
+ long year;
+ long t;
+
+ initnow();
+
+ for (year = currentyear - 1;year < currentyear + 100;++year) {
+ t = totai(year,month,mday);
+ if (now - t < 350 * 86400)
+ return t;
+ }
+}
+
+static int check(char *buf,char *monthname)
+{
+ if ((buf[0] != monthname[0]) && (buf[0] != monthname[0] - 32)) return 0;
+ if ((buf[1] != monthname[1]) && (buf[1] != monthname[1] - 32)) return 0;
+ if ((buf[2] != monthname[2]) && (buf[2] != monthname[2] - 32)) return 0;
+ return 1;
+}
+
+static char *months[12] = {
+ "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"
+} ;
+
+static int getmonth(char *buf,int len)
+{
+ int i;
+ if (len == 3)
+ for (i = 0;i < 12;++i)
+ if (check(buf,months[i])) return i;
+ return -1;
+}
+
+static long getlong(char *buf,int len)
+{
+ long u = 0;
+ while (len-- > 0)
+ u = u * 10 + (*buf++ - '0');
+ return u;
+}
+
+int ftpparse(struct ftpparse *fp,char *buf,int len)
+{
+ int i;
+ int j;
+ int state;
+ long size;
+ long year;
+ long month;
+ long mday;
+ long hour;
+ long minute;
+
+ fp->name = 0;
+ fp->namelen = 0;
+ fp->flagtrycwd = 0;
+ fp->flagtryretr = 0;
+ fp->sizetype = FTPPARSE_SIZE_UNKNOWN;
+ fp->size = 0;
+ fp->mtimetype = FTPPARSE_MTIME_UNKNOWN;
+ fp->mtime = 0;
+ fp->idtype = FTPPARSE_ID_UNKNOWN;
+ fp->id = 0;
+ fp->idlen = 0;
+
+ if (len < 2) /* an empty name in EPLF, with no info, could be 2 chars */
+ return 0;
+
+ switch(*buf) {
+ /* see http://pobox.com/~djb/proto/eplf.txt */
+ /* "+i8388621.29609,m824255902,/,\tdev" */
+ /* "+i8388621.44468,m839956783,r,s10376,\tRFCEPLF" */
+ case '+':
+ i = 1;
+ for (j = 1;j < len;++j) {
+ if (buf[j] == 9) {
+ fp->name = buf + j + 1;
+ fp->namelen = len - j - 1;
+ return 1;
+ }
+ if (buf[j] == ',') {
+ switch(buf[i]) {
+ case '/':
+ fp->flagtrycwd = 1;
+ break;
+ case 'r':
+ fp->flagtryretr = 1;
+ break;
+ case 's':
+ fp->sizetype = FTPPARSE_SIZE_BINARY;
+ fp->size = getlong(buf + i + 1,j - i - 1);
+ break;
+ case 'm':
+ fp->mtimetype = FTPPARSE_MTIME_LOCAL;
+ initbase();
+ fp->mtime = base + getlong(buf + i + 1,j - i - 1);
+ break;
+ case 'i':
+ fp->idtype = FTPPARSE_ID_FULL;
+ fp->id = buf + i + 1;
+ fp->idlen = j - i - 1;
+ }
+ i = j + 1;
+ }
+ }
+ return 0;
+
+ /* UNIX-style listing, without inum and without blocks */
+ /* "-rw-r--r-- 1 root other 531 Jan 29 03:26 README" */
+ /* "dr-xr-xr-x 2 root other 512 Apr 8 1994 etc" */
+ /* "dr-xr-xr-x 2 root 512 Apr 8 1994 etc" */
+ /* "lrwxrwxrwx 1 root other 7 Jan 25 00:17 bin -> usr/bin" */
+ /* Also produced by Microsoft's FTP servers for Windows: */
+ /* "---------- 1 owner group 1803128 Jul 10 10:18 ls-lR.Z" */
+ /* "d--------- 1 owner group 0 May 9 19:45 Softlib" */
+ /* Also WFTPD for MSDOS: */
+ /* "-rwxrwxrwx 1 noone nogroup 322 Aug 19 1996 message.ftp" */
+ /* Also NetWare: */
+ /* "d [R----F--] supervisor 512 Jan 16 18:53 login" */
+ /* "- [R----F--] rhesus 214059 Oct 20 15:27 cx.exe" */
+ /* Also NetPresenz for the Mac: */
+ /* "-------r-- 326 1391972 1392298 Nov 22 1995 MegaPhone.sit" */
+ /* "drwxrwxr-x folder 2 May 10 1996 network" */
+ case 'b':
+ case 'c':
+ case 'd':
+ case 'l':
+ case 'p':
+ case 's':
+ case '-':
+
+ if (*buf == 'd') fp->flagtrycwd = 1;
+ if (*buf == '-') fp->flagtryretr = 1;
+ if (*buf == 'l') fp->flagtrycwd = fp->flagtryretr = 1;
+
+ state = 1;
+ i = 0;
+ for (j = 1;j < len;++j)
+ if ((buf[j] == ' ') && (buf[j - 1] != ' ')) {
+ switch(state) {
+ case 1: /* skipping perm */
+ state = 2;
+ break;
+ case 2: /* skipping nlink */
+ state = 3;
+ if ((j - i == 6) && (buf[i] == 'f')) /* for NetPresenz */
+ state = 4;
+ break;
+ case 3: /* skipping uid */
+ state = 4;
+ break;
+ case 4: /* getting tentative size */
+ size = getlong(buf + i,j - i);
+ state = 5;
+ break;
+ case 5: /* searching for month, otherwise getting tentative size */
+ month = getmonth(buf + i,j - i);
+ if (month >= 0)
+ state = 6;
+ else
+ size = getlong(buf + i,j - i);
+ break;
+ case 6: /* have size and month */
+ mday = getlong(buf + i,j - i);
+ state = 7;
+ break;
+ case 7: /* have size, month, mday */
+ if ((j - i == 4) && (buf[i + 1] == ':')) {
+ hour = getlong(buf + i,1);
+ minute = getlong(buf + i + 2,2);
+ fp->mtimetype = FTPPARSE_MTIME_REMOTEMINUTE;
+ initbase();
+ fp->mtime = base + guesstai(month,mday) + hour * 3600 + minute * 60;
+ } else if ((j - i == 5) && (buf[i + 2] == ':')) {
+ hour = getlong(buf + i,2);
+ minute = getlong(buf + i + 3,2);
+ fp->mtimetype = FTPPARSE_MTIME_REMOTEMINUTE;
+ initbase();
+ fp->mtime = base + guesstai(month,mday) + hour * 3600 + minute * 60;
+ }
+ else if (j - i >= 4) {
+ year = getlong(buf + i,j - i);
+ fp->mtimetype = FTPPARSE_MTIME_REMOTEDAY;
+ initbase();
+ fp->mtime = base + totai(year,month,mday);
+ }
+ else
+ return 0;
+ fp->name = buf + j + 1;
+ fp->namelen = len - j - 1;
+ state = 8;
+ break;
+ case 8: /* twiddling thumbs */
+ break;
+ }
+ i = j + 1;
+ while ((i < len) && (buf[i] == ' ')) ++i;
+ }
+
+ if (state != 8)
+ return 0;
+
+ fp->size = size;
+ fp->sizetype = FTPPARSE_SIZE_BINARY;
+
+ if (*buf == 'l')
+ for (i = 0;i + 3 < fp->namelen;++i)
+ if (fp->name[i] == ' ')
+ if (fp->name[i + 1] == '-')
+ if (fp->name[i + 2] == '>')
+ if (fp->name[i + 3] == ' ') {
+ fp->namelen = i;
+ break;
+ }
+
+ /* eliminate extra NetWare spaces */
+ if ((buf[1] == ' ') || (buf[1] == '['))
+ if (fp->namelen > 3)
+ if (fp->name[0] == ' ')
+ if (fp->name[1] == ' ')
+ if (fp->name[2] == ' ') {
+ fp->name += 3;
+ fp->namelen -= 3;
+ }
+
+ return 1;
+ }
+
+ /* MultiNet (some spaces removed from examples) */
+ /* "00README.TXT;1 2 30-DEC-1996 17:44 [SYSTEM] (RWED,RWED,RE,RE)" */
+ /* "CORE.DIR;1 1 8-SEP-1996 16:09 [SYSTEM] (RWE,RWE,RE,RE)" */
+ /* and non-MutliNet VMS: */
+ /* "CII-MANUAL.TEX;1 213/216 29-JAN-1996 03:33:12 [ANONYMOU,ANONYMOUS] (RWED,RWED,,)" */
+ for (i = 0;i < len;++i)
+ if (buf[i] == ';')
+ break;
+ if (i < len) {
+ fp->name = buf;
+ fp->namelen = i;
+ if (i > 4)
+ if (buf[i - 4] == '.')
+ if (buf[i - 3] == 'D')
+ if (buf[i - 2] == 'I')
+ if (buf[i - 1] == 'R') {
+ fp->namelen -= 4;
+ fp->flagtrycwd = 1;
+ }
+ if (!fp->flagtrycwd)
+ fp->flagtryretr = 1;
+ while (buf[i] != ' ') if (++i == len) return 0;
+ while (buf[i] == ' ') if (++i == len) return 0;
+ while (buf[i] != ' ') if (++i == len) return 0;
+ while (buf[i] == ' ') if (++i == len) return 0;
+ j = i;
+ while (buf[j] != '-') if (++j == len) return 0;
+ mday = getlong(buf + i,j - i);
+ while (buf[j] == '-') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != '-') if (++j == len) return 0;
+ month = getmonth(buf + i,j - i);
+ if (month < 0) return 0;
+ while (buf[j] == '-') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != ' ') if (++j == len) return 0;
+ year = getlong(buf + i,j - i);
+ while (buf[j] == ' ') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != ':') if (++j == len) return 0;
+ hour = getlong(buf + i,j - i);
+ while (buf[j] == ':') if (++j == len) return 0;
+ i = j;
+ while ((buf[j] != ':') && (buf[j] != ' ')) if (++j == len) return 0;
+ minute = getlong(buf + i,j - i);
+
+ fp->mtimetype = FTPPARSE_MTIME_REMOTEMINUTE;
+ initbase();
+ fp->mtime = base + totai(year,month,mday) + hour * 3600 + minute * 60;
+
+ return 1;
+ }
+
+ /* MSDOS format */
+ /* 04-27-00 09:09PM <DIR> licensed */
+ /* 07-18-00 10:16AM <DIR> pub */
+ /* 04-14-00 03:47PM 589 readme.htm */
+ if ((*buf >= '0') && (*buf <= '9')) {
+ i = 0;
+ j = 0;
+ while (buf[j] != '-') if (++j == len) return 0;
+ month = getlong(buf + i,j - i) - 1;
+ while (buf[j] == '-') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != '-') if (++j == len) return 0;
+ mday = getlong(buf + i,j - i);
+ while (buf[j] == '-') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != ' ') if (++j == len) return 0;
+ year = getlong(buf + i,j - i);
+ if (year < 50) year += 2000;
+ if (year < 1000) year += 1900;
+ while (buf[j] == ' ') if (++j == len) return 0;
+ i = j;
+ while (buf[j] != ':') if (++j == len) return 0;
+ hour = getlong(buf + i,j - i);
+ while (buf[j] == ':') if (++j == len) return 0;
+ i = j;
+ while ((buf[j] != 'A') && (buf[j] != 'P')) if (++j == len) return 0;
+ minute = getlong(buf + i,j - i);
+ if (hour == 12) hour = 0;
+ if (buf[j] == 'A') if (++j == len) return 0;
+ if (buf[j] == 'P') { hour += 12; if (++j == len) return 0; }
+ if (buf[j] == 'M') if (++j == len) return 0;
+
+ while (buf[j] == ' ') if (++j == len) return 0;
+ if (buf[j] == '<') {
+ fp->flagtrycwd = 1;
+ while (buf[j] != ' ') if (++j == len) return 0;
+ }
+ else {
+ i = j;
+ while (buf[j] != ' ') if (++j == len) return 0;
+ fp->size = getlong(buf + i,j - i);
+ fp->sizetype = FTPPARSE_SIZE_BINARY;
+ fp->flagtryretr = 1;
+ }
+ while (buf[j] == ' ') if (++j == len) return 0;
+
+ fp->name = buf + j;
+ fp->namelen = len - j;
+
+ fp->mtimetype = FTPPARSE_MTIME_REMOTEMINUTE;
+ initbase();
+ fp->mtime = base + totai(year,month,mday) + hour * 3600 + minute * 60;
+
+ return 1;
+ }
+
+ /* Some useless lines, safely ignored: */
+ /* "Total of 11 Files, 10966 Blocks." (VMS) */
+ /* "total 14786" (UNIX) */
+ /* "DISK$ANONFTP:[ANONYMOUS]" (VMS) */
+ /* "Directory DISK$PCSA:[ANONYM]" (VMS) */
+
+ return 0;
+}
diff --git a/src/utilfuns/roman.c b/src/utilfuns/roman.cpp
index 3c6d190..8c251f7 100644
--- a/src/utilfuns/roman.c
+++ b/src/utilfuns/roman.cpp
@@ -22,6 +22,9 @@
#include <stdlib.h>
#include <string.h>
#include <roman.h>
+
+SWORD_NAMESPACE_START
+
char isroman (const char* str) {
char * ch = (char*)str;
for (; *ch; ch++)
@@ -32,7 +35,7 @@ char isroman (const char* str) {
int from_rom(const char* str) {
int i, n = strlen(str);
- short * num= calloc(n, sizeof(short));
+ short * num= (short *) calloc(n, sizeof(short));
for (i = 0; str[i]; i++) {
switch(str[i]) {
case 'i':
@@ -80,3 +83,5 @@ int from_rom(const char* str) {
free(num);
return n;
}
+
+SWORD_NAMESPACE_END
diff --git a/tests/rawldidxtest.cpp b/tests/rawldidxtest.cpp
new file mode 100644
index 0000000..79c93c2
--- /dev/null
+++ b/tests/rawldidxtest.cpp
@@ -0,0 +1,52 @@
+#include <iostream>
+#include <rawstr.h>
+#include <swmgr.h>
+
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
+#ifndef __GNUC__
+#include <io.h>
+#else
+#include <unistd.h>
+#endif
+
+#ifndef NO_SWORD_NAMESPACE
+using namespace sword;
+#endif
+
+int main(int argc, char **argv)
+{
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <lex path>\n\n", *argv);
+ exit(-1);
+ }
+
+ RawStr mod(argv[1]);
+ char buf[127];
+
+ sprintf(buf, "%s.idx", argv[1]);
+ FileDesc *idxfd = FileMgr::systemFileMgr.open(buf, O_RDONLY|O_BINARY, true);
+ long maxoff = lseek(idxfd->getFd(), 0, SEEK_END) - 6;
+ FileMgr::systemFileMgr.close(idxfd);
+
+ std::string last = "";
+ bool first = true;
+ char *trybuf = 0;
+ for (long index = 0; index < maxoff; index+=6) {
+ mod.getidxbuf(index, &trybuf);
+ if (!first) {
+ if (strcmp(trybuf, last.c_str()) < 0) {
+ printf("entry %ld(offset: %ld) (%s) is less than previous entry (%s)\n\n", index/6, index, trybuf, last.c_str());
+ exit(-3);
+ }
+ }
+ else first = false;
+ last = trybuf;
+ }
+ if (trybuf)
+ delete [] trybuf;
+
+ return 0;
+}
diff --git a/utilities/bcppmake/mod2osis.bpf b/utilities/bcppmake/mod2osis.bpf
new file mode 100644
index 0000000..19c98d4
--- /dev/null
+++ b/utilities/bcppmake/mod2osis.bpf
@@ -0,0 +1,9 @@
+USEUNIT("..\mod2osis.cpp");
+USELIB("libsword.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icui18n.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icucommon.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+ main \ No newline at end of file
diff --git a/utilities/bcppmake/mod2osis.bpr b/utilities/bcppmake/mod2osis.bpr
new file mode 100644
index 0000000..45e5ea2
--- /dev/null
+++ b/utilities/bcppmake/mod2osis.bpr
@@ -0,0 +1,115 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="mod2osis.exe"/>
+ <OBJFILES value="..\mod2osis.obj"/>
+ <RESFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="libsword.lib ..\..\..\icu-sword\as_is\borland\icui18n.lib
+ ..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\icu-sword\as_is\borland\icucommon.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value=""/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="mod2osis.bpf"/>
+ <INCLUDEPATH value="..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl"/>
+ <LIBPATH value="..\;..;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[HistoryLists\hlIncludePath]
+Count=4
+Item0=..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item1=..\;..\..\utilities;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item2=..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item3=..\..\utilities;$(BCB)\include;$(BCB)\include\vcl
+
+[HistoryLists\hlLibraryPath]
+Count=3
+Item0=..\;..;$(BCB)\lib\obj;$(BCB)\lib
+Item1=..\;..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+Item2=..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+
+[HistoryLists\hlDebugSourcePath]
+Count=1
+Item0=$(BCB)\source\vcl
+
+[HistoryLists\hlConditionals]
+Count=1
+Item0=_DEBUG
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=KJV
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Compiler]
+ShowInfoMsgs=0
+LinkDebugVcl=0
+LinkCGLIB=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT> \ No newline at end of file
diff --git a/utilities/bcppmake/step2vpl.bpf b/utilities/bcppmake/step2vpl.bpf
new file mode 100644
index 0000000..079e5dc
--- /dev/null
+++ b/utilities/bcppmake/step2vpl.bpf
@@ -0,0 +1,9 @@
+USEUNIT("..\step2vpl.cpp");
+USELIB("libsword.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icui18n.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icucommon.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+ main \ No newline at end of file
diff --git a/utilities/bcppmake/step2vpl.bpr b/utilities/bcppmake/step2vpl.bpr
new file mode 100644
index 0000000..e4b583b
--- /dev/null
+++ b/utilities/bcppmake/step2vpl.bpr
@@ -0,0 +1,118 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="step2vpl.exe"/>
+ <OBJFILES value="..\step2vpl.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="libsword.lib ..\..\..\icu-sword\as_is\borland\icui18n.lib
+ ..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\icu-sword\as_is\borland\icucommon.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="step2vpl.bpf"/>
+ <INCLUDEPATH value="..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl"/>
+ <LIBPATH value="..\;..;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[HistoryLists\hlIncludePath]
+Count=4
+Item0=..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item1=..\;..\..\utilities;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item2=..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item3=..\..\utilities;$(BCB)\include;$(BCB)\include\vcl
+
+[HistoryLists\hlLibraryPath]
+Count=3
+Item0=..\;..;$(BCB)\lib\obj;$(BCB)\lib
+Item1=..\;..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+Item2=..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+
+[HistoryLists\hlDebugSourcePath]
+Count=1
+Item0=$(BCB)\source\vcl
+
+[HistoryLists\hlConditionals]
+Count=2
+Item0=_ICU_;_ICUSWORD_
+Item1=_DEBUG
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Compiler]
+ShowInfoMsgs=0
+LinkDebugVcl=0
+LinkCGLIB=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT> \ No newline at end of file
diff --git a/utilities/bcppmake/stepdump.bpf b/utilities/bcppmake/stepdump.bpf
new file mode 100644
index 0000000..280762a
--- /dev/null
+++ b/utilities/bcppmake/stepdump.bpf
@@ -0,0 +1,9 @@
+USEUNIT("..\stepdump.cpp");
+USELIB("libsword.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icui18n.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\icu-sword\as_is\borland\icucommon.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+ main \ No newline at end of file
diff --git a/utilities/bcppmake/stepdump.bpr b/utilities/bcppmake/stepdump.bpr
new file mode 100644
index 0000000..4accbeb
--- /dev/null
+++ b/utilities/bcppmake/stepdump.bpr
@@ -0,0 +1,118 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="stepdump.exe"/>
+ <OBJFILES value="..\stepdump.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="libsword.lib ..\..\..\icu-sword\as_is\borland\icui18n.lib
+ ..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\icu-sword\as_is\borland\icucommon.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="stepdump.bpf"/>
+ <INCLUDEPATH value="..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl"/>
+ <LIBPATH value="..\;..;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[HistoryLists\hlIncludePath]
+Count=4
+Item0=..\;..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item1=..\;..\..\utilities;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item2=..;..\..\include;$(BCB)\include;$(BCB)\include\vcl
+Item3=..\..\utilities;$(BCB)\include;$(BCB)\include\vcl
+
+[HistoryLists\hlLibraryPath]
+Count=3
+Item0=..\;..;$(BCB)\lib\obj;$(BCB)\lib
+Item1=..\;..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+Item2=..\..\utilities;$(BCB)\lib\obj;$(BCB)\lib
+
+[HistoryLists\hlDebugSourcePath]
+Count=1
+Item0=$(BCB)\source\vcl
+
+[HistoryLists\hlConditionals]
+Count=2
+Item0=_ICU_;_ICUSWORD_
+Item1=_DEBUG
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Compiler]
+ShowInfoMsgs=0
+LinkDebugVcl=0
+LinkCGLIB=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT> \ No newline at end of file