Commit graph

4,682 commits

Author SHA1 Message Date
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
William S Fulton
77d2823b7f Removed last vestiges of enums being handled as integers in the core.
Mod for consistency across warning messages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6778 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:06:36 +00:00
William S Fulton
0c9b24e339 Fixes for enums no longer being handled as integers in the core.
New special variable $*csclassname to compliment $&csclassname and $csclassname.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6777 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:04:28 +00:00
William S Fulton
a8df2a0080 Fixes for enums no longer being handled as integers in the core.
New special variable $*javaclassname to compliment $&javaclassname and $javaclassname.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:03:02 +00:00
William S Fulton
95b3b8db60 Removed last vestiges of enums being handled as integers in the core.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 18:59:03 +00:00
William S Fulton
8b64934cff Removed last vestiges of enums being handled as integers in the core.
New attribute, 'enumtype' -> needed when obtaining an enumitem value via a wrapper method - it contains the type of the enum so that an instance of this enum can be declared.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 18:57:40 +00:00
William S Fulton
7814e12b7c Removed last vestiges of enums being handled as integers in the core.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 18:53:17 +00:00
Marcelo Matus
ffa25c871d more on protected ctors+directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 10:35:49 +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
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
5b89ab2e60 patch #1069631 to disable cpp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 01:37:29 +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
899c08b740 generate checkout message in verbose mode, and in stdout, no stderr, since is not an error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:47:13 +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
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
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
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
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
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
df8c99079b add proper deprecated code for %name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 06:32:26 +00:00
Marcelo Matus
7e46e4c552 add simple warning to deprecated %name directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 06:04:27 +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
c579831a19 change error to warning when a base class is not defined
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 00:38: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
1f5520131a more updates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 23:19:12 +00:00
Marcelo Matus
4560576293 updates for 1.3.24
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 23:00:40 +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
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
794680d137 fix for value_wrapper + feature:nodefault
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:56:18 +00:00
Marcelo Matus
659e439023 fix for abstract
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:55:27 +00:00
Marcelo Matus
2aecc01c24 fix -director option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:54:16 +00:00
Marcelo Matus
a32173a68c process protected/private bases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:53:13 +00:00
Marcelo Matus
f678d1eed0 support/ignore multi-inheritance directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:52:38 +00:00
Marcelo Matus
eb222e7a77 process protected/private bases, support/ignore multi-inheritance directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:51:48 +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