Commit graph

5,948 commits

Author SHA1 Message Date
William S Fulton
4a5f3fd01e Suppress director out warning for pointers/references
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:05:15 +00:00
William S Fulton
f79531d85c Fix test for gcc-4.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:04:35 +00:00
William S Fulton
83f49ed6aa Add warning for directorout typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9147 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:03:57 +00:00
William S Fulton
f8278003ce uninitialised variable warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:02:23 +00:00
William S Fulton
d236483ecb operator overload fix patch from Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:00:27 +00:00
William S Fulton
609a8fe62e Remove protected method wrapper (directors) which was being generated when there was no corresponding method in the C++ class. It seemed to be adding in proxy director methods to derived classes if the base class had a protected virtual method. There is no reason to have the extra method (it doesn't happen with public methods) and is the wrong place to add extra methods in any case - should be done in one of the earlier parse stages.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9144 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 22:15:24 +00:00
William S Fulton
257a70094e Fixes for override / hidden methods detection when using directors (for C#)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 22:08:09 +00:00
William S Fulton
89490e6926 add new director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 21:36:20 +00:00
William S Fulton
f249d4843e redundant attribute check removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 21:03:26 +00:00
William S Fulton
1db0b8a0c0 Only generate C# SwigDerivedClassHasMethod() if there are director methods in the class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9140 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 21:00:26 +00:00
William S Fulton
47d40141be Add in missing director directives
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:53:37 +00:00
William S Fulton
c31fb2e9a1 Correct comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:52:00 +00:00
William S Fulton
981a5597d3 Fix return by reference for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:49:25 +00:00
William S Fulton
b26a8fe653 clean up more of the generated files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:48:32 +00:00
William S Fulton
50058d0746 Add in documentation clean
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:47:26 +00:00
William S Fulton
78444466ef *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9134 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 20:43:12 +00:00
Mikel Bancroft
c0faf9773e 05/25/2006: mutandiz
[allegrocl]
	    Fix bug in generation of CLOS type declarations for unions
	    and equivalent types.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-25 23:22:05 +00:00
Olly Betts
0137fddce5 Eliminate use of static fixed sized buffers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-25 08:01:36 +00:00
Mikel Bancroft
7c36fe2581 5/24/2006: mutandiz
[allegrocl]
	   Don't require full class definition to generate CLOS wrapper.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9131 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-24 08:33:07 +00:00
Olly Betts
78113286d1 Fix some typos.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9130 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-21 11:13:33 +00:00
Olly Betts
5a52f1a53e Make GCC visibility support work with PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-20 12:59:06 +00:00
Olly Betts
202d194412 Typo fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-20 09:03:29 +00:00
Olly Betts
43a60b1c4d Fix typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-20 05:58:26 +00:00
Olly Betts
0cffcd8825 Remove reference to -dlname.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-20 04:56:19 +00:00
Olly Betts
c5e90c2140 Removed support for -dlname (use -module instead). Fixed
naming of PHP extension module to be consistent with PHP
conventions (no "php_" prefix on Unix; on PHP >= 4.3.0, handle Unix
platforms which use something other than ".so" as the extension.)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-19 05:43:26 +00:00
Olly Betts
12b7b15326 Assorted corrections.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-18 08:46:04 +00:00
William S Fulton
6924f9f340 Fix seg fault when parsing:
%inline {
and no closing brace


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-17 20:16:21 +00:00
Olly Betts
05257e801b Conditionalise generation of the C++ implemented proxy classes on the target
PHP version being PHP4 (since they don't work for PHP5).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-17 09:22:57 +00:00
Olly Betts
a2cb7bb598 Set "wrapperType = staticmemberfn;" when processing a static member function.
This should make no difference currently (testsuite output is unchanged) but
it's required for generating PHP5 OO wrappers.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:28:52 +00:00
Olly Betts
b9dfced8ca Convert C++ std::string to and from ruby such that strings containing
zero bytes are handled correctly, as they are elsewhere.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:01:05 +00:00
Olly Betts
1042bce00c Add -php5 option which will turn on PHP5-specific output (and -php4 will
generate PHP4-specific output, with -php just being an alias for one of them.
Currently the only difference is that -php5 SWIGPHP5 is defined instead of
SWIGPHP4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 00:16:32 +00:00
Olly Betts
869f684bb2 Fix typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:19:21 +00:00
Olly Betts
b1b6b83371 Fix warning from Intel C++ v9.0 on generated header file:
ruby/foo_wrap.h(14): warning #64: declaration does not declare anything
  class Swig::Director;
  ^


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:01:49 +00:00
Olly Betts
74f6f7dc1a There's no need to call zend_get_parameters_array_ex() when no parameters
have been passed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:58:34 +00:00
Olly Betts
9139e439c9 When iterating Hash hash with Iterator ki, use ki.item instead of
Getattr(hash, ki.key).
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:06:45 +00:00
Olly Betts
fe4b1da5dc Fix a typo.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:56:46 +00:00
Olly Betts
ee27510234 Store the Node for the current class rather than just its name (which
makes little difference now, but paves the way for future changes...)
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:54:40 +00:00
Olly Betts
de75c4c1ed Use cap_module more instead of reconverting module to uppercase on the fly.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:53:04 +00:00
William S Fulton
c03eaa5082 Fix char* %apply for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:50:06 +00:00
Olly Betts
0709d331df More typos.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:46:45 +00:00
Olly Betts
34c64955d7 Replace stderr messages with Swig_warning where there's an existing
WARN_XXX code.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:31:49 +00:00
Olly Betts
3dea6969c0 Fix more typos!
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:24:13 +00:00
William S Fulton
f32a05a608 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:38:24 +00:00
William S Fulton
b6e0d79f75 C# director runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9104 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:31:35 +00:00
William S Fulton
3143fa70f7 More director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9103 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:30:38 +00:00
William S Fulton
5ea73416b5 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:27:58 +00:00
William S Fulton
fc84e395b9 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:19:18 +00:00
William S Fulton
383264fda8 minor director tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:31 +00:00
William S Fulton
8102074909 director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:07 +00:00
William S Fulton
a256f0b454 cosmetic mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:17:45 +00:00