Commit graph

3,956 commits

Author SHA1 Message Date
William S Fulton
f1213809a2 Fix python tests for old versions of Python 2015-01-31 17:39:36 +00:00
William S Fulton
76bcec1d87 Test-suite fixes for python -classic
These are mostly workarounds for static class members not being supported for
old style classes, as documented in Python.html, "C++ classes".
2015-01-31 15:04:35 +00:00
William S Fulton
760d603918 Warning and error fixes for Solaris Sun Studio compiler 2015-01-27 19:30:24 +00:00
William S Fulton
18058a9860 Cosmetic changes in a few test cases 2015-01-27 07:48:48 +00:00
William S Fulton
209ed1db66 Scilab testcase fix 2015-01-27 06:01:20 +00:00
William S Fulton
21b176f07f Fix preproc_line_file test 2015-01-26 22:35:17 +00:00
William S Fulton
ee4aa853b8 Fix 'not defined SWIGSCILAB' in testcases 2015-01-26 21:38:17 +00:00
William S Fulton
1fae569960 Add missing SWIGSCILAB in wrappers and fix unions test for non-scilab languages 2015-01-26 21:03:45 +00:00
Simon Marchetto
0544765abd remove -nobuilder option 2015-01-26 12:29:40 +01:00
Simon Marchetto
62c0dd9651 scilab: fix throw_exception test 2015-01-26 11:07:28 +01:00
Simon Marchetto
adc4b788df Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
Conflicts:
	.gitignore
	.travis.yml
	configure.ac
2015-01-26 10:50:20 +01:00
William S Fulton
d3051c5b04 Merge branch 'ConroyJ-master'
* ConroyJ-master:
  Updated usage string for -cppcast/-nocppcast in octave.cxx
  Attempting fixes for Octave shared_ptr support
2015-01-22 20:06:55 +00:00
William S Fulton
bbca45174a Fix typo 2015-01-19 07:59:23 +00:00
William S Fulton
253c6e1163 Scilab makefile tidyup 2015-01-19 07:52:38 +00:00
William S Fulton
fb94b312e0 Fix incorrect flags being passed to javac on cygwin/mingw 2015-01-17 23:17:57 +00:00
William S Fulton
06fb68af5b Merge branch 'ptomulik-fix/py-object-const'
* ptomulik-fix/py-object-const:
  constant_directive_runme.py and classic classes
  additional fixes to %constant directive
  make %constant directive to work with structs/classes
2015-01-15 20:18:21 +00:00
William S Fulton
4d5333cb88 Merge branch 'leg0-bug_307'
* leg0-bug_307:
  C++11 strongly typed enum fixes for directors
  Fix #307.
2015-01-15 19:48:38 +00:00
William S Fulton
fd8dcf44bf C++11 strongly typed enum fixes for directors
Tests added for previous commit. Further refinements to patch #308 and
fixes #307.
2015-01-15 19:48:07 +00:00
William S Fulton
afba5b755a Fix Python default args when using kwargs
Recent default arg handling fixes didn't fix the case when kwargs is turned on
2015-01-15 07:54:36 +00:00
Olly Betts
ecf3ab5605 Disable director_thread_runme.php
This fails in a ZTS build of PHP.
2015-01-15 09:32:34 +13:00
Olly Betts
be4065531e Add suggestion to check block delimiter
The fix for #217 means that blocks of target code delimited by { } with
'#' comments in now give errors (previously these lines were quietly
discarded).

The fix is generally to use %{ %} delimiters instead, so suggest this
might be the issue in the error message to help users hitting this issue
with wrappers which were apparently working before.
2015-01-14 16:08:08 +13:00
Olly Betts
a2f803bb5a Add explanatory comment to pp_unknowndirective2.i 2015-01-14 16:00:40 +13:00
William S Fulton
944fbfb426 Python 3 default args fix
Fix 0U and 0L as default args for Python 3 (tests committed in
previously commit of default_args.i).
Relates to issue #294.
2015-01-13 07:55:31 +00:00
William S Fulton
9d87b9f099 Revert introduction of python:defaultargs feature
See issue #294
2015-01-12 21:35:47 +00:00
Simon Marchetto
0b07622a11 fix failing unit tests with Scilab V6 2015-01-12 16:20:27 +01:00
Olly Betts
02b10195fc Add regression test for #217 2015-01-12 22:33:15 +13:00
William S Fulton
679f9395bc Tests for Python default arguments and %pythondefaultargs.
Tests changes in previous commit (see patch #294)
2015-01-11 16:45:53 +00:00
William S Fulton
efb8784c8b Fix python default_args testcase for Python 3
Changes for the default_args testcase to run under Python 3 when called
from python_default_args testcase
2015-01-09 00:37:23 +00:00
William S Fulton
38ba81811e Fix Python default argument handing broken since swig-3.0.3
Default values are no longer generated as Python code by default.
They must be explicitly turned on using the "python:defaultargs" feature.

Closes #294
Closes #296

The problems in these two issues when "python:defaultargs" is turned
on still need to be fixed and should be addressed in separate patches.
The important thing is the default code generation is now fixed.
2015-01-09 00:34:17 +00:00
Vadim Zeitlin
34787ab98e Python default argument test cases from issue #294 2015-01-09 00:33:57 +00:00
William S Fulton
af43f90484 Wording change for missing semicolon error 2015-01-08 23:37:52 +00:00
Olly Betts
bfa570e404 Handle "constexpr explicit" and "constexpr static" 2015-01-09 11:47:40 +13:00
Olly Betts
87bdaa3910 Allow C++11 "explicit constexpr" 2015-01-08 15:56:50 +13:00
Olly Betts
62670e756e Improve errors for missing ; and unexpected ) 2015-01-08 15:27:57 +13:00
Olly Betts
8fbdd75a0b Add test coverage for unterminated %{ ... %} block 2015-01-08 13:26:39 +13:00
Olly Betts
ce90ff6a77 When reporting an error for a construct which hasn't been terminated
when the end of the file is reached, report it at the start line rather
than "EOF" as then tools like editors and IDEs will take you to a
generally more useful place for fixing the problem.
2015-01-08 13:19:17 +13:00
Olly Betts
51487c1acc Improve error message for extraneous '%}'. 2015-01-08 12:47:12 +13:00
Olly Betts
19961d7135 Add .gitignore for Examples/test-suite/errors/ 2015-01-08 12:25:47 +13:00
Olly Betts
809ebef1f8 Fix testcase name in expected output 2015-01-08 12:21:23 +13:00
Olly Betts
04715f74e2 Improve error message when an unknown SWIG directive is used
This previously gave the cryptic "Error: Syntax error in input(1).", but
now gives "Error: Unknown directive '%foo'."
2015-01-08 12:07:54 +13:00
Simon Marchetto
78705a5175 gateway source is moved into wrapper source 2015-01-07 18:04:29 +01:00
Jeremy
e301457a43 Attempting fixes for Octave shared_ptr support 2015-01-05 10:53:06 -05:00
Paweł Tomulik
2f6dee3adb constant_directive_runme.py and classic classes 2015-01-02 18:50:49 +01:00
Paweł Tomulik
cfaf2f97fd additional fixes to %constant directive 2015-01-02 18:50:49 +01:00
Paweł Tomulik
c21e2423a0 make %constant directive to work with structs/classes 2015-01-02 18:50:49 +01:00
William S Fulton
3aab2df371 Fix D examples when run 'in-source' 2014-12-29 17:17:25 +00:00
William S Fulton
2d340efe0d Fix D examples clean
Was not working if run out of source without previously running D examples
2014-12-28 19:54:46 +00:00
William S Fulton
063aa9e3c5 Revert "Fix D examples clean"
This reverts commit c26010eb01.
2014-12-28 19:14:25 +00:00
William S Fulton
1610ca86dd Fix javascript clean 2014-12-28 19:07:32 +00:00
William S Fulton
c26010eb01 Fix D examples clean 2014-12-28 17:35:18 +00:00