Commit graph

471 commits

Author SHA1 Message Date
Marcelo Matus
a87db784ef better warning for undefined base class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-26 00:31:47 +00:00
William S Fulton
909096be81 -dllimport commandline option and $dllimport special variable to specify the DllImport attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 20:43:32 +00:00
Marcelo Matus
5023285fb8 Fix directors + protected pure virtual members + protected
constructor.

Now it doesn't crash, you don't need to use dirprot, and no, it is not
emitting all the protected members, unless dirprot is used.

Swig only emits the protected members or constructors needed to prevent
the compilation for crashing. The rest of the protected members
are emitted when dirprot is used.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-24 05:58:15 +00:00
Marcelo Matus
aec02530ce add nodirprot mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-24 05:49:38 +00:00
Marcelo Matus
94fbf0903b fix directors + unnamed parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-24 05:47:57 +00:00
Marcelo Matus
2df5b6a736 fix -oh/-o/-noh, tested before in the wrong directory
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6488 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-23 05:28:04 +00:00
Marcelo Matus
1ecf1e4726 fix missed check for director_prot_ctor_code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 23:34:10 +00:00
William S Fulton
09ed1c1471 Scott Michel patch #1049496 to fix typesafe and proper Java enums with directors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 21:12:36 +00:00
Marcelo Matus
452b7bedc5 fix for language that don't support directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 08:10:37 +00:00
Marcelo Matus
114c703acd fix director + abstract + constructors, reported by Brian Kelley
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 07:25:42 +00:00
Art Yerkes
f68ef6d9f6 Removed clearing of director object reference needed by the fun returned
by new_class.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6473 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 19:17:57 +00:00
Marcelo Matus
39e2f975cc Add flag to enabla new C++ casting operators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 18:37:39 +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
335d752a7e rearregment for gcc-2.96 internal error, fix header generation, add -new_vwm and -noh options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:34:01 +00:00
Marcelo Matus
1decd47b09 add -oh option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:31:27 +00:00
Marcelo Matus
b953de63be Oops, fix lost '!'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:59:54 +00:00
William S Fulton
88fcd40d53 removed some stray debug messages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:39:13 +00:00
William S Fulton
74f9ab820b compact default arguments feature (original default argument wrapping mode)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 20:59:33 +00:00
Marcelo Matus
b1481bfddc disabling the new value wrapper mode until we find more time to document it and adding a flag to switch it on/off
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 20:33:34 +00:00
Marcelo Matus
a66c87f147 fix SwigValueWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-19 23:34:04 +00:00
Marcelo Matus
01bde715f4 ix variable wrapping with private assign operator + fix SwigValueWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-19 23:31:40 +00:00
Marcelo Matus
2e9ba807e8 fix variable wrapping with private assign operator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-19 23:29:22 +00:00
Marcelo Matus
c388088863 fix for bug 901706
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 09:10:23 +00:00
Marcelo Matus
c7982bbdc8 make %callback more uniform and usable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 07:35:18 +00:00
Marcelo Matus
5daaf9781b fix callback
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6426 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 01:37:23 +00:00
Marcelo Matus
4804b899db fix feature director/nodirector, fix callback for python, reduce the SwigValueWrapper use
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 01:32:11 +00:00
Art Yerkes
e9160c8597 Updated documentation.
Provide a swig_val function which generates a shareable value from a module
specific one in a painless way.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 08:38:54 +00:00
Art Yerkes
db57b0d6d8 Some delayed maintenance.
Fixes for multimodule targets.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 07:56:17 +00:00
John Lenz
2836e9599d Rework the CLOS code for chicken... still needs a little more work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:56:10 +00:00
William S Fulton
7f9ad65f89 minor change in warning message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:36:02 +00:00
John Lenz
75e462baa8 Removed ability to share type information by C linking
All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
Marcelo Matus
1ea4adbcd4 add Scott Fix for directors+rename, and testExamples/test-suite/director_basic.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-11 22:53:24 +00:00
Marcelo Matus
b5c610922a more valuewrapper cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-08 20:32:20 +00:00
Marcelo Matus
3264efdfbf add tests and fix the value wrapper for opaque types, including the template cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-08 09:08:06 +00:00
Marcelo Matus
785190bbf1 better fix for virtual_mode + protected case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 22:15:23 +00:00
William S Fulton
dc85fd5f30 %extend and default args fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 20:36:10 +00:00
William S Fulton
c6496845ab Fixes for director code with exception specifications on the destructor (director_exception.i testcase)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 19:46:04 +00:00
William S Fulton
45718da90f Fixes for director code with exception specifications on the destructor (director_exception.i testcase)
Had to remove hack for Scott Michel's broken compiler though
Scott can you try another hack?


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 19:45:00 +00:00
John Lenz
143bfb2a62 Fix a few bugs in the tcl module related to clientdata propagation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 02:31:14 +00:00
William S Fulton
bbb97f8e6d fixes for the new default argument wrapping in director constructors and virtual methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 21:10:24 +00:00
Marcelo Matus
d84772ce6f fix #if __cplusplus problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 16:51:22 +00:00
Marcelo Matus
d4add71b60 fix small problem with smart_ptr + protected +fvirtual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 22:49:02 +00:00
John Lenz
6ed2f7e90e New way of sharing type information between modules for chicken, mzscheme,
ruby, tcl, and perl.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 22:43:41 +00:00
Marcelo Matus
48d1b19bb7 fix empty throw() + directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 21:06:56 +00:00
Marcelo Matus
a3cea612fe add new -features option, fix SWIG_FEATURES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 21:02:50 +00:00
Marcelo Matus
9455a03257 better documented autodoc levels
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 03:33:56 +00:00
Marcelo Matus
776f15623e several fixes, see CHANGES.current 10/04/2004
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 00:19:26 +00:00
William S Fulton
0b11a02ddf code comment added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:36:23 +00:00
William S Fulton
c4757bbbd4 New default argument wrapping approach. This adds default argument support for statically typed languages, fixes wrapping of default arguments that are non-public plus fixes other bugs where SWIG could not or failed to correctly lookup up the default value in the symbol table.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:32:28 +00:00
Marcelo Matus
7bba14e197 fix minor problem when defining __cplusplus as 1, empty definition is ok.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:09:29 +00:00