Marcelo Matus
ae41da15df
better str_new
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:46:12 +00:00
Marcelo Matus
f3262ed3d9
better kw from Olly's comments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:43:06 +00:00
Marcelo Matus
b4e4fe23ca
add tcl+java example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8140 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 11:59:54 +00:00
Marcelo Matus
dc915a44a1
add jstring.i for ruby
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 10:51:35 +00:00
Marcelo Matus
e85a31e26d
fix missing __PTHREAD__
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 08:46:45 +00:00
Charlie Savage
e5443e3bd4
Fixes bug 1386579. When returning a vector of pointers, do not create
...
copies of the objects that are pointed to since they may not have
copy constructors. This also is more inline with returning a vector from a method
in C++ where the pointers are copied but not what they point to.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 19:56:35 +00:00
Charlie Savage
6c8dd53ee8
Reimplementation of tracking objects in Ruby. Instead of passing the $track flag to
...
the methods SWIG_Ruby_ConvertPtrAndOwn and SWIG_Ruby_NewPointerObj,
now tracking information is held on swig_class. This change reduces
significantly reduces the amount of code needed in ruby.cxx, is more robust, and is
more cohesive.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 18:02:51 +00:00
Marcelo Matus
32cbb57ab6
keep old typemap code in place, but disable, for readers to look around, and rescue other lost typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-13 23:46:37 +00:00
Marcelo Matus
abbf8b406a
more on the TypeQuery fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-10 23:53:53 +00:00
Marcelo Matus
ae761ca3ba
fix extra calls to TypeQuery for 'char *' and 'wchar_t *'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-10 20:20:19 +00:00
Marcelo Matus
f222064ffd
fix for ruby -w
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-08 08:46:04 +00:00
Marcelo Matus
cdb2097cf5
add missing 'const'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:30:45 +00:00
William S Fulton
cfdad24993
Use the system angle brackets for %include
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:28:20 +00:00
Marcelo Matus
cb4a1ff465
more speed ups
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-24 00:54:46 +00:00
Marcelo Matus
f3c24eff33
fixes for directors + pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-21 21:01:35 +00:00
Marcelo Matus
71df9fc8b6
add std_except typemaps to the unified typemap library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:43:02 +00:00
Marcelo Matus
536621e82b
prevents ConvertPtr to modified the result when fails
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:41:43 +00:00
Marcelo Matus
8be1b7a07c
move attribute.i to the typemap library, now is usable from all the languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:20:50 +00:00
Marcelo Matus
e7eeff806a
eliminate compilation warnings, add docs, and centralize the access to the unified typemap library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 09:31:15 +00:00
Marcelo Matus
3c65cea431
Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
Marcelo Matus
2811e2a09a
include the user's fragment file in the same place
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:58:19 +00:00
Marcelo Matus
ba3efb0917
finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
Marcelo Matus
7564088646
fix warnings/errors for gcc4.0, icc and valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 14:26:13 +00:00
Marcelo Matus
aadff06f45
more typemaps unification and fixes for valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 10:52:50 +00:00
Marcelo Matus
c0c3495ee4
cosmetic change, remove repeated docs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:54:54 +00:00
Marcelo Matus
7e5e4fd1f9
massive typemap unification
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
William S Fulton
ccb0e97955
const enum SWIGTYPE& fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 13:51:59 +00:00
Charlie Savage
2531e8d5f5
Fixed handling of char. This was needed due to changes in handling of %constants in ruby.cxx
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 19:51:51 +00:00
Charlie Savage
65a0a3b9f2
Fixed handling of constants. Previously if a %constant directive was defined before a #define it would not work correctly.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-03 19:47:06 +00:00
William S Fulton
da2a914365
Visual Studio warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-27 20:16:09 +00:00
Charlie Savage
8802ee4035
Added a typemap %typemap(in) (int LENGTH, char *STRING) that is simply the reverse of %typemap(in) (char *STRING, int LENGTH).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 06:06:44 +00:00
William S Fulton
1018e6a484
Best attempt at missing directorin typemaps to fix director_wombat.i testcase. Could do with checking.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 22:56:30 +00:00
Charlie Savage
c5fd02ec59
Object tracking support. Defined two new pointer conversion flags used by SWIG_ConvertPtr and SWIG_NewPointerObj. The new flags are:
...
#define SWIG_POINTER_OWN 0x1
#define SWIG_TRACK_OBJECTS 0x4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:04:06 +00:00
Charlie Savage
417127cedc
Support object tracking. Updated SWIG_NewPointerObj and SWIG_Ruby_ConvertPtr to take into account object tracking.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:03:05 +00:00
Charlie Savage
88fcc55de1
Support for object tracking. Includes new reference to "rubytracking.swg" and defines a new feature called "trackobjects"
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:01:57 +00:00
Charlie Savage
1a6a4deb2f
New include file that implements an API for tracking objects.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 17:49:31 +00:00
William S Fulton
8540ea2785
patch 1272995 from Charlie Savage - more disown support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 22:12:56 +00:00
William S Fulton
509a391877
Implement support for SWIGTYPE* DISOWN typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:16:34 +00:00
William S Fulton
03a67698a9
use exception specification instead of %exception to handle STL error checking
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-27 20:09:42 +00:00
William S Fulton
4c4e3f47ad
added missing constructors for std::pair
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:34:39 +00:00
William S Fulton
506d1a02b9
Consistent warning 470 across all languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:30:08 +00:00
Marcelo Matus
2ab2beac5c
fix for SF#1096981, bad long castings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 23:16:30 +00:00
John Lenz
c3338b1a16
- Improve the runtime type sytesm
...
- Update all languages to new type system
- Add DohSortList function
- Fix mzscheme Examples/Makefile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
Marcelo Matus
a45c6c63a1
better warning message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 00:58:24 +00:00
Marcelo Matus
c98340f0a7
fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
76970ce637
fix enum + ref + directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6815 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:18:56 +00:00
William S Fulton
b8d5ea651d
const enum SWIGTYPE & typemaps added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:16:24 +00:00
Marcelo Matus
c573cfe3a8
minor 'const' consistence fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:30:55 +00:00
Marcelo Matus
811c159e38
allow to include the swig runtime code into external user libraries
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:37:33 +00:00
Marcelo Matus
41a0b2dd59
fix def args + director + constructors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 05:31:27 +00:00