Commit graph

55 commits

Author SHA1 Message Date
Dimitris Apostolou
40c3bf30b2 Fix typos 2022-02-10 16:12:24 +13:00
William S Fulton
d15a3cb1d4 Fix testcase -Wstringop-truncation warning in gcc11 2021-11-12 19:00:20 +00:00
William S Fulton
7d85efbf3c Lua example fix for newer osx 2021-02-20 14:47:03 +00:00
luz.paz
60dfa31a67 Misc. typos
found via `codespell` and `grep`
2018-05-17 10:04:23 -04:00
William S Fulton
c9a10eb726 Examples update to support C++17: exception specification throw removal 2018-05-04 20:02:13 +01:00
William S Fulton
1730210013 Remove differences from lua example compared to Python version 2017-02-06 20:30:13 +00:00
William S Fulton
760c008311 Warning fixes for gcc-7
warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
2017-02-06 20:30:09 +00:00
William S Fulton
e952a19a3d Fix examples for lua 5.3 2016-05-01 11:52:02 +01:00
William S Fulton
89f13b03da Correct to Unix CR/LF 2015-09-05 16:18:03 +01:00
William S Fulton
8e2bc595c6 Remove use of preinst-swig script
Complete the prototype removal in ca1431.

The script prevents SWIGTOOL=gdb from working as gdb can't be used to
debug a shell script, it requires a binary.

Add support for SWIGTOOL in all the examples.

SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.

See issue #473.
2015-08-21 22:43:17 +01:00
William S Fulton
97b0868754 Fix line endings in lua example 2014-11-27 20:23:28 +00:00
Olly Betts
37cd1474b5 Remove bogus ; after } in examples 2014-11-07 15:34:43 +13:00
William S Fulton
f39ed94419 Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic -Wreturn-type 2014-05-24 13:13:32 +01:00
Karl Wette
f574a34155 Allow examples and test-suite to be built out of source tree
- Examples/Makefile.in rules use SRCDIR as the relative source directory

- ./config.status replicates Examples/ source directory tree in build
  directory, and copies each Makefile to build directory, prefixed with
  a header which sets SRCDIR to source directory

- Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir

- Examples/test-suite/errors/Makefile.in needs to filter out source
  directory from SWIG error messages

- Lua: embedded interpreters are passed location of run-time test

- Python: copy run-time scripts to build directory because of 2to3
  conversion; import_packages example copies __init__.py from source
  directory; test-suite sets SCRIPTDIR to location of run-time tests

- Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir
  can be substituted with SRCDIR; removed './' from require() statements
  so that NODE_PATH can be used to point Node.js to build directory
2014-05-11 23:21:10 +02:00
Olly Betts
b115c984a9 More cleaning up of the class examples 2014-05-05 16:14:31 +12:00
Olly Betts
7cac2d35cb Remove random extra assignment in example code 2014-05-05 16:05:00 +12:00
Olly Betts
618868ce3d Fix typos 2014-04-29 11:31:29 +12:00
Karl Wette
3aacde4f5f Whitespace cleanup of Example Makefiles 2014-04-16 12:06:02 +02:00
William S Fulton
c99417ab13 Lua documentation tweaks and make nspace example more concise. 2014-03-04 07:54:37 +00:00
Artem Serebriyskiy
6b18d20979 Fixing documentation. Adding an example. 2014-03-02 19:10:11 +04:00
Olly Betts
0de4cf13a8 Further cleaning up of class examples 2014-02-24 10:10:24 +13:00
Olly Betts
2f3bf144c6 Fix assorted comment and documentation typos 2014-02-23 17:15:22 +13:00
William S Fulton
bf313809ae Fix Lua examples for running under Lua 5.2
Includes cherry picking parts of
ce2760f77e
2014-02-22 00:43:18 +00:00
William S Fulton
152905e193 Fix gcc -Waddress warning in variables examples 2013-10-18 06:53:02 +01:00
William S Fulton
6a48eb5e47 Lua examples now run during 'make check' and makefile tidyup. 2013-04-19 22:47:27 +01:00
William S Fulton
079165abe2 Convert to unix fileformat 2013-01-12 16:54:45 +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
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
William S Fulton
7a68c5c003 Lua example warning removal fixes for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 15:21:29 +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
4b88b00600 add missing header
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 20:01:46 +00:00
William S Fulton
b89d50d52c add missing header
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 23:17:05 +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
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
William S Fulton
4926fb7f46 gcc-4.2 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-09 13:07:20 +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
Olly Betts
df8b78dbea [lua] Fix Examples/lua to pass SRCS for C tests rather than CXXSRCS.
The code as it was happened to work on x86, but broke on x86_64 (and
probably any other platforms which require -fPIC).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 23:55:26 +00:00
Olly Betts
5e52a02a0c Remove a stray ";"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 23:54:15 +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
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
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
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
John Lenz
6dda6f8321 Remove cvsignore files: this is stored on svn:igonre property now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +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
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
William S Fulton
c772286a5d remove sprintf deprecated message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 00:38:54 +00:00
William S Fulton
1df2820ae9 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:58:01 +00:00
Marcelo Matus
d5122e2a9c force examples to use preinst-swig, as is done in the test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:17:20 +00:00