<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hey Everyone, God bless you<br>
Hope you are enjoying your Saturday. Thank you for your welcoming
notes (public/private) and ideas. I am looking more into the code,
and different projects. I'd like to help with Xyphos, or the windows
software if I can get it to compile with mingw or find a windows dev
box, though right now i'm looking more into SWIG. <br>
To get SWIG to work on the SVN branch (This is to get it to
compile, and it allows it to work but I still haven't gone over all
the warnings which seem mostly due to operator overloading) , the
problem lies in that SWBuf::append(wchar_t) which is new is not yet
fully supported by SWIG. We can remove its usage by editing swbuf.i
and adding at line 29:<br>
<br>
%ignore <a class="moz-txt-link-freetext" href="sword::SWBuf::append(wchar_t)">sword::SWBuf::append(wchar_t)</a>;<br>
<br>
SWBuf::append will still work for other datatypes like char.<br>
<br>
another option is to edit sword.i (or the swig interface files) and
add functionality for wchar. I am still testing it, but adding
something like this on line 9 should work for now:<br>
<pre class="prettyprint"><code><span class="pun">%fragment("SWIG_AsVal_wchar_t", "header", fragment="<wchar.h>") {
SWIGINTERN int SWIG_AsVal_wchar_t(SV* p, wchar_t* val) {
long v;
int res;
res = SWIG_AddCast(SWIG_AsVal_long(p, &v));
if (SWIG_IsOK(res)) {
if (val) *val = static_cast< wchar_t >(v);
}
return res;
}
}</span><span class="pun"></span><span class="pun"></span></code></pre>
either solution will allow compilation and useful functionality. On
SVN i've needed to alter the makefiles that are included by sword to
get it to compile the final library. I will try to spend some time
making the bindings compile and work. If any of you can try out the
rsword gem it would be neat (gem install rsword), and any general
comments to be able to make it ready for production. <br>
<br>
In Christ, God bless you<br>
-brian<br>
<br>
<br>
<br>
</body>
</html>