[sword-svn] r3555 - trunk/bindings/swig

greg.hellings at crosswire.org greg.hellings at crosswire.org
Sat Dec 23 16:37:20 MST 2017


Author: greg.hellings
Date: 2017-12-23 16:37:19 -0700 (Sat, 23 Dec 2017)
New Revision: 3555

Modified:
   trunk/bindings/swig/deprecations.i
   trunk/bindings/swig/rendercallback.h
   trunk/bindings/swig/sword.i
Log:
Clean SWIG bindings

Bindings were not compiling properly for 1.8.0/HEAD

A few compiler warnings have been around in the
SWIG bindings that are now cleaned up in recent
versions of SWIG and gcc


Modified: trunk/bindings/swig/deprecations.i
===================================================================
--- trunk/bindings/swig/deprecations.i	2017-12-23 17:37:31 UTC (rev 3554)
+++ trunk/bindings/swig/deprecations.i	2017-12-23 23:37:19 UTC (rev 3555)
@@ -14,6 +14,7 @@
 %ignore sword::SWDisplay::Display(SWModule&);
 
 %ignore sword::StatusReporter::statusUpdate(double ,double);
+%feature("nodirector") sword::StatusReporter::statusUpdate(double ,double);
 
 %ignore sword::SWKey::Error();
 %ignore sword::SWKey::Persist() const;

Modified: trunk/bindings/swig/rendercallback.h
===================================================================
--- trunk/bindings/swig/rendercallback.h	2017-12-23 17:37:31 UTC (rev 3554)
+++ trunk/bindings/swig/rendercallback.h	2017-12-23 23:37:19 UTC (rev 3555)
@@ -215,7 +215,7 @@
 	bool osisQToTick;
 	bool inBold;
 	bool inXRefNote;
-	bool BiblicalText;
+	bool isBiblicalText;
 	int suspendLevel;
 	SWBuf wordsOfChristStart;
 	SWBuf wordsOfChristEnd;
@@ -240,8 +240,8 @@
 {
 public:
 	SWBuf inscriptRef;
-	bool SecHead;
-	bool BiblicalText;
+	bool inSecHead;
+	bool isBiblicalText;
 	SWBuf version;
 	XMLTag startTag;	
 

Modified: trunk/bindings/swig/sword.i
===================================================================
--- trunk/bindings/swig/sword.i	2017-12-23 17:37:31 UTC (rev 3554)
+++ trunk/bindings/swig/sword.i	2017-12-23 23:37:19 UTC (rev 3555)
@@ -1,13 +1,13 @@
 #define SWDLLEXPORT  
 
+%include "deprecations.i"
+
 %module "Sword"
 %module(directors="1") Sword;
 
 /* Ignore warnings about Unknown base class */
 %warnfilter(401);
 
-%include "deprecations.i"
-
 #ifdef SWIGPYTHON
 %include "directors.i"
 #endif




More information about the sword-cvs mailing list