aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2000-08-28 12:24:47 +0000
committerDave Beazley <dave-swig@dabeaz.com>2000-08-28 12:24:47 +0000
commitc1266a06fc2c6dcdf2bff202119089b1ce107c7a (patch)
treeabcf51ac3e1ac549d1b6ab662f02597398126da2 /CHANGES
parent431a344bad495af59f1ac8cb2cd455c90d9379c6 (diff)
downloadswig-c1266a06fc2c6dcdf2bff202119089b1ce107c7a.tar.gz
*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES48
1 files changed, 48 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index c10a6a5b4..980bf53a3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,54 @@ SWIG (Simplified Wrapper and Interface Generator)
Version 1.3 Alpha 4 (not yet released)
======================================
+8/27/00 : beazley
+ Typemaps have been modified to follow typedef declarations.
+ For example, if you have this:
+
+ typedef int Number;
+
+ %typemap(in) int {
+ ... get an integer ...
+ }
+
+ void foo(Number a);
+
+ The typemap for 'int' will be applied to the argument 'Number a'.
+ Of course, if you specify a typemap for 'Number' it will take
+ precedence (nor will it ever be applied to an 'int').
+ *** POTENTIAL INCOMPATIBILITY ***
+
+8/27/00 : beazley
+ Default typemap specification has changed. In older
+ versions of swig, you could do this:
+
+ %typemap(in) int SWIG_DEFAULT_TYPE {
+ ...
+ }
+
+ To specify the default handling of a datatype. Now that
+ SWIG follows typedef declarations, this is unnecessary.
+ Simply specifying a typemap for 'int' will work for all
+ variations of integers that are typedef'd to 'int'.
+
+ Caveat, specifying the default behavior for pointers,
+ references, arrays, and user defined types is a little
+ different. This must be done as follows:
+
+ %typemap() SWIGPOINTER * {
+ ... a pointer ...
+ }
+ %typemap() SWIGREFERENCE & {
+ ... a reference ...
+ }
+ %typemap() SWIGARRAY [] {
+ ... an array ...
+ }
+ %typemap() SWIGTYPE {
+ ... a user-defined type (by value) ...
+ }
+ *** POTENTIAL INCOMPATIBILITY ***
+
8/15/00 : dustin
The file swig-1.3a1-1.spec has been added to the Tools directory.
It can be used to build a redhat package for SWIG, although it