Commit graph

985 commits

Author SHA1 Message Date
William S Fulton
776e739d49 dimensionless arrays tests marshalling with proper Java arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:52:07 +00:00
William S Fulton
d3dde9ae79 extra tests for dimensionless array parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6848 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:49:55 +00:00
Marcelo Matus
c5f1c1bdf9 more smart_pointer fixes + cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:32:11 +00:00
William S Fulton
0463f339d3 new directorconnect and directorconnect_derived typemaps (Java)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6841 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:08:04 +00:00
Marcelo Matus
922d7d4cfe .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 07:11:04 +00:00
Marcelo Matus
db5a9e2140 fix smart_pointer + extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 06:58:41 +00:00
Marcelo Matus
9d8ba2e53b fix ruby warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:22:56 +00:00
Marcelo Matus
6b499410dd more fixes for template + def args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:15:25 +00:00
Marcelo Matus
4de250a2a1 fix ruby warns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:28:55 +00:00
Marcelo Matus
6a4266c1a4 fix ruby warns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6829 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:23:53 +00:00
Marcelo Matus
6d224521a7 fix SWIG command
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:18:17 +00:00
William S Fulton
c9a9d0e695 member enum in director method test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:22:17 +00:00
William S Fulton
5eca2a598d member enum test in director method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:21:34 +00:00
William S Fulton
daedd1506b add missing method bodies
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:19:12 +00:00
Marcelo Matus
e7453ba642 fix warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 12:08:48 +00:00
Marcelo Matus
ae287532ae CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6820 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 11:37:15 +00:00
Marcelo Matus
49c6b3f14f add support for smart pointers + %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 11:29:17 +00:00
Marcelo Matus
25e1e7932a adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:17:56 +00:00
Marcelo Matus
844924b2c9 add template_default_pointer broken case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:15:23 +00:00
Marcelo Matus
2f1bf5cac4 add template_default_pointer broken case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:14:56 +00:00
Marcelo Matus
96b723b0da fix wrong apply
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:07:12 +00:00
Marcelo Matus
42f7bb05f6 resolve ruby warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:06:33 +00:00
Marcelo Matus
6923d5346c add smart_pointer +members test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:06:04 +00:00
William S Fulton
7148d1f80a const enum reference runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:08:38 +00:00
William S Fulton
00c70d19f2 removed printfs which shouldn't be there
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:07:53 +00:00
Marcelo Matus
ccee8a5a0a removing generated interface
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-29 18:02:03 +00:00
Marcelo Matus
78266c9b0d change stream test name, plus more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 22:34:48 +00:00
William S Fulton
0ff8f64262 simple const enum SWIGTYPE & typemap test and enum by value runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:43:39 +00:00
William S Fulton
07d1bdd936 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6789 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:34:14 +00:00
William S Fulton
80b086b382 simple const enum SWIGTYPE & typemap test and enum by value runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6787 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:21:52 +00:00
William S Fulton
7702d367e6 const enum SWIGTYPE & typemap tests
more enum tests


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6786 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:20:22 +00:00
William S Fulton
ea2a3a3925 const enum SWIGTYPE & typemap tests
more enum tests


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:13:27 +00:00
William S Fulton
b3ddf4de72 deprecated %name warning suppression
name_inherit test moved into name_cxx


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:10:18 +00:00
William S Fulton
a935d489b3 Broken makefile fixed (trailing \ at end of list)
name_inherit tests moved into name_cpp


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:08:57 +00:00
Marcelo Matus
36bfc66486 add iostream test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 09:18:32 +00:00
Marcelo Matus
c4d6cdf0ab fix non public overload order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 09:15:58 +00:00
Marcelo Matus
520d9238c0 adding readme and minor runme.py fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 18:22:53 +00:00
Marcelo Matus
58326f9cc8 adding Prabhu's 'weave' example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 17:19:13 +00:00
Marcelo Matus
492c58c659 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/SWIG@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:36:26 +00:00
Marcelo Matus
0881d3c861 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/SWIG@6759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:40:20 +00:00
Marcelo Matus
1a424e65a7 add back multiple_inheritance, now works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 18:24:30 +00:00
Marcelo Matus
73b3b898d6 add example of how to include the swig runtime code into external user code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:42:25 +00:00
Marcelo Matus
1b9dfb5838 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:40:02 +00:00
Marcelo Matus
3c0ce89d32 example of how to include the swig runtime code into external user code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:39:09 +00:00
Marcelo Matus
b574e77f6b fix macro with empy args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:25:23 +00:00
Marcelo Matus
2e1f72c883 update ignore list
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:37:50 +00:00
Marcelo Matus
b686ee01c5 add/fix protected/private bases + template
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:36:23 +00:00
Marcelo Matus
60694088fa remove test.dat file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:25:17 +00:00
Marcelo Matus
4ac505b4d4 added more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 00:18:32 +00:00
Marcelo Matus
edb5a6669f adding more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:58:10 +00:00