Commit graph

4,090 commits

Author SHA1 Message Date
Vadim Zeitlin
300ccce46c Another merge with master.
Change Doxygen error codes to start at 740 instead of at 720 as the latter was
taken by Scilab in the meanwhile.

Resolve conflicts in autodoc_runme.py once again.
2015-02-16 23:46:39 +01:00
William S Fulton
f8491f8ab0 Merge branch 'clang-warning-fixes'
* clang-warning-fixes:
  Correct Examples makefile for guile
  Suppress clang warning in testcase
  preproc_constants warning suppression when using clang
  Warning suppression in li_std_vector_extra testcase for clang
  preproc_constants warning suppression when using clang
  Modify preproc testcase to remove clang warning
  Rename test warning suppressions when using clang
  primitive_types testcase improvement
2015-02-11 23:44:20 +00:00
William S Fulton
1ef899a57b Merge branch 'stricter-warnings'
* stricter-warnings:
  Go changes for wrappers to compile as ISO C90
  Scilab typecheck typemaps fix for C90
  No error for one Javascript node warning
  Warning fix in testcase for Javascript node
  nested_extend_c testcase fix when compiled by C++ target languages
  Temporarily remove -Werror for Scilab testing
  C90 fixes for Javascript JSC
  There are a couple of testcases that aren't compliant and supression via pragmas doesn't work for gcc < 4.8
  Warning suppression change
  Scilab typemap fixes for C89
  compiler warning suppression correction in testcase
  Suppress pedantic warnings in C# testcases
  Suppress pedantic warnings in testcases
  Pedantic warning fix in testcase
  pedantic warning fix for D wrappers
  Travis testing to use testflags.py for setting CFLAGS and CXXFLAGS
  Add travis build for error-declaration-after-statement branch
2015-02-11 23:33:26 +00:00
William S Fulton
ec9e347a07 Warning fix in testcase for Javascript node
Fix warning when using node to compile Javascript wrappers:
warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
2015-02-11 23:32:45 +00:00
William S Fulton
ed084f30f2 nested_extend_c testcase fix when compiled by C++ target languages
Javascript v8 and node compiles the wrappers as C++, fix this warning:
anonymous type with no linkage used to declare variable ‘<anonymous struct> THING’ with linkage
2015-02-11 23:32:45 +00:00
William S Fulton
a73a783fcd Warning suppression change
Earlier gcc (4.7) will warn about unknown warning pragmas!
-Wpedantic suppression is only available in 4.8 and later
2015-02-11 23:32:29 +00:00
William S Fulton
9402f14393 compiler warning suppression correction in testcase 2015-02-11 23:24:40 +00:00
William S Fulton
3a10bba9ee Suppress pedantic warnings in C# testcases 2015-02-11 23:24:40 +00:00
William S Fulton
ec1eac5b72 Suppress pedantic warnings in testcases 2015-02-11 23:24:40 +00:00
William S Fulton
a4ba9528b4 Pedantic warning fix in testcase 2015-02-11 23:24:39 +00:00
William S Fulton
c84838fded Correct Examples makefile for guile
C++ testcases were not rebuilding
2015-02-11 19:49:21 +00:00
William S Fulton
74f392ce9a Suppress clang warning in testcase
For Octave compiling preproc C test as C++ code:
Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-11 19:29:39 +00:00
William S Fulton
5ba14168f7 preproc_constants warning suppression when using clang 2015-02-11 19:25:22 +00:00
Ian Lance Taylor
96134c65a8 Change Go test case to compile with current compiler.
Recent changes caused this to give an error about an unused variable.
2015-02-03 13:55:41 -08:00
William S Fulton
5c1558917b Warning suppression in li_std_vector_extra testcase for clang 2015-02-03 19:39:32 +00:00
William S Fulton
a831f39096 preproc_constants warning suppression when using clang
Suppresses:
  warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-03 19:28:45 +00:00
William S Fulton
fd80e8d1e0 Modify preproc testcase to remove clang warning
Fix to get rid of:
warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-03 18:41:20 +00:00
William S Fulton
29127cf014 Rename test warning suppressions when using clang
Suppresses:
warning: conversion function converting 'Space::ABC' to itself will never be used
2015-02-03 08:02:35 +00:00
William S Fulton
a5a86d2cc5 primitive_types testcase improvement
clang compiler highlighted that array comparisons are always true
2015-02-03 07:34:00 +00:00
William S Fulton
e44e3d3e39 Sun studio workaround for callback testcase 2015-02-01 00:56:28 +00:00
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