Commit graph

962 commits

Author SHA1 Message Date
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
Marcelo Matus
1bdc2fa223 fix seg. fault in errors/.. and revert to previous 1.89 version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 23:30:25 +00:00
William S Fulton
98240e2dcd update for change to proper enums instead of simple integers for enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 21:43:17 +00:00
William S Fulton
037a251369 more %ignore tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:28:04 +00:00
William S Fulton
0b150a96bb more %rename/%ignore tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:27:02 +00:00
William S Fulton
e893bb526f %rename runtime tests added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:25:51 +00:00
William S Fulton
3903b13479 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:24:57 +00:00
William S Fulton
36c36036fc %rename tests beefed up a bit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6703 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:24:21 +00:00
William S Fulton
2159035486 %feature tests added for methods in an inheritance chain
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6702 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:23:04 +00:00
William S Fulton
4008388d0c warning fix on Solaris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:22:04 +00:00
William S Fulton
1562206701 warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 21:17:11 +00:00
Marcelo Matus
6bc74a1f92 added missing test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 06:12:07 +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
ccf5343b34 fix warnings when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 23:25:34 +00:00
Marcelo Matus
cea97e847b fix warnings when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 23:18:01 +00:00
Marcelo Matus
20a5bd9617 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:52:17 +00:00
Marcelo Matus
ee88f8acaf remove warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:46:51 +00:00
Marcelo Matus
2807c61904 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:36:07 +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