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
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
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
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
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
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
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
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
Marcelo Matus
b19d0dc05e
fix serious bug with def args + static methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 10:22:15 +00:00
Marcelo Matus
a0c0486d76
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/SWIG@6641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 08:07:02 +00:00
Marcelo Matus
6227611fa7
fixes for %template+member/static methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 00:59:38 +00:00
Marcelo Matus
3a405023eb
add #include <algorithm>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:31:29 +00:00
William S Fulton
1004070fc5
lib_xxx name change
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:51:35 +00:00
William S Fulton
a56d3a46bf
lib_xxx renamed to li_xxx
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:35:08 +00:00
William S Fulton
07598ba59b
renamed lib_xxxx to li_xxxx
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:33:12 +00:00
William S Fulton
8d458e3d32
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:31:55 +00:00
William S Fulton
89782ca04e
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/SWIG@6594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 23:18:22 +00:00
William S Fulton
dc903c677a
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/SWIG@6591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:56:31 +00:00
William S Fulton
40c6de5b56
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/SWIG@6584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:03:04 +00:00
William S Fulton
dc12af75b6
various fixes to remove warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:10:06 +00:00
Marcelo Matus
53306bdc3e
now 'defined' as variable name is fixed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 21:28:36 +00:00
Marcelo Matus
1fd5610c9f
fix import + typedefs. see example in imports_b.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 22:23:19 +00:00
Marcelo Matus
5a0b7df38f
test for ref+int overload
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 19:06:50 +00:00
Marcelo Matus
114c703acd
fix director + abstract + constructors, reported by Brian Kelley
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 07:25:42 +00:00
Marcelo Matus
a6db836faf
add silly abstract case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 22:23:23 +00:00
Marcelo Matus
d27df888dc
CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:34:49 +00:00
William S Fulton
2c5f8a09d2
runtime tests for templated functions with default args in namespace
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:06:55 +00:00
William S Fulton
1800d7914f
default args in C code test added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:06:10 +00:00
William S Fulton
fa423253a9
beefed up the kwargs tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:05:34 +00:00
Marcelo Matus
c7982bbdc8
make %callback more uniform and usable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 07:35:18 +00:00
Marcelo Matus
50b87f398b
more examples, and fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 02:08:55 +00:00
William S Fulton
2d1dbf168d
tests for default arguments in templated functions added
...
Currently broken for Python only
There might still be some 'translation errors' from converting the runtime test from the Java test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 21:01:14 +00:00
William S Fulton
c332db66ff
tests for overloading templated functions added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:51:46 +00:00
William S Fulton
aa13f87bfa
default args added to test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:48:10 +00:00
John Lenz
75e462baa8
Removed ability to share type information by C linking
...
All type sharing happens through a global variable in the target language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
Marcelo Matus
1ea4adbcd4
add Scott Fix for directors+rename, and testExamples/test-suite/director_basic.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-11 22:53:24 +00:00
Marcelo Matus
ca9e6834df
fixes for latest stl changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-10 07:58:03 +00:00
Marcelo Matus
9040ff7ecb
add tests for director+enums
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-08 09:15:38 +00:00
Marcelo Matus
8ab24227a9
more ugly tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 21:53:29 +00:00
William S Fulton
38f86d7d0a
using for method with default args test added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 19:57:13 +00:00
Marcelo Matus
6880fb6b15
added kwargs.i test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 18:56:17 +00:00
Marcelo Matus
200111d52d
more cases, and C/C++ compatibility
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 17:32:03 +00:00
Marcelo Matus
e0d84d4be9
check again large typequery
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 09:47:46 +00:00
Marcelo Matus
c3b41dd959
strange cache effect, disable by now, see enum_template.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 08:26:58 +00:00
Marcelo Matus
c6f20f2306
fix vector slice/del problems
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 02:31:31 +00:00
Marcelo Matus
dfe230354c
fix test to work with old and new repr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 21:07:42 +00:00
Marcelo Matus
9455a03257
better documented autodoc levels
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 03:33:56 +00:00
Marcelo Matus
776f15623e
several fixes, see CHANGES.current 10/04/2004
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 00:19:26 +00:00