Commit graph

18,391 commits

Author SHA1 Message Date
David Nadlinger
a034d151b7 Add D to Travis CI. 2014-11-06 23:04:36 +01:00
David Nadlinger
86276568df D: Fix out-of-source build for examples. 2014-11-06 23:04:36 +01:00
David Nadlinger
7c57ebf888 D: Use configure-detected default language version for test-suite. 2014-11-06 23:04:36 +01:00
David Nadlinger
24ceed86b4 D: Work around nativepointer problem in test-suite/typemap_directorout.i.
Just "%typemap(ddirectorout) MyType &USEME = SWIGTYPE &;" does not
inherit the antivepointer attribute from the SWIGTYPE & case, but
the other typemaps that are not overridden (dout/…). Thus, some
of the emitted code used native pointers, and some SWIGTYPE_p_int.
2014-11-06 23:04:35 +01:00
David Nadlinger
5d133ada91 D: Use deterministic allocation on the D side in li_boost_shared_ptr_runme.i. 2014-11-06 23:04:35 +01:00
David Nadlinger
a8cdd1798e D: Emit empty enums as int aliases instead of omitting them.
This fixes test-suite/enum_forward.i.
2014-11-06 23:04:35 +01:00
David Nadlinger
a9d7b7f40c Work around D test suite failure due to issue #254.
Object is currently a D keyword for the purposes of SWIG
(that's in fact a little too strict, but Object is the root
of the class hierarchy and some parts of the code break).
'template_typedef_typedef' is supposed to test.
2014-11-06 23:04:35 +01:00
David Nadlinger
0d6472525c D: Fix name collision between im D module function pointer and actual C function.
Previously, the function pointers were not only declared with
extern(C) calling convention, but actually had C linkage
themselves. Thus, they were exported under their bare names,
potentially colliding with the actual function definitions
in the wrapped library if the dynamic linker decided to
resolve them the wrong way.

This fixes the sneaky1 test case, although I have no idea why
the add() reference in D_add() (via the PLT) is rebound to the
function pointer there and not in all other test cases and
real-world libraries. As far as I can see, there don't seem to
be any special symbol visibility/binding settings involved in
our build system.
2014-11-06 23:04:35 +01:00
David Nadlinger
95e8db7c62 D: Fix class/method name ambiguity in test-suite/c_delete.i.
There might be other cases where this happens when $dclassname
is used for code emitted into the proxy class itself, but so
far, there are none in the test suite or any bug reports.
2014-11-06 23:04:35 +01:00
David Nadlinger
2faef96e0a D: Fix preproc_constants/preproc_constants_c test cases. 2014-11-06 23:04:35 +01:00
David Nadlinger
0b42c6f653 D: Fix allprotected_not.i compilation.
The director cycle breaking code was emitted when protectors
were not actually enabled on the parent class, leading to
swigIsMethodOverridden being called but not declared.
2014-11-06 23:04:34 +01:00
David Nadlinger
bb768f5aa5 D: Fix li_boost_shared_ptr_runme.2.d compilation.
The overload of Thread.sleep taking a bare integer has been
deprecated/removed.
2014-11-06 23:04:34 +01:00
Anthony Li
7717dc1aaf delete unmeaningful macro 2014-11-05 09:42:38 +08:00
Olly Betts
45b9070a1d Fix doc typos reported by tounsi67 in issue#260 2014-11-05 09:56:55 +13:00
Vladimir Kalinin
8bc38dc007 fixes "flatnested" feature for out-of-scope defined nested classes 2014-11-04 19:30:53 +03:00
Alexey Pelykh
837d2bfd04 Removed useless code (it does not affect output, at least on our testcases) 2014-11-03 12:10:10 +02:00
William S Fulton
698248d2bf beautify scilab.cxx 2014-10-31 23:27:36 +00:00
William S Fulton
f52f4c6e10 Check for pkg-config before attempting to use it in configure
Fixes configure when pkg-config is missing and looking for Scilab and
Javascript
2014-10-31 22:46:52 +00:00
William S Fulton
55b9cfbfe0 Travis: No need for parallel builds for Scilab now since removing builder 2014-10-31 22:29:30 +00:00
William S Fulton
c150fc033d Scilab minor coding improvements 2014-10-31 22:00:48 +00:00
William S Fulton
6d6cefa791 Fix 'self' parameter name clash when generating for Python builtin 2014-10-31 07:23:08 +00:00
William S Fulton
6029b2f7d8 Fix for 'self' being used as a parameter name 2014-10-30 07:22:59 +00:00
William S Fulton
3855b96459 Update changes file 2014-10-29 23:11:09 +00:00
William S Fulton
ede1e9544c Fix R Lib files and testcase failing due to new preprocessor checks
Fixes unknown preprocessor directive error introduced in #217
commit 255c929c56
These were probably intended as script comments using # when C/C++
comments using // or /* */ should have been used.
2014-10-29 23:11:09 +00:00
William S Fulton
fc1eaa5213 Fix autodoc testcase for python -builtin 2014-10-29 12:23:51 +00:00
William S Fulton
7d4af72dde Revert "Fix when is 'self' used as a parameter name in Python"
This reverts commit a6efdb7999.
2014-10-29 09:42:11 +00:00
William S Fulton
3eb626fda6 Revert "Don't use C++ features when building test code as C."
This reverts commit 6d93d57ab0.
2014-10-29 09:42:04 +00:00
Vadim Zeitlin
6d93d57ab0 Don't use C++ features when building test code as C.
This fixes the build after a6efdb7 which added a method to a test used in both
C++ and C test cases.
2014-10-29 00:55:49 +01:00
William S Fulton
a6efdb7999 Fix when is 'self' used as a parameter name in Python
Fix corner case for variable names called 'self' after merging in patch #201
2014-10-28 07:07:44 +00:00
William S Fulton
cd725fbe94 Minor cosmetic source code changes 2014-10-28 07:07:44 +00:00
William S Fulton
5d71f91b29 Fix autodoc testcase for new named python arguments when using python -builtin
For the changes in #201.
2014-10-28 07:07:00 +00:00
William S Fulton
36ae32e941 Merge remote-tracking branch 'vadz/py-args'
* vadz/py-args:
  Allow using enum elements as default values for Python functions.
  Don't always use "*args" for all Python wrapper functions.
  No real changes, just make PYTHON::check_kwargs() const.
  Refactor: move makeParameterName() to common Language base class.
  Remove long line wrapping from Python parameter list generation code.
2014-10-27 20:02:59 +00:00
Simon Marchetto
4554294885 Merge branch 'ibell-patch-5' into gsoc2012-scilab 2014-10-27 12:16:20 +01:00
Simon Marchetto
52d2291b66 Merge branch 'patch-5' of https://github.com/ibell/swig into ibell-patch-5
Conflicts:
	Source/Modules/scilab.cxx
2014-10-27 12:15:36 +01:00
William S Fulton
d03c260738 D test-suite fixes
Fixes 'make partialcheck-d-test-suite' and probably normal D
test-suite usage (unable to test)
2014-10-25 15:46:43 +01:00
David Nadlinger
732bb8f8ec Merge pull request #205 from timotheecour/dev
Use core.atomic.atomicOp to mutate shared variables
2014-10-24 20:17:38 +02:00
William S Fulton
d5c9c8a0b4 Merge branch 'kwwette-master' - Octave changes
* kwwette-master:
  Doc/Manual/Octave.html: update which Octave versions have been tested against
  .travis.yml: also test against Octave version 3.8
  Revert "Suppress Octave failing the build"
  .travis.yml: reduce Octave make jobs to 3
  Octave: disable optimization of tests for faster compiles/less memory usage
2014-10-24 06:58:59 +01:00
Simon Marchetto
52a0ac0b66 scilab: test li_std_string_extra is fixed by previous commit 2014-10-23 11:21:01 +02:00
Simon Marchetto
aba56486fe scilab: fix std::string length issue 2014-10-23 11:08:34 +02:00
Simon Marchetto
1875f841e5 scilab: simplify builder script file 2014-10-22 12:19:01 +02:00
Karl Wette
7d1f3a6ea1 Doc/Manual/Octave.html: update which Octave versions have been tested against 2014-10-22 12:18:16 +02:00
Karl Wette
d8e2815e25 .travis.yml: also test against Octave version 3.8 2014-10-22 12:03:49 +02:00
Karl Wette
12e9589ec0 Revert "Suppress Octave failing the build"
- This reverts commit fea2fc137e.
- Failures were probably due to gcc running out of memory
- Disabling optimization of Octave tests should both increase
  compile times and reduce memory usage, and reducing number
  of make jobs to 3 should also allow for more memory per job
2014-10-22 12:03:49 +02:00
Karl Wette
e8762313cd .travis.yml: reduce Octave make jobs to 3
- Allow for more memory per job to prevent gcc failures
- Disabling optimization should give enough speedup to compensate
2014-10-22 12:03:49 +02:00
Karl Wette
18a9c095f8 Octave: disable optimization of tests for faster compiles/less memory usage
- Filter out all but -g... and -W... flags from OCTAVE_CXXFLAGS
- Use AX_CHECK_COMPILE_FLAG() to check if -O0 is supported, if so
  add to end of OCTAVE_CXXFLAGS to ensure optimization is disabled
- Also run mkoctfile under "env -" to protect it from environment
- Also use more standard-compliant sed expressions
2014-10-22 12:03:49 +02:00
Simon Marchetto
fd1e387a0e scilab: rename build command line options 2014-10-21 17:00:51 +02:00
Simon Marchetto
1a2136a053 scilab: update .gitignore 2014-10-21 14:55:58 +02:00
Simon Marchetto
6abf66324a scilab: add the SWIG banner to the generated gateway XML 2014-10-21 14:55:46 +02:00
Simon Marchetto
30faff1fce scilab: remove outputlibrary option + renaming module to gateway 2014-10-21 14:39:18 +02:00
Simon Marchetto
06614ebb79 scilab: fix compilation warnings in primitive_types test 2014-10-21 10:03:29 +02:00