CHANGES.current

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-21 10:34:49 +00:00
commit cafb3a1d73
4 changed files with 37 additions and 2 deletions

View file

@ -1,6 +1,37 @@
Version 1.3.23 (in progress) Version 1.3.23 (in progress)
============================ ============================
10/20/2004: mmatus
- [Python] Initial fix for python/import example. Please
update the Makefile (autoconf, configure, etc, expert),
since now probably is only working with g++, icc and a
few other compilers that have the -shared option.
We need to create additional shared libraries for the
virtual destructors. Old and usually forgotten C++
requirement.
Same fix need to be used in perl, I think.
- [Python] Fix generation of header file for directors,
now directors.swg is also included, so, it can be really
used from C++, and it solves some problem with compiler
that require that, even with the simple swig inclusion.
- [Python] Reordering the methods and moving some bodies
outside the class declaration. This is needed due to
some gcc-2.96 internal compiler errors. It seems the
PYTHON class is getting too large to been declared and
defined at the same time.
- Add the -oh option to change the output header file if
needed.
swig -c++ -python test.i -o test.CC -oh test.H
this is mainly to use with directors, if the current
default header file name is not good for you.
10/20/2004: wsfulton 10/20/2004: wsfulton
1) Compact default arguments feature added. This feature allows one 1) Compact default arguments feature added. This feature allows one
to use the default argument code generation that was used in to use the default argument code generation that was used in

View file

@ -4,6 +4,7 @@
####################################################################### #######################################################################
LANGUAGE = python LANGUAGE = python
PYTHON = python
SCRIPTSUFFIX = _runme.py SCRIPTSUFFIX = _runme.py
srcdir = @srcdir@ srcdir = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
@ -64,7 +65,7 @@ LIBS = -L.
# a file is found which has _runme.py appended after the testcase name. # a file is found which has _runme.py appended after the testcase name.
run_testcase = \ run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \ if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH python $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \ env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi; fi;
# Clean: remove the generated .py file # Clean: remove the generated .py file

View file

@ -1,3 +1,5 @@
#ifndef SWIG_DIRECTOR_PYTHON_HEADER_
#define SWIG_DIRECTOR_PYTHON_HEADER_
/*********************************************************************** /***********************************************************************
* director.swg * director.swg
* *
@ -190,3 +192,4 @@ namespace Swig {
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif

View file

@ -81,7 +81,7 @@ typedef struct swig_const_info {
not always safe. not always safe.
*/ */
#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
#define SWIG_COBJECT_TYPES //#define SWIG_COBJECT_TYPES
#endif #endif
/* Flags for pointer conversion */ /* Flags for pointer conversion */