Commit graph

147 commits

Author SHA1 Message Date
Marcelo Matus
e63a259672 also, change the module name to director_frob
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 00:52:06 +00:00
Marcelo Matus
f7a318c637 using better names for frob
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 00:41:37 +00:00
Marcelo Matus
dedb5a9697 - recover the proper catching exception mechanism for classes
(throw typemap).

- fix the examples with exception problems and warnings

- proper and consist treatment of basic types (short, unsigned char,...)

  now all are checked for range and sign. Before, this was depending of
  the use of parsing or no parsing, and/or the converter method, and/or
  the use of directors, etc.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-21 01:15:10 +00:00
Marcelo Matus
6b0485b6b5 fixes for the nodirector feature and the '0' director member case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-21 00:46:08 +00:00
Marcelo Matus
66c14bc75a add python runme
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-20 20:49:05 +00:00
Marcelo Matus
b32024f2ab fix precatching exception behaviour to postcatching
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-12 23:40:58 +00:00
Marcelo Matus
b45d143ea2 added a reference polymorphic return type case, and
some extra test for the Java side.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-24 06:53:47 +00:00
Marcelo Matus
a152fd46a8 using static narrow methods instead of %extended ones.
now it looks more natural and similar to the CORBA downcasting mechanism.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 10:10:04 +00:00
Marcelo Matus
575a54adfd added the ruby runtime case and more comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-22 10:41:33 +00:00
Marcelo Matus
c5cf57b254 Added a simple example where the current universal
Java wrapping mechanism doesn't work, showing the
need to use a different way to wrap polymorphic classes.

They are two runtime examples: one for java, which is
failing, and one for python, which works fine.

Detailed description of the case can be found
in the three files committed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-22 06:26:44 +00:00
Marcelo Matus
8158b1f2ec These is the current tests for the friend function support.
They will give you and idea of what is currently working.

If you have another case you think we need to test, please
send me an email to add it and trying it here.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-20 07:46:27 +00:00
William S Fulton
272c42913e Added test for %import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-11 21:33:34 +00:00
William S Fulton
67d84e142a base() changed to basemethod() - base is a C# keyword
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-11 21:16:21 +00:00
Marcelo Matus
14d87ed24d 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@5532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-11 01:59:12 +00:00
Dave Beazley
f92e4b1c6c Added test case just to check a few things with protected/private virtual methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 17:50:29 +00:00
Marcelo Matus
8199b93d1d detecting polymorphic virtual methods properly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 10:36:15 +00:00
Marcelo Matus
7bbbe3b274 Moving the director protected member support to the top level. Now it should works in all the languages. Test it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-07 23:00:02 +00:00
Marcelo Matus
75c1713b2d Fixes to support protected members with director, proper virtual member recognition and support of the nodirector feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5485 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 01:59:28 +00:00
Marcelo Matus
016860e199 Fixed the include/import error reported by Kerim Borchaev
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-20 21:37:24 +00:00
Marcelo Matus
8d1ccabff4 Added test for subincluiding files with the same basename, reported by Kerim Borchaev
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-20 19:56:34 +00:00
Dave Beazley
434b502acc new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-14 18:59:02 +00:00
William S Fulton
3edea4bfd4 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:58:14 +00:00
Dave Beazley
d627ea5370 new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 17:54:18 +00:00
William S Fulton
0cc299f6d8 Multiple build directory support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 15:15:50 +00:00
William S Fulton
a50e01bae6 Makefile replaced with Makefile.in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5027 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-31 16:22:43 +00:00
Mark Rose
c1b57370b6 Abstract directors and typemap fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 05:03:34 +00:00
Dave Beazley
972acd608a new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 19:08:09 +00:00
Dave Beazley
e36fa7ef6b new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-29 18:30:10 +00:00
Dave Beazley
5ae083be8a new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-28 17:30:04 +00:00
William S Fulton
dec402d522 test setting of global arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-04 08:56:21 +00:00
Marcelo Matus
11f738bcc9 Added test that checks the order between the global %except handler and local throw() definitions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-02 21:19:36 +00:00
Logan Johnson
c350782b19 Little bug fix for this run test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-29 16:49:16 +00:00
Dave Beazley
ebaf865b54 new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-23 18:00:17 +00:00
Dave Beazley
f0b063ef3e new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-20 19:36:16 +00:00
William S Fulton
b0307fb2c4 enum renamed enums due to enum keyword in C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 21:25:59 +00:00
William S Fulton
4567f1ecdc more varargs runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 20:50:54 +00:00
Dave Beazley
601fe97b1d Removed spurious print statement.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-17 17:51:04 +00:00
Logan Johnson
2117af95f3 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-11 20:01:59 +00:00
Mark Rose
99cef9c7da four new director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 10:30:11 +00:00
Marcelo Matus
baba2c6b31 Added test that shows a problem in the 'abstract detection method' when virtual base classes are used (in different order)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-21 21:03:05 +00:00
Marcelo Matus
740492ee16 Now, this is a real broken case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-21 09:12:45 +00:00
Marcelo Matus
2b33f39cff Added a broken case after the abstract_typedef case was fixed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-20 21:26:20 +00:00
Dave Beazley
3dd532f7d8 new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-18 21:25:31 +00:00
William S Fulton
8f2cda0b8a *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-07 22:19:12 +00:00
William S Fulton
8fa45f90db reference variables runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-07 22:18:10 +00:00
Dave Beazley
3928991383 new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-04 16:15:09 +00:00
Dave Beazley
516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00