Commit graph

92 commits

Author SHA1 Message Date
Artem Serebriyskiy
77a7069f9e Fixing cmd options, again 2014-02-22 17:56:21 +04:00
Artem Serebriyskiy
ec629beb31 Fixing segfault 2014-02-22 15:46:22 +04:00
Artem Serebriyskiy
b30aa53709 Removed class_parent_nspace 2014-02-19 16:02:49 +04:00
Artem Serebriyskiy
2767f2a55e Fixes to module options 2014-02-19 14:05:29 +04:00
Artem Serebriyskiy
4eef510e33 Rename methods to make it clear what 'symbols table' they operate on. 2014-02-19 13:34:50 +04:00
Artem Serebriyskiy
e6d0f1327b Eliminating namespaces_hash and using symbols table instead 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
14452cad03 Attempt to catch unreproducable bug from Travis CI build 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0c6263a0c2 Small bugfixes 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
705beb6753 Bugfixes for eLua. eLua emulation mode 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0ee724ca80 Add compatibility option for old-style inheritance 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
6d49a57b53 Add support for C-style enums in C mode. And tests.
In backward compatible mode C style enums binding are correctly
generated
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
4b0ed73317 Style fixes. Comments fixes. Fixing cmd options. etc 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
a87710275d Some fixes for elua 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
89c6fbb780 Attempt to fix unreproducable bug (from Travis CI build) 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
1e282e3981 Code beautifier 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
a3515ca450 Removing obsolete debug code 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
f1fb2cc295 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
dcbcac42b7 A few bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
c775e66048 Fixes for elua 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
9d6cd75c73 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
da0510376c Bugfixes. CMD args handling. Code cleanup 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
7e052c1873 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
aa1b8298ca Preparations before pull request - part 1 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
63a26c6dbe More changes. Mostly to the would-be class library 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
577f20c990 Fixing issuse with v2-compatible static function names 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
ad375d9526 Add pointer guard 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
602cf3a797 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
295788c8a0 nspace.i example is working 2014-02-19 13:34:47 +04:00
Artem Serebriyskiy
1c5a0f8b9c Initial implementation - everything compiles but might not work 2014-02-19 13:34:47 +04:00
Artem Serebriyskiy
c3f3880d0c Lua static member access improvements.
1) Static members and static functions inside class can be accessed as ModuleName.ClassName.FunctionName (MemberName respectively). Old way aka ModuleName.ClassName_FunctionName still works.
2) Same goes for enums inside classes: ModuleName.ClassName.EnumValue1 etc.
3) More 'runme' tests for lua + modifications to existing tests to test new changes.

Code is loosely based upon python implemenation of the same thing.

Patch #62.
2013-09-12 21:32:26 +01:00
Miles Bader
c746ae7a0f Include Lua error locus in SWIG error messages
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
William S Fulton
99231457db Fixes for warnings issued by clang 2013-04-28 17:59:40 +01:00
William S Fulton
7841a0d097 Remove cvs/svn Id strings 2013-01-12 01:21:16 +00:00
Olly Betts
f9566ad2df Fix assorted typos.
From https://sourceforge.net/p/swig/patches/332/ and some others too.
2013-01-08 18:47:40 +13:00
William S Fulton
092e2104c7 More consistent use of DOH namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-26 20:31:54 +00:00
William S Fulton
fd24b188e2 Fix Coverity 'Uninitialized pointer fields' - member variables are now initialized
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:17:28 +00:00
William S Fulton
5a1e82a2f4 Remove DohClose (Close) and replace with calls to DohDelete (Delete) to fix some minor memory leaks in most uses of NewFile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:16:07 +00:00
William S Fulton
49b6c39d98 Lua fix for -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 23:05:07 +00:00
Olly Betts
e3eb54594e [Lua] Add support for Lua 5.2 (patch SF#3514593 from Miles Bader)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-05 04:29:11 +00:00
William S Fulton
6c80f765ca Slight change to the Lua macro names to separate ELUA and ELUAC from normal Lua - patch from Raman Gopalan
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-16 22:50:07 +00:00
William S Fulton
24133bacd7 Remove numerous hard coded 'result' variable name in generated c/c++ wrappers. The variable name is now defined in just one place, making it possible to change the name easily if a target language so wishes - see cwrap.c.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-10-30 21:51:50 +00:00
William S Fulton
91d22324e7 Add support for eLua including options for Lua Tiny RAM (LTR)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-16 22:53:35 +00:00
William S Fulton
932f47a845 SF patch #3394339 from Torsten Landschoff - new option -nomoduleglobal to disable installing the module table into the global namespace. Require call also returns the module table instead of a string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-22 19:27:56 +00:00
Olly Betts
62a88f3613 Fix comment typoes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-15 06:57:25 +00:00
William S Fulton
b78392832f [Lua, Python, Tcl] C/C++ prototypes shown in error message when calling an overloaded method with incorrect arguments improved to show always show fully qualified name and if a const method. Also fixed other Lua error messages in generated code which weren't consistently using the fully qualified C++ name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-05 06:23:02 +00:00
William S Fulton
b69b793d8e Better consistency in usage display
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 21:42:38 +00:00
William S Fulton
d87c312fd0 Corrections to calls to SwigType_manglestr to use a genuine SwigType
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-29 07:49:42 +00:00
William S Fulton
1253657bb4 Add improved namespace support - the nspace feature, working for Java only at the moment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-04 21:27:23 +00:00
William S Fulton
cb64f65bae SWIG license change - Source moves to GPLv3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton
efa11dee52 add new %begin directive for inserting code at top of wrapper file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00