Commit graph

980 commits

Author SHA1 Message Date
Marcelo Matus
bffe7fd9c7 fix smart_pointer + extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 06:58:41 +00:00
Marcelo Matus
13aee4b0e7 fix ruby warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:22:56 +00:00
Marcelo Matus
b8ae49d52d more fixes for template + def args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:15:25 +00:00
Marcelo Matus
76b4f394af fix ruby warns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:28:55 +00:00
Marcelo Matus
9e094f7eab fix ruby warns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6829 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:23:53 +00:00
Marcelo Matus
2219b3c317 fix SWIG command
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:18:17 +00:00
William S Fulton
f9f4c3ff9c member enum in director method test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:22:17 +00:00
William S Fulton
f0161d3b3b member enum test in director method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:21:34 +00:00
William S Fulton
c2c1edf4d2 add missing method bodies
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-02 21:19:12 +00:00
Marcelo Matus
8fad995f34 fix warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 12:08:48 +00:00
Marcelo Matus
6843fc6ccd CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6820 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 11:37:15 +00:00
Marcelo Matus
d0fad62e2c add support for smart pointers + %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 11:29:17 +00:00
Marcelo Matus
52fe09a938 adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:17:56 +00:00
Marcelo Matus
749870a799 add template_default_pointer broken case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:15:23 +00:00
Marcelo Matus
bfb7ccbd90 add template_default_pointer broken case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:14:56 +00:00
Marcelo Matus
5b55c3af45 fix wrong apply
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:07:12 +00:00
Marcelo Matus
90a3172efb resolve ruby warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:06:33 +00:00
Marcelo Matus
8e382e6249 add smart_pointer +members test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:06:04 +00:00
William S Fulton
5d36275309 const enum reference runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:08:38 +00:00
William S Fulton
d406a54d7b removed printfs which shouldn't be there
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:07:53 +00:00
Marcelo Matus
71bcf51ef0 removing generated interface
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-29 18:02:03 +00:00
Marcelo Matus
2da2e15a53 change stream test name, plus more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 22:34:48 +00:00
William S Fulton
6c5b430226 simple const enum SWIGTYPE & typemap test and enum by value runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:43:39 +00:00
William S Fulton
e971c7dc62 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6789 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:34:14 +00:00
William S Fulton
9eebbd2a32 simple const enum SWIGTYPE & typemap test and enum by value runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6787 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:21:52 +00:00
William S Fulton
344b31d2c5 const enum SWIGTYPE & typemap tests
more enum tests


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


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


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:10:18 +00:00
William S Fulton
1992c710aa 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@6779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:08:57 +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
8b79e6a28a fix non public overload order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 09:15:58 +00:00
Marcelo Matus
15d40b2d44 adding readme and minor runme.py fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 18:22:53 +00:00
Marcelo Matus
e54afae12d adding Prabhu's 'weave' example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 17:19:13 +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
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
e83dbc195b add back multiple_inheritance, now works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 18:24:30 +00:00
Marcelo Matus
3ce073b679 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@6755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:42:25 +00:00
Marcelo Matus
55b36a30c9 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:40:02 +00:00
Marcelo Matus
eacea2b6f8 example of how to include the swig runtime code into external user code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:39:09 +00:00
Marcelo Matus
5beb5dc5df fix macro with empy args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:25:23 +00:00
Marcelo Matus
e144561109 update ignore list
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:37:50 +00:00
Marcelo Matus
56e38db2de add/fix protected/private bases + template
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:36:23 +00:00
Marcelo Matus
590c322f99 remove test.dat file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 05:25:17 +00:00
Marcelo Matus
26c7c807e9 added more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 00:18:32 +00:00
Marcelo Matus
e2e96ec64f adding more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:58:10 +00:00
Marcelo Matus
bebc53f9a2 fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:15:32 +00:00
Marcelo Matus
a00ab74a94 minor errors/warings fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:58:00 +00:00
Marcelo Matus
f1ad655a3e added more test cases and broken ones
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 18:45:28 +00:00
Marcelo Matus
9e02ffda0f recover pseudo nested class support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-13 01:25:56 +00:00
Marcelo Matus
11f121f948 fix ruby warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-12 00:02:07 +00:00