Commit graph

1,185 commits

Author SHA1 Message Date
Charlie Savage
5cff7abd73 Updates to examples so that they run correctly under Ruby 1.8
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 17:36:37 +00:00
William S Fulton
18994d5a5f operator tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-22 22:31:01 +00:00
William S Fulton
4c80e1ea69 add test for assigment operator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-22 22:30:28 +00:00
William S Fulton
d4db912fa2 provide default names for operators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-22 22:29:39 +00:00
Charlie Savage
a557be3f21 Fixed compile problem on windows. The code defines a template called max - however, Windows already defines a macro called max. The fix is to undefine the macro.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-22 03:22:05 +00:00
William S Fulton
bf48768e04 Lua improvements - Mark Gossage patch #1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 20:57:30 +00:00
William S Fulton
76d58c55cb Lua improvements - Mark Gossage patch #1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 20:05:06 +00:00
William S Fulton
d0381c8141 New Lua examples - Mark Gossage patch #1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 20:00:56 +00:00
William S Fulton
afda89dc49 Mark Gossage patch 1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 19:35:23 +00:00
Kevin Ruland
9cd0336266 Print variables from both C and PHP prior to modifications.
Call name_set() with a much shorter argument to make sure
nulls are padded.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:43:12 +00:00
Kevin Ruland
2a8891e6a0 Change length of name to 5.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:41:57 +00:00
Kevin Ruland
798499eff7 Change length of name to 5 to make manipulation easier.
Print out the individual characters of name[].
Use Print_point() function in print_vars().


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:40:55 +00:00
Kevin Ruland
24442fb756 Change example so it builds Foo_get() and Foo_set() wrappers. Use these
wrappers in the runme.php4.  Added wrapped method print_Foo() just to make
sure all is working.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 13:53:44 +00:00
Kevin Ruland
e1145cb383 Use named typemaps "REF" in add() function. Corresponds to recent changes
in phppointer.i


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7461 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 13:52:41 +00:00
Kevin Ruland
bd694705d0 Add include.php file and include it using pragma.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 02:33:05 +00:00
William S Fulton
20f6f843a8 fix symbol clash on windows for ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-19 08:52:32 +00:00
Kevin Ruland
e40a114246 Change one argument to string to show silent conversion to doubles and
prove no accidental data loss.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:22:26 +00:00
Kevin Ruland
1ea3104707 Added a string to the argument list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:20:50 +00:00
Kevin Ruland
ce5e38367c Added an example showing use of %pragmas and init/shutdown code injection.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:19:56 +00:00
Kevin Ruland
1935c2d69d Fix test cases to always use intp wrappers. This is required because of changes
to the default handling of pointer and references to basic types.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:18:15 +00:00
Marcelo Matus
eef3f9169d fix example max macro/template and external max macro conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 00:35:38 +00:00
Kevin Ruland
3083a9fe90 Removed the -xmlout from swig.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-15 15:50:50 +00:00
Marcelo Matus
be51f8389d add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:36:57 +00:00
William S Fulton
5b2e9e54ca test directors with classes passed by value, ref and pointer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-13 21:02:21 +00:00
William S Fulton
ef0eb857fd Lua fixes to work on Unix as well as windows.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 22:14:37 +00:00
William S Fulton
e8c4b5d45f make the php test suite consistent with the other languages, there is no need to generate an 'ok' message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 22:13:34 +00:00
Marcelo Matus
635677c450 add module option to import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 19:31:23 +00:00
Marcelo Matus
b5a727512f add char* string test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-09 17:58:43 +00:00
Kevin Ruland
26a672120c Removed the mangled name test. Names are mangled differently and are not
available to php.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 01:57:32 +00:00
Kevin Ruland
595ecd02ea Simple example of DISOWN typemap working correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 01:56:03 +00:00
Marcelo Matus
7887e42df5 fix minor warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 09:02:54 +00:00
Marcelo Matus
f2355fc45b adding test for binary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:31:25 +00:00
Marcelo Matus
c1416a59a5 normalize cstring.i to use fragments, and add cwstring.i as a subproduct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
Marcelo Matus
c3097349ea update cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-28 09:47:32 +00:00
Marcelo Matus
296e9dc9a2 cancel warnings for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-26 08:32:48 +00:00
Kevin Ruland
522ab32693 Updated examples to function correctly with new php4 module. Added
some supplemental examples for cpointer, overloading and references using
proxies.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 16:32:41 +00:00
Kevin Ruland
e2379c2b28 Wrapper only generates object level method bindings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 15:19:53 +00:00
Kevin Ruland
95c39431ed Change so extra methods and classes only cause a warning instead of failure.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 15:18:09 +00:00
Marcelo Matus
889662c81d fix import order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:41:29 +00:00
William S Fulton
878f80fc0c %newobject tests from Bob Marinier
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-18 20:38:23 +00:00
William S Fulton
562759198b .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 21:04:44 +00:00
William S Fulton
ffe9e4bd1b rename macro due to name clash on Windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-16 21:25:52 +00:00
William S Fulton
36e91fc651 operator overloading tests from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:59:55 +00:00
William S Fulton
3941e19141 Support for Lua added - patch from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:58:56 +00:00
William S Fulton
e590565fe8 Support for Lua added - patch from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:38:34 +00:00
William S Fulton
ee02102626 variable name 'in' is a c# keyword
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:43:39 +00:00
William S Fulton
3a34297cef SWIG_exception mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:42:00 +00:00
Marcelo Matus
a923a51bd6 add string case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 17:33:00 +00:00
Marcelo Matus
877535badf add set __getitem__ method, this allows python iterator syntax to work, as in 'for i in a_set:...'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 09:36:08 +00:00
Marcelo Matus
43bdb55a63 add runtime test for li_cstring
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-18 16:46:53 +00:00