Commit graph

2,497 commits

Author SHA1 Message Date
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
c3d8839dcb Moved director+protected members test to BROKEN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-07 04:07:46 +00:00
William S Fulton
e9c568114e no message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-07 01:07:48 +00:00
William S Fulton
f09d5cbc7a Warning fix for Visual C++. const is incorrectly being defined away to nothing.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-07 00:29:00 +00:00
William S Fulton
5dfe42a6bc Added STRING_OUT typemap test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-06 23:03:30 +00:00
William S Fulton
9d0e20d4df Put STRING_OUT typemaps back in.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-06 23:02:03 +00:00
Marcelo Matus
6dbeba36af Added help for -nodirprot flag
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-06 22:51:54 +00:00
Marcelo Matus
bb18c2d880 Fixed swapped arguments in is_member_director
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-06 22:36:55 +00:00
Art Yerkes
dc9314406f String from ptr example. Demonstrates use of out typemap and handling of
return value with argout.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 22:59:42 +00:00
Art Yerkes
dc36dabaea Added string-from-ptr example.
-- Response to a question asked by Thaddeus L. Olczyk


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5489 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 22:58:56 +00:00
Dave Beazley
3631c27ad3 Restored patch that added "classtypeobj" attribute.
Guys..... please be careful when committing.  I added this patch a couple of days
ago and now it's suddenly gone.  What's the deal?  Did someone commit an old version
of lang.cxx on top of this patch?

-- Dave


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5488 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 18:50:16 +00:00
Marcelo Matus
217fe1d6d3 Force the generation of director methods even when -fvirtual is used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 08:58:26 +00:00
Marcelo Matus
8accb4c083 Check the protected constructor case. They don't get into the director.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5486 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-05 06:08:54 +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
Dave Beazley
46d70e8e1f mzscheme patch.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 21:28:01 +00:00
Dave Beazley
ba205e51a6 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5483 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 19:24:40 +00:00
Dave Beazley
e6c59f1b0f Fixed configure bug
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 19:15:07 +00:00
Dave Beazley
156a84c2a8 Configure bugs with perl. Removed runtime build by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 19:14:44 +00:00
Dave Beazley
23c36cd5fd Fixed perl5.005 problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 19:14:14 +00:00
Art Yerkes
50ade4b291 Added checklist entry and corrected warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5479 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 06:59:49 +00:00
Art Yerkes
87f4bcef2e This example both shows the new enum literal facility, and is a regression
test against the enum scoping problem I had.

Ocaml.cxx: Accidentally reintroduced the enum scoping problem, so I added
an example that will fail if this is ever broken again.

I encountered the actual problem in avifile.h


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 06:57:57 +00:00
Art Yerkes
fbb9c8481d shapes example: slight correction to depth map.
makedebugtop: include swig.cmo
Lib: factored out more common code, slightly reorganized class type.
     added director define and exceptions.
     std_string: length from the original ocaml string (no longer depends on
      null termination)
     ocamldec.swg/ocaml.swg: added caml_string_len
Examples/Makefile.in: quiet about checking out files.
Ocaml.cxx:
     Fixed abstract director test case.
     Include/exclude director.swg based on directors being enabled.
Final edits for 1.3.20, barring bugs being discovered.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 06:15:07 +00:00
William S Fulton
cc9a10d2e2 Update and further differences to the Java documentation added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 21:50:38 +00:00
Dave Beazley
45c674ab50 mzscheme tweaks.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 20:29:30 +00:00
Dave Beazley
739cd3f265 mzscheme tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5474 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 20:29:11 +00:00
Dave Beazley
badd93194a updated mzscheme link.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5473 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 18:28:12 +00:00
Dave Beazley
c9ee8a19d5 Added OS X tweaks for guile. Note: some guile examples don't use this makefile and remain broken.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 18:10:45 +00:00
Dave Beazley
11e6f09cc8 Guile configuration changes for OS X. Compilation of guile wrappers currently generates a *LOT* of
warning messages of the form:

warning: invalid conversion from `
   scm_unused_struct*(*)()' to `scm_unused_struct*(*)(...)'

I've messed around with it and haven't been able silence the warning from any combination of macros, casts,
helper functions, compiler flags, linkage directives, or other tricks.  Possible gcc-3.3 bug????


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 18:10:07 +00:00
Luigi Ballabio
611fd5d405 Fixed problem with std::vector<unsigned int>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 08:23:00 +00:00
Dave Beazley
29279d4d1d Fixed some Tcl issues on OSX
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 05:13:12 +00:00
Dave Beazley
50553ae37c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 05:12:51 +00:00
William S Fulton
49bdd0077c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:32:27 +00:00
William S Fulton
80cd6fa68a Fix for INOUT and OUTPUT typemaps for when the JNI type is bigger than the c type.
For example unsigned long (32bits) is mapped to jlong (64bits)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:29:54 +00:00
William S Fulton
dab5a2561d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:23:42 +00:00
William S Fulton
84a7c18d60 Added test for javacode typemap for a templated class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:18:09 +00:00
William S Fulton
ec10b12a9a Added test for arrays of C structs (not typedef'd)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:17:44 +00:00
William S Fulton
e6b5758132 Use classtypeobj instead of classDeclaration:name for typemap searches.
Thanks Dave.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:16:00 +00:00
Dave Beazley
a1b83ea4b2 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5461 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 21:58:27 +00:00
Dave Beazley
16704c7262 Fixed [ 852119 ] recursive inheritance in output .pm, perl5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 21:57:41 +00:00
Dave Beazley
50b6ef5d15 Fixed [ 755382 ] calling func(const vector<T>& p) evaluates p[0] in interp.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 19:47:14 +00:00
Dave Beazley
007800ddc6 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5458 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 19:46:54 +00:00
Dave Beazley
65734165ca Added new attribute to class nodes
"classtypeobj"

This is the raw, SWIG type-system representation of the class type.  This
should be used in all typemap lookups and operations involving the class name.

Note:  There is inconsistent use of the "classtype" attribute across language modules--
especially in code related to directors.   To avoid breaking the universe, I have
decided to store the correct type encoding as "classtypeobj" instead of replacing
"classtype".   As modules are checked they can elect to use "classtype" or "classtypeobj"
as appropriate.

Note: William, you should use "classtypeobj" to fix the typemap problem (probably).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 18:56:59 +00:00
Dave Beazley
10b8703527 Consolidated some of the C test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5456 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 18:37:42 +00:00
Art Yerkes
08d4b05e03 All test cases compile except director_abstract. I clued from what
William Fulton and Dave were talking about regarding the template parameters
and (), and this solved a bunch of wierd little problems I was having.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 08:50:39 +00:00
Logan Johnson
234bb62536 Suppress warning about multiple inheritance for Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-01 23:11:46 +00:00
Dave Beazley
5572880cf5 Warning messages.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-01 13:38:08 +00:00
William S Fulton
583550d010 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-30 23:28:50 +00:00
William S Fulton
a6a591af91 Fixed [ 545058 ] configure's --with-tclincl has no effect
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-30 23:27:34 +00:00
William S Fulton
337c3dd301 Minor bug fix from that initializes the jlong pseudo-pointer to 0 in director methods (makes the Java equals method based on getCPtr() work consistently.)
Submitted by Scott Michel.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-30 21:18:40 +00:00
William S Fulton
0e5e19a12b no message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-30 21:16:04 +00:00