[sword-cvs] sword/bindings/swig localemgr.i,1.6,1.7 sword.pl,1.4,1.5

sword@www.crosswire.org sword@www.crosswire.org
Mon, 9 Feb 2004 11:33:52 -0700


Update of /cvs/core/sword/bindings/swig
In directory www:/tmp/cvs-serv2391

Modified Files:
	localemgr.i sword.pl 
Log Message:
fixes

Index: localemgr.i
===================================================================
RCS file: /cvs/core/sword/bindings/swig/localemgr.i,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- localemgr.i	9 Feb 2004 18:25:42 -0000	1.6
+++ localemgr.i	9 Feb 2004 18:33:50 -0000	1.7
@@ -13,13 +13,8 @@
   virtual ~LocaleMgr ();
   virtual SWLocale *getLocale (const char *name);
   virtual std::list < SWBuf > getAvailableLocales ();
-  //virtual const char *translate (const char *name, const char *text);
   virtual const char *getDefaultLocaleName();
   virtual void setDefaultLocaleName (const char *name);
 
-%extend {
-  static LocaleMgr* const getSystemLocaleMgr() {
-  	return &(LocaleMgr::systemLocaleMgr);
-  };
-}
+  static LocaleMgr* const getSystemLocaleMgr();
 };

Index: sword.pl
===================================================================
RCS file: /cvs/core/sword/bindings/swig/sword.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sword.pl	6 Feb 2004 21:01:00 -0000	1.4
+++ sword.pl	9 Feb 2004 18:33:50 -0000	1.5
@@ -1,11 +1,11 @@
 #!/usr/bin/perl
 
-use sword;
+use Sword;
 
-print "Version (should be 1.0): " , $sword::VERSION , "\n";
+print "Version (should be 1.0): " , $Sword::VERSION , "\n";
 
 print "Create SWConfig object!\n";
-$config = new sword::SWConfig("test.conf");
+$config = new Sword::SWConfig("test.conf");
 
 print "Load\n";
 $config->Load();
@@ -22,17 +22,17 @@
 
 #testing SWMgr
 print "testing SWMgr\n";
-#$localemgr = sword::LocaleMgr::getSystemLocaleMgr();
+#$localemgr = Sword::LocaleMgr::getSystemLocaleMgr();
 #$localemgr->setDefaultLocaleName("de");
 
-$mgr = new sword::SWMgr();
+$mgr = new Sword::SWMgr();
 print "init ... ";
 #$module = $mgr->module("GerLut1545-temp");
 $module = $mgr->module("WEB");
 print "Printing WEB Module information: \n";
 print "Name:\t", $module->Name(),"\nDescription:\t", $module->Description(), "\nLang:\t", $module->Lang(), "\n";
 
-$key = new sword::VerseKey("Matthew 3:16");
+$key = new Sword::VerseKey("Matthew 3:16");
 $key->setPersist(1);
 $module->SetKey($key);
 
@@ -49,7 +49,7 @@
 $module->write("This is a test entry! This tests the write abilities of the Sword Perl classes");
 print "(", $module->KeyText() ,")\t", $module->StripText(), "\n";
 
-print "Seraching for God: ";
+print "Searching for God: ";
 $list = $module->Search("Gott");
 print $list->Count(), " entries found!\n";
 #for ( $i = 0; $i < $list->Count(); $i++) {
@@ -58,8 +58,8 @@
 #}
 
 print "Creating new module! Writing search result...";
-#sword::RawText::createModule("/usr/share/sword/modules/texts/ztext/testmodule/");
-#$newmod = new sword::RawText("/usr/share/sword/modules/texts/ztext/testmodule/");
+#Sword::RawText::createModule("/usr/share/sword/modules/texts/ztext/testmodule/");
+#$newmod = new Sword::RawText("/usr/share/sword/modules/texts/ztext/testmodule/");
 
 #$key->setText("Genesis 1:1");
 $newkey = $key->clone();
@@ -75,11 +75,11 @@
 print "Now create the LD module\n";
 
  mkdir("ldmod");
-sword::zText::createModule("ldmod/",4);
+Sword::zText::createModule("ldmod/",4);
 
 print "first step}\n";
 
-$newmod = new sword::zText("ldmod/");
+$newmod = new Sword::zText("ldmod/");
 
 print "Created module;\n";