From e3fcdffa6cb574476b289ea1ac67429c4e5a795c Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Wed, 2 Feb 2000 04:54:02 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@179 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/CHANGES | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/SWIG/CHANGES b/SWIG/CHANGES index 839fd1374..66df2a6b5 100644 --- a/SWIG/CHANGES +++ b/SWIG/CHANGES @@ -1,5 +1,26 @@ SWIG (Simplified Wrapper and Interface Generator) +2/1/00 : Upgraded the Python module to use a new type-checking scheme that + is more memory efficient, provides better performance, and + is less error prone. Unfortunately, it will break all code that + depends on the SWIG_GetPtr() function call in typemaps. + These functions should be changed as follows: + + if (SWIG_GetPtr(string,&ptr,"_Foo_p")) { + return NULL; + } + + becomes + + if (SWIG_ConvertPtr(pyobj, &ptr, SWIG_TYPE_Foo_p) == -1) { + return NULL; + } + + Note: In the new implementation SWIG_TYPE_Foo_p is no longer + a type-signature string, but rather an index into a type + encoding table that contains type information. + *** POTENTIAL INCOMPATIBILITY *** + 1/30/00 : loic Conditionaly compile experimental code with --enable-experiment configure flag.