William S Fulton
e62dc28f16
Clean up Lua std::string typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 07:07:00 +00:00
William S Fulton
12a9671440
std::string typemap modifications so they can be used with %apply for other string classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 06:33:49 +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
a6d005f78b
Fix another comment typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-09 07:28:46 +00:00
Olly Betts
e3b79abcdc
Fix comment typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-09 07:23:07 +00:00
William S Fulton
60b9635c79
Fix uninitialised variable in Lua SWIGTYPE **OUTPUT typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-25 05:53:14 +00:00
William S Fulton
dc7818db81
Add missing Lua factory.i for patch #3219676
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-24 18:37:53 +00:00
William S Fulton
ac688f9ccb
Apply patch #3517435 from Miles Bader - prefer to use Lua_pushglobaltable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12985 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-14 20:37:39 +00:00
William S Fulton
5c8e5542ef
Apply #3219676 from Shane Liesegang which adds: - support for %factory - a __tostring method - a __disown method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-13 18:28:37 +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
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
William S Fulton
d68b786b19
Cosmetic improvements in generated code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 23:25:52 +00:00
William S Fulton
2c2e5fa9b5
Add some missing signed char and unsigned char Lua typemaps in the typemaps.i library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 16:12:12 +00:00
William S Fulton
f10c7868fd
Fix SWIG_lua_isnilstring multiply defined when using multiple modules and wrapping strings. Patch from 'Number Cruncher'.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-10 19:21:07 +00:00
Olly Betts
1fe29bae87
Remove superfluous semicolons
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-21 07:37:40 +00:00
William S Fulton
2535297efb
minor formatting change
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-23 06:44:47 +00:00
William S Fulton
9dd763d4d3
Fix #2887254 and #2946032 - SWIG_Lua_typename using wrong stack index.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-09 22:02:09 +00:00
William S Fulton
662084aa06
Lua - Fix char pointers, wchar_t pointers and char arrays so that nil can be passed as a valid value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-02 19:48:20 +00:00
William S Fulton
bdb136d611
Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
3932d02a2a
fix SWIG naming convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
Mark Gossage
e604e46b17
[Lua] Added contract support for requiring that unsigned numbers are >=0
...
Rewrote much of Examples/Lua/embed3.
Added a lot of to the Lua documentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-13 01:42:25 +00:00
Mark Gossage
de6d6ccaa8
[lua] bugfix 1938142 (bool& and bool* support)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-17 02:57:15 +00:00
William S Fulton
336b50b43d
Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
Mark Gossage
ef7c0cbbd2
[Lua] Removed generation of _wrap_delete_XXXXX (wrappered destructor) which was unused and causing warning with g++ -Wall.
...
Removed other unused warning in typemaps.i and other places.
Added Examples/lua/embed3, and run tests a few test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-30 00:17:53 +00:00
William S Fulton
6054159ecf
Add array reference typemaps which are needed since the pointer reference typemaps were committed in the last checkin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-07 21:06:23 +00:00
William S Fulton
929f68b069
Add Lua pointer reference typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-07 20:06:37 +00:00
Mark Gossage
11647d87e8
[lua] Added a typemap DISOWN for SWIGTYPE* and SWIGTYPE[], and support for %delobject feature.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-27 01:58:30 +00:00
Mark Gossage
e543cd9040
[lua] added %luacode feature, documentation & examples
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 08:50:59 +00:00
Mark Gossage
8350c724f5
[lua] updated docs for exceptions
...
added new examples (exception,embed2)
update typmaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-06 09:44:48 +00:00
William S Fulton
a91e4906b5
Add newmemory parameter for SWIG_TypeCast
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 00:35:11 +00:00
William S Fulton
e1673bb613
fix visual c++ warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-03 21:33:47 +00:00
William S Fulton
71c669def4
fix visual c++ warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-03 21:17:08 +00:00
William S Fulton
df83cef573
Visual C++ 8 warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-02 00:52:14 +00:00
Mark Gossage
09113cc0bf
[lua] updated configure script yet again
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10218 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-24 06:16:45 +00:00
Mark Gossage
a60c3ca8ca
Substantial changes to configure script for detecting lua.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-14 01:23:36 +00:00
William S Fulton
7c9ece71ad
Fix gcc-4.2 warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:22:03 +00:00
Mark Gossage
89c3acea19
[lua] Fix a bug in the class hierachy code, where the methods were not propagated,
...
if the name ordering was in a certain order.
Added new example programs (dual, embed) and runtime tests for test-suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-04 09:25:58 +00:00
Mark Gossage
0c2bbb25a3
[lua] fixed bug in template classes which cases template_default2 and template_specialization_defarg to fail.
...
Added several warning filters into the overload's test cases.
Added runtime tests for several codes.
You can now make check-lua-test-suite with no errors and only a few warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 06:10:04 +00:00
Mark Gossage
6a70b4adc7
[lua] move verbose error checks, more test cases, reorg of luatypemaps.swg
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-27 05:36:25 +00:00
William S Fulton
7797ae82aa
const enum reference typemaps fixed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:30:03 +00:00
Mark Gossage
f87371fe8c
[lua] extras compability for lua 5.1, fixed a static link name conflict
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-10 09:30:49 +00:00
Mark Gossage
c3ec8fdce3
[lua] Fix a bug in SWIG_ALLOC_ARRAY()
...
improved the error messages for incorrect arguments.
Changed the output of swig_type() to use the human readable form of the type, rather than the raw swig type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-05 01:31:51 +00:00
Mark Gossage
61fdde65cc
Fixed issues with C++ classes and hierachies across multiple source files.
...
Fixed imports test case & added run test.
Added Examples/imports.
Added typename for raw lua_State*
Added documentation on native functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 02:20:29 +00:00
Mark Gossage
e38a14b2df
Fixed bug in typemaps which caused derived_byvalue and rname test cases to fail.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-02-22 09:21:23 +00:00
Mark Gossage
93496ba199
Patch #1598063 Typo in typemaps.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-23 01:38:53 +00:00
Mark Gossage
571a84c9e7
removed reference to contributers
...
Patch #1640862 (malloc.h to stdlib.h)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-23 01:29:00 +00:00
Mark Gossage
a997938b63
Added a lua specific carrays.i which adds the operator[] support.
...
modified the main code to make it not emit all the class member functions & accessors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-22 04:59:16 +00:00