Commit graph

55 commits

Author SHA1 Message Date
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
Mark Gossage
0cbba6842b Added typemap throws for std::string*, typemap for SWIGTYPE DYNAMIC, changed the existing throws typemap to throw a string instead of making a copy of the object
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 09:51:04 +00:00
Mark Gossage
515e846e2a Added more STL (more exceptions, map, size_t), fixed test case: conversion_ns_template.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-26 10:15:35 +00:00
Mark Gossage
bc08e0f335 making setting immutables an error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-21 04:53:12 +00:00
Mark Gossage
9ba3f0399e update to typemap for object by value, to make it c89 compliant
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-14 05:03:20 +00:00
Mark Gossage
2af7e4b447 added support for native methods & member function pointers.
fixed test cases arrays_dimensionless & cpp_basic. Added new example (functor).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-24 06:26:48 +00:00
Mark Gossage
5149b7b4f3 fixed several test cases
added long long support
changed typemaps to use SWIG_ConvertPtr rather than SWIG_MustGetPointer
started spliting lua.swg into smaller parts to make it neater


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 07:15:52 +00:00
Mark Gossage
0ef981882d [Lua] Fix #1569587. The name is now correct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 03:22:21 +00:00
Mark Gossage
25062ce4e8 Partial Fix #1569587. The type is now correct, but the name is still not correct.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 05:21:02 +00:00
Mark Gossage
20c2d4bf01 added support for passing function pointers as well as native lua object
into wrappered function
added example funcptr3


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-11 06:45:03 +00:00
Mark Gossage
02f0a49bc5 Bugfix #1542466 added code to allow mapping Lua nil's <-> C/C++ NULL's
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-21 08:00:13 +00:00
Mark Gossage
b2363bff02 upfdated to the typemaps to support std:strings with '\0' in them, and to add a typemap for SWIGTYPE** OUTPUT
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-21 08:51:40 +00:00
William S Fulton
efdab2a1ea Fix operator warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-04 21:04:35 +00:00
William S Fulton
389b4813ca more %apply char* fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:57 +00:00
William S Fulton
2d24918a97 ensure %apply with char*, unsigned char* and signed char* works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:58:19 +00:00
William S Fulton
797317163a cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:02:54 +00:00
William S Fulton
49be05f4fd Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Mark Gossage
ebbae30d72 added correct void* support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-13 02:49:55 +00:00
Mark Gossage
8328eb6e34 bugfix #1356577, changed double=>lua_number in a few places.
added the std::pair wrapping


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 01:41:06 +00:00
Marcelo Matus
15fff92a74 fix Wall/pedantic
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 06:18:50 +00:00
William S Fulton
3d03012639 Finally std::string global and member variables are wrapped as strings by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:42:25 +00:00
Mark Gossage
c413035b7c fixed mistake reported by William, caused by updating the lua.cxx
but not the lua.swg file


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-24 04:47:46 +00:00
Mark Gossage
4b4a6aa09d applied neomantra's patches & fixed C89 bug #1356574
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 07:59:11 +00:00
William S Fulton
2387c32254 Each target language now has its own std_deque.i like the other STL wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:08:44 +00:00
Mark Gossage
06a3a305b1 Mistake: numargs replaced with numinputs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 09:58:19 +00:00