Commit graph

15,483 commits

Author SHA1 Message Date
Ian Lance Taylor
6a20df2bb8 Don't convert uintptr to interface type while not connected to Go
scheduler.  Likewise with calls to defer.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-05 23:02:42 +00:00
Ian Lance Taylor
5a19113432 Import unsafe in generated Go code, so that pointers stored as type
uintptr do not get garbage collected.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13153 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-05 20:54:08 +00:00
Ian Lance Taylor
9a6dc5ac40 Fix typo in name of SwigDoCgocallDone for GCC < 4.7.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-05 13:32:28 +00:00
Ian Lance Taylor
7ec208da05 Fix Go support to use appropriate interface for entering and leaving
C/C++ code, depending on GCC version.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-04 05:37:10 +00:00
Olly Betts
8fe63be051 Fix doc typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-31 04:12:17 +00:00
William S Fulton
c47fd5fdd5 Director documentation corrections to match reality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-30 05:59:46 +00:00
William S Fulton
7ec1e11604 Fix bug 3529601 - seg fault when a protected method has the director
feature but the parent class does not. Also fix similar problems with
the allprotected feature.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-29 22:02:43 +00:00
Olly Betts
5b2f38101f Fix comment typos in Lua typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-28 18:32:24 +00:00
William S Fulton
9a758998c9 Add in another SF bug reference
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-28 06:27:35 +00:00
William S Fulton
55bda8f9f2 Fix seg fault attempting to warn about illegal destructors - introduced in rev 13111
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-28 06:20:45 +00:00
William S Fulton
eb5837b697 cosmetic wording in release script
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 08:20:20 +00:00
William S Fulton
290c43b9e5 Update list of languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 08:14:37 +00:00
William S Fulton
3a55dd3df1 Bump version to 2.0.8
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 08:05:16 +00:00
William S Fulton
1b4e328046 swig-2.0.7 release date
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 07:09:54 +00:00
William S Fulton
e62dc28f16 Clean up Lua std::string typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 07:07:00 +00:00
William S Fulton
12a9671440 std::string typemap modifications so they can be used with %apply for other string classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 06:33:49 +00:00
William S Fulton
49b6c39d98 Lua fix for -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 23:05:07 +00:00
William S Fulton
184519b6a6 attempt to fix test again
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 23:01:28 +00:00
William S Fulton
020e137347 test fix again
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 22:37:57 +00:00
William S Fulton
522382c05e test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 22:20:22 +00:00
Karl Wette
a276c0b45a [octave] skip part of module_load test for older Octaves
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 21:18:50 +00:00
William S Fulton
76a115ea41 Test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 18:42:32 +00:00
William S Fulton
8de0234313 Release notes for swig-2.0.7
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 06:29:58 +00:00
William S Fulton
706736a73d Fix some warning messages to correctly show class names.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 20:24:21 +00:00
William S Fulton
6f8e77d7b0 Better search for python3 based on code from Vadim Zeitlin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 19:10:44 +00:00
William S Fulton
1d000ef6a6 Cosmetic - reformat python3 detection code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 19:09:18 +00:00
Karl Wette
f76d63419f [octave] Declare these functions only if directors are used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 09:32:51 +00:00
Karl Wette
f8135379a1 [octave] Make sure SWIG_global_name is a std::string for comparison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 09:32:38 +00:00
Stefan Zager
00328ccdb3 python: disambiguate SWIG_From_unsigned_SS_int and SWIG_From_unsigned_SS_long.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 04:05:11 +00:00
Olly Betts
7196e556a5 Fix SF#3528035, a regression introduced by the fix for SF#3428833.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 02:58:24 +00:00
William S Fulton
b665377ad5 Autoconf to check for a few more later versions of Python 3.x - can anyone think of a better way to do this?
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-21 18:13:58 +00:00
Olly Betts
de9d01dbcd [PHP] Fix getters for template members. (SF#3428833)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:43:52 +00:00
Olly Betts
b32c70e244 Comment out use of call-time pass by reference, which has been deprecated for
ages, and is no longer supported by PHP 5.4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:42:23 +00:00
Olly Betts
95821b7a04 Note that technique relying on call-time pass by reference won't work with
PHP 5.4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:19:46 +00:00
William S Fulton
9e624db5bf Better display of parms when using -debug-module and -debug-top
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-15 19:51:41 +00:00
William S Fulton
142f1e72bb Fix some language's std::map wrappers to recognise difference_type, size_type, key_type and mapped_type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-15 19:51:06 +00:00
Karl Wette
71cdda6a55 Documented recent Octave changes in CHANGELOG.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:24:53 +00:00
Karl Wette
6329b81ab4 Updated Octave documentation on module load behaviour
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13090 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:24:45 +00:00
Karl Wette
daffde6c28 Updated Octave module_load examples for new module loading
- Module compiled twice to check '-globals .' behaviour
- Only one runme.m needed since clearing modules should
  now be safe for all Octave versions.
- Tests new module loading syntax and behaviour

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:24:34 +00:00
Karl Wette
bc2a78fbab New Octave module loading behaviour
- Use call syntax instead of cmdline to choose global/noglobal load:
  global: 'example;', noglobal: 'example = example;'
- All functions loaded with Octave 'autoload' command; correctly
  loads .oct module and prevents segfault in Octave 3.0.5
- Functions no longer installed as global variables as well,
  so global operator dispatch now only looks for functions
- Octave at-exit function created from string, not function,
  so no dependence on loaded .oct files at cleanup time
- C at-exit function now immediately exits Octave (with correct
  status) to prevent seg-fault due to dodgy memory cleanup
  in some Octave versions
- Documentation string for module loading function

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:24:15 +00:00
Karl Wette
4f11aaa849 Declare Octave public wrapping functions with DEFUNX_DLD
- New helper function Octave_begin_function writes function declaration
  and installer function definition using SWIG_DEFUN macro, which in
  turn uses Octave DEFUNX_DLD macro
- Can now use Octave's dynamic module loader to load functions safely
- Link documentation of public wrapping functions through DEFUNX_DLD

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:24:00 +00:00
Karl Wette
bf0fe83462 New functions for handling Octave global variables
- Creates a copy of the variable to be assigned to the
  symbol table, so it can be safely deallocated on exit

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:23:45 +00:00
Karl Wette
a0dbe43c73 Move Octave SWIG runtime functions to Lib/octave/octruntime.swg
- Add documentation strings for runtime functions

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:23:33 +00:00
Karl Wette
de49578c31 Move Octave director-related code into Lib/octave/director.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:23:20 +00:00
Karl Wette
e4a92ee692 Link Octave tests and examples against Octave libraries
- Tests for bugs associated with loading .oct modules

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 09:23:06 +00:00
Olly Betts
a2a42c7038 Add back 'NIL', dropped by mistake in change before last.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 05:11:02 +00:00
Olly Betts
e4763231be Remove some commented out code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 04:58:08 +00:00
Olly Betts
4f11fd51ab Drop check for "ZEND_MODULE_API_NO > 20010900". We only support PHP5
now, and 5.0.0 was released in 2004.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-14 03:31:04 +00:00
Olly Betts
d81770dd93 [PHP] Fix memory leak in code generated for a callback. Patch from
SF bug #3510806.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-12 13:52:00 +00:00
Olly Betts
9d8d50f034 Fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-12 13:31:49 +00:00