Commit graph

690 commits

Author SHA1 Message Date
William S Fulton
b29d0c18a6 Corrected usage of $javaclassname special variables in director typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:10:44 +00:00
John Lenz
1e3c7f3704 perl module now supports runtime.swg
+ split up Perl_LookupTypePointer into two functions like python module
  + added a perlinit.swg file with the code from the bottom of perl5.swg


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-29 23:13:57 +00:00
William S Fulton
9402fa3b00 const enum SWIGTYPE & typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:16:24 +00:00
William S Fulton
c91fa37700 %name replaced by %rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6782 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:15:04 +00:00
Marcelo Matus
707afe1139 add iostream test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 09:18:32 +00:00
Marcelo Matus
2ce0825686 Prabhu's fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 16:47:49 +00:00
Marcelo Matus
1f0ebfd56a using the global runtime.swg instead of python/pyrunalias.swg. Now the same solution can be used in other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:44:08 +00:00
Marcelo Matus
677b97f07f fix error message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:43:16 +00:00
Marcelo Matus
9c5118bc7a using the global runtime.swg instead of python/pyrunalias.swg. Now the same solution can be used in other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:36:26 +00:00
Marcelo Matus
46caa599e9 minor 'const' consistence fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:30:55 +00:00
Marcelo Matus
e48b28473d remove bad typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:44:35 +00:00
Marcelo Matus
121d73d58c Add simple PySwigObject to handle the C/C++ instance pointers,
instead of using PyCObject or plain strings.

The new PySwigObject is even safer than PyCObject, and
more friendly than plain strings:

now you can do

  print a.this
  <Swig Object at _00691608_p_A>

  print str(a.this)
  _00691608_p_A

  print long(a.this)
  135686400

  print "%s 0x%x" % (a.this, a.this)
  _00691608_p_A 0x8166900


the last one is very useful when debugging the C/C++ side, since
is the pointer value you will usually get from the debugger.

Also, if you have some old code that uses the string representation
"_00691608_p_A", you can use it now again by calling str(ptr), or
maybe nothing special by just calling PyString_AsString(..).

This change is mainly for nostalgic swig users that miss the
string representation, but also allows to say again

  if a.this == b.this:
    return "a is b"

and well, since the change were really simple, maybe in the future
we will be able to do

    next = a.this + 1

or add native python iteration over native C/C++ arrays, ie, no
need to create/copy new tuples when returning and array or vector.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:40:20 +00:00
Marcelo Matus
0d86654617 remove inclusion of precommon.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 05:56:38 +00:00
Marcelo Matus
d720ef3add allow to include the swig runtime code into external user libraries
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 01:00:38 +00:00
Marcelo Matus
0baa17ec05 allow to include the swig runtime code into external user libraries
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:37:33 +00:00
Marcelo Matus
e25ab5c0de add back support for specialize_std_vector/list/etc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:59:47 +00:00
Marcelo Matus
cd00d0106e more fixes for size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:56:37 +00:00
Marcelo Matus
b40f47a7fd more enum typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:53 +00:00
Marcelo Matus
47e0a3f07a add typemaps for vars +two dimensional arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:20 +00:00
Marcelo Matus
60d7c9aa60 improved support for size_t/ptrdiff_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6725 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-13 01:26:50 +00:00
William S Fulton
5849077aa0 forgotten checkin to remove some warnings on VC++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 21:50:54 +00:00
Marcelo Matus
6703ba49a0 better error message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6708 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-10 23:00:49 +00:00
William S Fulton
ea4033dfb8 warning fixes for VC++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 21:18:10 +00:00
Marcelo Matus
464c01da12 fix def args + director + constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 05:31:27 +00:00
Marcelo Matus
d4992f8f26 add missing %types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:22:29 +00:00
Marcelo Matus
e49611443e back to typemaps for size_t/ptrdiff_t. typedes don't work with std::vector
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-06 23:18:45 +00:00
Marcelo Matus
ebb79ea831 fix for null-reference 1038359
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 02:49:10 +00:00
Marcelo Matus
021695a2a1 add std_list (lluisp #1033399)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 02:32:26 +00:00
William S Fulton
0dee4ecb84 C# std::vector support. Not really ready for the masses, but enjoy anyway.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 22:37:37 +00:00
William S Fulton
6ec9b75abf tidy generated code up
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 22:26:17 +00:00
Art Yerkes
b1c2cd26b4 Uniform SWIGSTATIC on all prototypes.
#ifdef __GNUC__ -> static inline to remove warning spew using gcc
typemaps: tweaks for arrays, enums
ocaml.cxx: remove Swig. qualifier everywhere it's not needed


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 04:17:00 +00:00
John Lenz
17b006087e When compiling with gcc -ansi, inline was improperly getting set.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 01:27:57 +00:00
John Lenz
bf83bb81a1 Fix a bug where chicken wrappers were not correctly registering values with the
chicken garbage collector.
Update the chicken documentation to reflect the new proxy class support.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 23:13:59 +00:00
Marcelo Matus
4960d9dcf8 going back to use COBJECTS, which is the safe option, before release
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 08:09:28 +00:00
John Lenz
53132a810f Revert guile_gh.swg and guile_gh_run.swg to not use new runtime system.
Added global variable to hold status of -runtime,-c,-noruntime flag for use
  in guile gh module mode.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 22:06:53 +00:00
Marcelo Matus
21942d03a0 Fix for compiler dependent macro.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 22:06:25 +00:00
John Lenz
62f5e6cf73 The new python runtime now works from python versions 1.6.1 to 2.3.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 21:26:39 +00:00
Marcelo Matus
de4f715712 add more docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 18:48:59 +00:00
Marcelo Matus
30845a0c69 add #include <cwchar>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 17:08:15 +00:00
Marcelo Matus
75a937a0d4 more warns fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 16:37:10 +00:00
Marcelo Matus
18d3f92b53 fixes for Sun Studio 9, test it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:26:54 +00:00
Marcelo Matus
8ec5f847e5 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:24:22 +00:00
Marcelo Matus
2165a21a25 attributefunc not longer supported
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:22:25 +00:00
John Lenz
2cdf91de5d More work on the chicken module. The test suite, zlib, and overload examples are still broken.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 02:50:30 +00:00
Marcelo Matus
a5a372c304 add missing #include <string>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:17:30 +00:00
Marcelo Matus
dce447e25d fix warnings for MS compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:16:52 +00:00
William S Fulton
6f71cc78dc size_t fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:12:01 +00:00
Marcelo Matus
098ad12612 add directorin/directorout for prim. types + ref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 11:40:34 +00:00
Marcelo Matus
580fd50690 add patch 962168 for Multiple Inheritance problem, seems to be working fine
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 11:17:20 +00:00
Marcelo Matus
0b499cf3af fix varout for SWIGTYPE, bug #1037259
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 11:11:32 +00:00