Commit graph

31 commits

Author SHA1 Message Date
William S Fulton
bb41eeb343 Fix potential name clashes with symbols in the Director class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-27 20:55:24 +00:00
William S Fulton
f9caea4b29 Add SWIG_DIRECTOR_CAST recently added to languages needing it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-10 00:04:28 +00:00
William S Fulton
4308dd03cf SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
3932d02a2a fix SWIG naming convention
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
Olly Betts
6d8ea4f7fa Fix comment typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:00:38 +00:00
Richard Boulton
761ef2b98f [Python] Commit patch #2089149: Director exception handling mangles
returned exception.  Exceptions raised by Python code in directors
are now passed through to the caller without change.  Also, remove
the ": " prefix which used to be added to other director exceptions
(eg, those due to incorrect return types).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-10 10:08:21 +00:00
William S Fulton
2cafaf9d43 Fix #1988296 - Multiple module director linking issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-02 23:01:37 +00:00
Olly Betts
c166ffc10d Release our mutex rather than free-ing it, since we want it around to reuse.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 23:01:23 +00:00
Olly Betts
4aaf48d650 swig -python -threads now generates C/C++ code which uses Python's
own threading abstraction (from pythread.h) rather than OS specific
code.  The old code failed to compile on MS Windows.  (See SF patch
tracker #1710341).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-12 13:55:19 +00:00
William S Fulton
a4c0660859 separate Python error message from the SWIG supplied one
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9727 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 20:42:01 +00:00
William S Fulton
8c989f8fe3 better director error message formatting
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-20 22:00:21 +00:00
William S Fulton
a6d091ac16 director_h.swig removed and merged back into director.swg as it used to be to fix #1505591
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 22:02:32 +00:00
William S Fulton
949e220630 - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:45:31 +00:00
Marcelo Matus
b84495613a fix for old VC 6.0 and linking issue reported by Roy Sutton
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 21:39:49 +00:00
William S Fulton
c74b246a95 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:35:17 +00:00
Marcelo Matus
c7ec64951d more old __THREADS__ fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-12 23:55: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
83ef5241ee add Scott's patches for directors: void return, directormap register, better error messages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-06 21:02:22 +00:00
Marcelo Matus
ca7159f7e7 add better director+exception support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-07 20:47:55 +00:00
Marcelo Matus
545b20712e split declaration and definition of Director
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 07:30:03 +00:00
William S Fulton
cd22d76972 fixes for directors and default arguments in the constructor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 18:16:21 +00:00
Marcelo Matus
d27df888dc CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:34:49 +00:00
Marcelo Matus
a4a7a2ff1f better error messages, more comments, clean up for the next major modifications
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:43:17 +00:00
Marcelo Matus
72984676ca Lateral change to add runtime "reprotection" at the python
side for protected director members.

Lib/python/director.swg: added needed code for runtime checking
Source/Modules/python.cxx: added needed code for runtime checking
director_protected_runme.py: checks now that the runtime protection is working


The extra runtime checking is only done for protected members,
so, the old public directors members don't feel any overhead.

This finished the director protected support for the python language.
Java and Ocalm will need to add the "reprotection" mechanism latter.
But as in the python case, the changes will be localized in the
languages files, and there will be no need to touch the core
files anymore.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-11 01:59:12 +00:00
William S Fulton
f4fac221fa - Compliance with ISO/IEC 14882:1998(E) 17.4.3.1.2 -> eg double underscores removed
- Potential member variable and method name clashes remove by preceding with 'swig'
- consistent use of C++ booleans for the swig_disown flag across and within the modules that use this it in director code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 22:55:17 +00:00
William S Fulton
9da574aae9 __DIRECTOR__ renamed Swig::Director
SWIG_DIRECTOR_EXCEPTION renamed Swig::DirectorException (similarly for derived classes)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 20:13:42 +00:00
William S Fulton
a7933a75b0 First round of director mods
- Removed asserts
- The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 15:11:38 +00:00
Mark Rose
ec6251e86d Abstract directors and typemap fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 05:03:34 +00:00
Mark Rose
9e8965b07f partial fix for abstract director classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-14 07:14:04 +00:00
Mark Rose
01c38825d4 changed -fdirectors option to %module option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4445 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 02:09:03 +00:00
Mark Rose
c47494cb7a polymorphism patch merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 19:21:58 +00:00