From: John L. <le...@cs...> - 2006-08-20 00:03:00
|
On 08/16/06 22:46, Chris Shoemaker wrote: > Wow, it seems so simple. Yeah, I think this is a good feature. BTW, > do you have a feel for how many projects use SWIG for the guile > bindings? > Ok, I just committed it to CVS. I added the feature as "constasvar", and it works on all constants (including enums). You can apply it globally by adding %feature("constasvar", "1"); or by using -features constasvar on the command line, or applying the feature to individual constants or enums (see the docs on how to do that... in CVS, I updated Guile.html with a paragraph about constasvar) Note, you can test gnucash with the CVS version of SWIG if you just check SWIG out, run ./autogen.sh && ./configure && make then, in gnucash just use /path/to/SWIG/CVS/preinst-swig preinst-swig is a shell script that sets up all the paths and such to use SWIG directly from the build directory. And since the generated wrapper files don't need any part of SWIG installed, once they are generated they work without needing to know the path or anything. So, it would be nice if you tested out the constasvar feature before we make a release. As to how many people use guile, I have no idea. The thing about SWIG is, there is a large amount of documentation, examples, and all the examples in the test suite, so I think a lot of people use SWIG without sending questions to the list or anything. The data from the survey (http://www.swig.org/survey.html) says 56 people marked Guile during the month of July, versus a total of 2285 survey submissions. So over 50 downloads a month is pretty big (didn't check any other months, but I assume they are close). Remember, many people may download directly from http://sourceforge.net/project/showfiles.php?group_id=1645 or use the package from their distro, so the true number of people using guile will be larger. John PS: gnucash-devel mailing list kept rejecting my posts, so I will try again but maybe noone else is seeing this. |