Commit graph

18,401 commits

Author SHA1 Message Date
William S Fulton
4492a3d76b Document Include Lua error locus in SWIG error messages patches.
Closes #81
2013-08-30 07:11:43 +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
Miles Bader
663c41e248 Add Lua runtime helper functions for error-handling
Add two helper functions to the Lua runtime, "SWIG_Lua_pusherrstring"
and "SWIG_Lua_pushferrstring".

These are like the standard Lua functions lua_pushstring and
lua_pushfstring respectively, except that the strings are prefixed
with the location of the innermost Lua call-point (as generated by
luaL_where).
2013-08-30 06:56:33 +01:00
William S Fulton
ada7dd92e4 Fix testcase name 2013-08-29 22:49:59 +01:00
William S Fulton
f55ff50dd5 Skip the UTF-8 BOM of including files.
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.

Closes #75.
2013-08-29 19:22:50 +01:00
Vadim Zeitlin
9efaf954c7 Add support for std::map<> comparator template argument for C#.
Allow exporting maps using non-default comparison function.

Closes #77
2013-08-29 19:08:15 +01:00
Simon Marchetto
f1d289925a Scilab: wrap enums to Scilab variables (if %feature scilab:const") 2013-08-29 18:14:59 +02:00
Simon Marchetto
1b6fff9da5 Scilab: fix portability issue in configure.ac 2013-08-29 09:07:29 +02:00
Olly Betts
6efe3d61f2 Strip trailing whitespace 2013-08-29 11:16:58 +12:00
William S Fulton
b58dabced9 %implicitconv is improved for overloaded functions.
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
William S Fulton
1cc735df5e %implicitconv will now accept None where the implicit conversion takes a C/C++ pointer.
Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230.
2013-08-28 20:28:15 +01:00
Simon Marchetto
362c7e7bce Scilab: add %feature scilab:const (constants are wrapped by Scilab variables) 2013-08-28 17:00:23 +02:00
Simon Marchetto
6346803d41 Scilab: fix debug target 2013-08-27 12:53:16 +02:00
Simon Marchetto
c4fb9f00c8 Scilab: list helper getScilabListAndSize() 2013-08-27 11:57:43 +02:00
Sylvestre Ledru
9f08e04428 Merge pull request #78 from smarchetto/gsoc2012-scilab
Scilab: support of Scilab 5.3.3 + improve the test suite
2013-08-26 08:32:46 -07:00
Simon Marchetto
e1264181a0 Scilab: disable configure cache at end of test-suite 2013-08-26 15:22:58 +02:00
Olly Betts
628b4710e5 [Python] Fix clang++ warning in generated wrapper code. 2013-08-24 08:40:08 +12:00
Olly Betts
b477cb66be Use offsetof() rather than icky homemade equivalent 2013-08-24 08:34:50 +12:00
Simon Marchetto
2e30637a21 Scilab: fix clean config cache 2013-08-22 18:32:34 +02:00
Simon Marchetto
474bdcef91 Scilab: configure cache in test run dir 2013-08-22 16:10:59 +02:00
Simon Marchetto
908c9d1f14 Scilab: fix use of configure cache for multicpptest test-suite 2013-08-22 14:37:28 +02:00
Simon Marchetto
6201dec455 Scilab: use configure cache for test-suite 2013-08-22 10:49:48 +02:00
Simon Marchetto
fa166983aa Scilab: remove unneeded examples from check list 2013-08-21 14:37:35 +02:00
Simon Marchetto
7655b6df6d Scilab: fix arrays_global test case 2013-08-21 14:35:48 +02:00
Simon Marchetto
67d4079e1f Scilab: fix tests failing in 5.3.3 (conflict with Scilab function Error) 2013-08-21 11:11:41 +02:00
Simon Marchetto
7a0aaa39b3 Scilab: add STL list example in check list 2013-08-20 10:26:56 +02:00
Simon Marchetto
62b61b5349 Scilab: fix examples (no paging which stops tests) 2013-08-20 10:26:08 +02:00
Simon Marchetto
0fc9e4d0a4 Scilab: support of Scilab 5.3.3 (api_scilab: Rhs, Lhs, ..) 2013-08-19 17:57:56 +02:00
Simon Marchetto
3a190fec2b Scilab: check Scilab version & support of Scilab 5.3.3 (program arguments) 2013-08-19 17:40:31 +02:00
Simon Marchetto
f7c11a8882 Revert "Scilab: support of Scilab 5.3.3"
This reverts commit d6eb7323b6.
2013-08-09 14:55:29 +02:00
Simon Marchetto
498ca722e5 Revert "Scilab: fix debug infos in config.log"
This reverts commit 2f910faebb.
2013-08-09 14:54:36 +02:00
Simon Marchetto
ff25d2c536 Revert "Scilab: add Scilab in makefile check version targets"
This reverts commit 66edc244b9.
2013-08-09 14:46:39 +02:00
Sylvestre Ledru
4fa29e95ca Merge pull request #74 from smarchetto/gsoc2012-scilab
Scilab: Fix test-suite crashes, fix configure log, and display Scilab version
2013-08-09 04:16:03 -07:00
Simon Marchetto
66edc244b9 Scilab: add Scilab in makefile check version targets 2013-08-09 12:16:00 +02:00
Simon Marchetto
2f910faebb Scilab: fix debug infos in config.log
display scilab executable, version and startup options, remove cc options
2013-08-09 12:11:38 +02:00
Simon Marchetto
2026078a49 Scilab: fix seg fault on tests naturalvar, li_std_string 2013-08-09 11:45:40 +02:00
Kris Thielemans
a495b5a985 Remove SwigPyObject_print and SwigPyObject_str, and make the generated wrapper use the default python implementations, which will fall back to repr (for -builtin option).
Advantages:
- it avoids the swig user having to jump through hoops to get print to
  work as expected when redefining repr/str slots.
- typing the name of a variable on the python prompt now prints the
  result of a (possibly redefined) repr, without the swig user having to
do any extra work.
- when redefining repr, the swig user doesn't necessarily have to
  redefine str as it will call the redefined repr
- the behaviour is exactly the same as without the -builtin option while
  requiring no extra work by the user (aside from adding the
%feature("python:slot...) statements of course)
- the patch simplifies pyrun.swg a tiny bit.

Disadvantage:
- default str() will give different (but clearer?) output on swigged
  classes compared to unpatched swig

SF Bug #326
2013-08-07 20:22:03 +01:00
Sylvestre Ledru
7791756673 Merge pull request #72 from smarchetto/gsoc2012-scilab
Scilab: support of Scilab 5.3.3
2013-08-07 09:26:49 -07:00
Simon Marchetto
d6eb7323b6 Scilab: support of Scilab 5.3.3
Fix: for test suite and examples, run Scilab with -noatomsautoload if Scilab version >=5.4 only
2013-08-07 18:21:18 +02:00
Sylvestre Ledru
9a71a7ae9a Merge pull request #71 from smarchetto/gsoc2012-scilab
Merge, fix makefiles, and add build verbosity level
2013-08-07 05:28:31 -07:00
Simon Marchetto
7a3428d912 Scilab: fix test case clean 2013-08-07 14:14:41 +02:00
Simon Marchetto
9dc203e7dd Scilab: Example makefile accepts Scilab specific options 2013-08-07 14:03:14 +02:00
Simon Marchetto
021cb99b4c Scilab: add build verbosity level (ilib_verbose) option 2013-08-07 12:27:43 +02:00
William S Fulton
a0af86811d Travis builds - add in apt-get update
php tests were failing. Travis suggest running this before any install - http://about.travis-ci.org/docs/user/build-configuration/#Installing-Packages-Using-apt
2013-08-06 21:16:11 +01:00
William S Fulton
f899164cc5 Update .travis.yml
Add gsoc2012-scilab branch to Travis builds. Remove other languages for building on Travis except for Python as a sanity check.
2013-08-06 13:47:39 +01:00
Simon Marchetto
173f83ede8 Scilab: git ignore generated files 2013-08-06 10:58:07 +02:00
Simon Marchetto
89f6510fc4 Scilab: fix usage text 2013-08-06 10:48:56 +02:00
Simon Marchetto
2bd8c0eada Merge branch 'gsoc2012-scilab' of https://github.com/swig/swig into gsoc2012-scilab 2013-08-06 10:23:07 +02:00
Sylvestre Ledru
c5b766de01 Merge branch 'gsoc2012-scilab' of github.com:swig/swig into gsoc2012-scilab 2013-08-06 10:16:28 +02:00
Sylvestre Ledru
72c80652e7 Add support of Scilab in the travis build system 2013-08-06 10:12:34 +02:00