Commit graph

188 commits

Author SHA1 Message Date
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
William S Fulton
9af665a99a renamed lib_xxxx to li_xxxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:33:12 +00:00
William S Fulton
d035ab0fa3 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:31:55 +00:00
William S Fulton
ba9ff9c7a0 lib_xxxx tests renamed to li_xxxx as a workaround in glib which Mono C# uses - libraries wont be loaded if they start with lib
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:18:22 +00:00
William S Fulton
c611933db3 lib_xxxx tests renamed to li_xxxx as a workaround in glib which Mono C# uses - libraries wont be loaded if they start with lib
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:56:31 +00:00
William S Fulton
ba09ead729 lib_xxxx tests renamed to li_xxxx as a workaround in glib which Mono C# uses which won't load libraries starting with lib.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:03:04 +00:00
William S Fulton
11d77ef9ae various fixes to remove warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:10:06 +00:00
Marcelo Matus
2ff5f79e98 now 'defined' as variable name is fixed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 21:28:36 +00:00
Marcelo Matus
c70186d5d7 fix import + typedefs. see example in imports_b.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 22:23:19 +00:00
Marcelo Matus
7e4f23332b test for ref+int overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 19:06:50 +00:00
Marcelo Matus
df9fa977a8 fix director + abstract + constructors, reported by Brian Kelley
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 07:25:42 +00:00
Marcelo Matus
628916c794 add silly abstract case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 22:23:23 +00:00
Marcelo Matus
cafb3a1d73 CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:34:49 +00:00
William S Fulton
e4b4527658 runtime tests for templated functions with default args in namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:06:55 +00:00
William S Fulton
90f3f92c26 default args in C code test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:06:10 +00:00
William S Fulton
04e7f11296 beefed up the kwargs tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:05:34 +00:00
Marcelo Matus
ce25f45c99 make %callback more uniform and usable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 07:35:18 +00:00