Commit graph

15,973 commits

Author SHA1 Message Date
William S Fulton
8e89cad271 Bump version to 2.0.11 2013-05-27 20:27:50 +01:00
William S Fulton
1524d02e13 Add swig-2.0.10 release date and release notes 2013-05-27 19:24:04 +01:00
William S Fulton
72f2d8ac8f Fix Python test-suite makefile to show which tests have runtime tests (for Python 3). 2013-05-27 10:24:02 +01:00
William S Fulton
af8f77a627 Fix to ensure 2to3 for Python 3 examples is run 2013-05-27 00:27:31 +01:00
William S Fulton
2004b9fc03 Add Python 3 Travis tests 2013-05-26 23:58:12 +01:00
William S Fulton
b3ca22dc33 Fix Python examples to compile and run under Python 3 2013-05-26 23:02:13 +01:00
William S Fulton
fd93beadf4 Fix 'make check-python-test-suite PY3=1' and -j (make jobs) 2013-05-25 22:29:18 +01:00
William S Fulton
5481270c2a Fix Python 3 inconsistency handling -ve numbers for unsigned C types.
An OverFlow error is now consistently thrown instead of a TypeError.

Fixes primitive_types testcase for Python 3
2013-05-25 10:36:14 +01:00
Artem Serebriyskiy
3e188e508d Add test case for attributes with moderately complex templates
* New test case tests that %attribute macros correctly supports passing
  template with multiple parameters as class name or attribute type name

* Some further changes were made to %attribute macros - now
  AttributeType is protected with %arg as well. This allows you
  to have attributes of type e.g. std::pair<int,int> etc

Update CHANGES file for %attribute template fixes

Closes #48
2013-05-25 00:44:36 +01:00
Artem Serebriyskiy
c956c4c87f Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
Artem Serebriyskiy
3357ee85cd Fix all attributes macroses 2013-05-25 00:37:57 +01:00
William S Fulton
030b97c891 Documentation sectioning update 2013-05-25 00:15:48 +01:00
William S Fulton
f15eb3f5ec Fix vararg documentation for Python 3
Memory handling is different to Python 2.
2013-05-24 23:02:34 +01:00
William S Fulton
074c0039db Fix Python version checking in Python tests 2013-05-24 18:57:26 +01:00
William S Fulton
8700e79b3e Guile port example fix for Guile 2.0
Rewinding the file before passing it to C fixed the problem of not being
able to read the file contents.

Also explain the error about writing to a string.
2013-05-23 23:24:19 +01:00
William S Fulton
0f1e3da5de Fix the high passed to PyTuple_GetSlice in varargs wrappers.
Harmless bug as slices can take any size larger than the actual size for
the high value. Reported in SF Bug 1326.
2013-05-23 21:25:41 +01:00
Geert Janssens
6e794da3f3 Guile port example - print a message to show the error is expected 2013-05-21 17:23:37 +02:00
William S Fulton
149972542e Add note on ccache-swig internal error bug due to premature file cleanup to changes file 2013-05-19 01:16:23 +01:00
William Fulton
4ba9365e0f Fix ccache-swig internal error bug due to premature file cleanup
Fixes SF bug 1319 which shows up as a failure in the ccache tests on
Debian 64 bit Wheezy, possibly because ENABLE_ZLIB is defined.

This bug is due to files being too aggressively cleaned up part way
through the caching. The .stderr file is cached and then retrieved
from the cache for displaying to stderr. However, the stats are updated
between caching and using the .stderr file. During the stats update the
cache is cleaned and the newly cached files can be removed if the max
number of files per directory is low. Really the cache should be cleaned
up at exit to solve this (as is done in ccache-3.1). The workaround fix
ensures the cached files are ignored during cleanup, which is a bit
tricky as sometimes files from a previous run have the same time stamp,
so that don't appear to be the oldest in the cache.
2013-05-19 00:59:28 +01:00
William S Fulton
04b9037c70 Simplify and improve Guile FILE * in typemap
Fix incorrect special variable $name and remove unnecessary temporary
variable.
2013-05-16 19:21:59 +01:00
William S Fulton
3f9d7ed416 Minor fixes after Coverity analysis 2013-05-16 08:13:56 +01:00
William S Fulton
6f1aea7a12 Cosmetic makefile tidy up 2013-05-15 09:57:34 +01:00
William S Fulton
b14b1c6de0 Use given Guile version when checking if version is > 1.8
Also use conventional output for our configure if something is not
working as expected.
2013-05-15 09:57:34 +01:00
Geert Janssens
2560210bfd Guile delete Example makefile 2013-05-15 09:38:50 +02:00
Geert Janssens
f3870303c6 Guile drop unused GUILE_SCM_INTERFACE parameter from configure.ac 2013-05-14 17:06:35 +02:00
Geert Janssens
4de24d1d11 Guile check for at least guile 1.8 2013-05-14 17:06:04 +02:00
Geert Janssens
d3cddb1355 Guile add two more examples and use load-extension instead of dynamic-load 2013-05-13 22:40:16 +02:00
Geert Janssens
4e4b73e7c0 Put guile Example Makefile back under revision control 2013-05-13 22:39:13 +02:00
Geert Janssens
cb24c110df Guile remove references to -gh and -scm from manual 2013-05-13 22:31:29 +02:00
Geert Janssens
090d2505d1 Guile create functional class example 2013-05-13 21:40:01 +02:00
William S Fulton
3ddea71f33 Clear up license ambiguity in swigwarn.swg.
Also tidies up swigwarn.swg a bit.
2013-05-13 18:15:27 +01:00
Karl Wette
f09231d282 Add CCache/ccache-swig.1 to .gitignore 2013-05-13 12:27:21 +02:00
William S Fulton
de12f6c25e Fix release script 2013-05-12 21:27:38 +01:00
William S Fulton
a3e2366882 Fix release script 2013-05-12 19:16:42 +01:00
William S Fulton
a5b0e34dea Update release scripts to use git instead of svn 2013-05-12 19:14:59 +01:00
William S Fulton
9812b27fb0 Add .gitattributes file
For specifying what not to export when running 'git archive'
2013-05-12 19:14:59 +01:00
William S Fulton
ea2e615cec Fix some typos in directive names 2013-05-12 19:14:59 +01:00
William S Fulton
2733a0f7a3 Update htmldoc patch to htmldoc-1.8.27
Note: Best to use the patched source from Ubuntu/Debian which fixes some
bugs.

Also added "Patched with margin-left.patch" text to output of
  htmldoc --version
2013-05-12 19:14:58 +01:00
Karl Wette
d7839ce570 Update changelog for the previous two Octave patches 2013-05-12 17:32:09 +01:00
Karl Wette
93650b2911 Octave: install functions only once, when creating module
- once installed, Octave functions can never really be uninstalled
  (clear -f doesn't prevent the function being called again), so
  it makes no sense to install functions more than once
- this can lead to a significant speed-up of module loading times,
  up to a factor of 10 for a large module loaded multiple times
2013-05-12 17:32:09 +01:00
Karl Wette
ef160ec072 Octave: remove allocation of new octave_value in SWIG_Octave_SetGlobalValue()
- this introduces a memory leak, which becomes significant for large
  modules (many global variables) and many module re-loadings (e.g.
  during a long-running script)
- the original motivation was to prevent double-frees on exit, but this
  problem appears to have been fixed by the _Exit() hack in later commits,
  and in any case is an issue only for Octave ~3.2, so it should be safe to
  remove; tested by running Octave examples/test suite with Debian 3.2.4 and
  built-from-source 3.2.4, 3.4.3, and 3.6.3
2013-05-12 17:32:08 +01:00
Geert Janssens
e5f6ec8912 Guile fix matrix example
Got broken in commit dd36f28ac7
(Migrate Guile examples build into common Examples makefile)
2013-05-10 18:29:26 +02:00
William S Fulton
199c1f3249 Add skeleton for run test for Guile class example 2013-05-09 20:03:50 +01:00
William S Fulton
042d0dfdc2 Guile port example Makefile correction 2013-05-09 19:41:29 +01:00
William S Fulton
dd36f28ac7 Migrate Guile examples build into common Examples makefile
- Now Guile examples are built in a consistent way to other target
languages.
- Also set GUILE_AUTO_COMPILE=0 to remove auto-compilation is enabled
  warnings
2013-05-09 19:28:09 +01:00
William S Fulton
d974e9aced Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the
examples like the other target languages (for suppressing stdout if run
from top level).

Consistency with other target language file renames: use runme.scm for
scripts and example.i, example.c for example code.

Add class example to examples being tested.
2013-05-09 18:35:18 +01:00
Karl Wette
95e2142347 Update Octave manual to use "swigexample" instead of "example"
Closes #46
2013-05-09 18:34:54 +01:00
Karl Wette
c28d0c6c80 Fixes to Octave examples
- rename example modules from "example" to "swigexample", to avoid a
  warning from shadowing the Octave built-in function "example"
- remove deprecated "static" Makefile targets: there is no longer
  an option to build static Octave modules in the Examples Makefile
- emacs whitespace cleanup run on all files
2013-05-08 22:44:40 +01:00
William S Fulton
7964ebe34f Tidy up pike version display 2013-05-08 17:36:03 +01:00
William S Fulton
efb4f7bf07 Don't skip guile if GUILE_CFLAGS is empty as sometimes it is empty 2013-05-08 17:30:45 +01:00