Commit graph

954 commits

Author SHA1 Message Date
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
Marcelo Matus
0c80869369 fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:15:32 +00:00
Marcelo Matus
3959bffb7e minor errors/warings fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:58:00 +00:00
Marcelo Matus
20debc4ed8 added more test cases and broken ones
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 18:45:28 +00:00
Marcelo Matus
54ac86798a recover pseudo nested class support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-13 01:25:56 +00:00
Marcelo Matus
d6a3c88c56 fix ruby warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-12 00:02:07 +00:00
Marcelo Matus
f668d1def8 fix seg. fault in errors/.. and revert to previous 1.89 version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 23:30:25 +00:00
William S Fulton
76e39ea0b7 update for change to proper enums instead of simple integers for enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 21:43:17 +00:00
William S Fulton
263b2af0c5 more %ignore tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:28:04 +00:00
William S Fulton
ed85b98a2d more %rename/%ignore tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:27:02 +00:00
William S Fulton
7fbaf9a2f6 %rename runtime tests added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:25:51 +00:00
William S Fulton
73f1eba027 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:24:57 +00:00
William S Fulton
cbd3aec2de %rename tests beefed up a bit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6703 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:24:21 +00:00
William S Fulton
d6268c8fdf %feature tests added for methods in an inheritance chain
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6702 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:23:04 +00:00
William S Fulton
e077b9153a warning fix on Solaris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-09 21:22:04 +00:00
William S Fulton
6caf912607 warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 21:17:11 +00:00
Marcelo Matus
2c751607cd added missing test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 06:12:07 +00:00
Marcelo Matus
41a0b2dd59 fix def args + director + constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 05:31:27 +00:00
Marcelo Matus
46dea78d93 fix warnings when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 23:25:34 +00:00
Marcelo Matus
791f17abe4 fix warnings when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 23:18:01 +00:00
Marcelo Matus
6cb06db2e3 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:52:17 +00:00
Marcelo Matus
429e2a37e4 remove warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:46:51 +00:00
Marcelo Matus
337c19a158 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:36:07 +00:00
Marcelo Matus
8083d4b64b 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/SWIG@6682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-06 23:18:45 +00:00
Marcelo Matus
37974faf9a new cases that show problem when mixing directors + constructor + def. args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-06 23:07:13 +00:00
William S Fulton
558c8fc69d mod to work on java-1.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-06 00:13:48 +00:00
William S Fulton
5be9f70c81 forgotten runtime test for std::vector
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 23:29:36 +00:00
William S Fulton
fbfca3d2d6 default args added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 23:19:00 +00:00
William S Fulton
5fd5da5dba C# fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6673 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 23:17:59 +00:00
Marcelo Matus
994e796c87 add std_list (lluisp #1033399)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 02:32:26 +00:00
Marcelo Matus
5b3e4bc601 fix typemap + numinputs +argout
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 00:22:29 +00:00
Marcelo Matus
9d3cce855e remove old patch for features + def arg, but save the ignore/rename part. Now everything seems to be working.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 23:18:01 +00:00