Commit graph

204 commits

Author SHA1 Message Date
Marcelo Matus
e92d833ef7 add simutry
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-08 09:55:29 +00:00
Marcelo Matus
60a06a78d9 add case of vector + pointer +templates from Bo Peng
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-08 09:51:39 +00:00
Marcelo Matus
d7a45cd7a1 add more template+namespaces+matrix cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-08 06:46:15 +00:00
Marcelo Matus
035f4af3da add template_matrix.i case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-08 00:11:39 +00:00
Marcelo Matus
3c1fce28ae fix hex pointer conversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-02 17:55:13 +00:00
Marcelo Matus
7079c05fb5 fix hex pointer conversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-02 17:52:34 +00:00
Marcelo Matus
7b6b8d042c fix VC7.1 compilation problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-01 00:00:19 +00:00
Marcelo Matus
7fbbb03e6b cosmetic updates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-24 23:39:15 +00:00
Marcelo Matus
c486d3a694 add private case and runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-23 02:04:37 +00:00
Marcelo Matus
6efd5eb6a0 add new cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:59:04 +00:00
Marcelo Matus
dcfe22ad7b fix example back to use old typemaps rules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6983 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:58:42 +00:00
Marcelo Matus
d13e837d8e more smart pointers + extend fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-04 09:41:05 +00:00
Marcelo Matus
983bb8f35d fix for 'staticmethod' kw name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:32:31 +00:00
Marcelo Matus
a661f62a05 .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 08:26:01 +00:00
Marcelo Matus
f64047eb5c fix typecheck for INPUT* type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-20 10:19:54 +00:00
Marcelo Matus
c57d081dfb fix *INPUT typemaps for ptr types, now a null value is ok
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:36:45 +00:00
Marcelo Matus
aa048182d7 avoid using of temporal value for wrapping type user + const reference argument
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-18 05:57:08 +00:00
Marcelo Matus
e67b13b202 solve possible seg. faults and directors #1080075
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 10:40:01 +00:00
Marcelo Matus
7ae82d1c51 fixes for templates and template default args, cosmetics, and other fixes for OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 02:12:05 +00:00
Marcelo Matus
cca7ef61ea fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
7f21a7e408 add typedef case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 09:04:27 +00:00
Marcelo Matus
66c195b89d fix char* typemap in bug #1080514
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 08:30:40 +00:00
Marcelo Matus
d6760d4889 more smart_pointer fixes + cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:32:11 +00:00
Marcelo Matus
34984aaef1 .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 07:11:04 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Marcelo Matus
32b724e75c 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@6668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 23:18:01 +00:00
Marcelo Matus
a42260811d fix serious bug with def args + static methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 10:22:15 +00:00
Marcelo Matus
a6dba8577d making sure the resolve_scope_node is working fine before release, and fix for unnamed namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 08:07:02 +00:00
Marcelo Matus
ad7d943dfc fixes for %template+member/static methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 00:59:38 +00:00
Marcelo Matus
38d71bb5e2 add #include <algorithm>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:31:29 +00:00
William S Fulton
c6e0cd23c9 lib_xxx name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:51:35 +00:00
William S Fulton
743f258ba3 lib_xxx renamed to li_xxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:35:08 +00:00