Commit graph

1,178 commits

Author SHA1 Message Date
William S Fulton
ef13b64b7e New Lua examples - Mark Gossage patch #1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 20:00:56 +00:00
William S Fulton
39119b2d07 Mark Gossage patch 1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 19:35:23 +00:00
Kevin Ruland
6151879eff 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@7466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:43:12 +00:00
Kevin Ruland
ca173a9285 Change length of name to 5.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:41:57 +00:00
Kevin Ruland
c4e5c58015 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@7464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:40:55 +00:00
Kevin Ruland
d7c33db97f 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@7462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 13:53:44 +00:00
Kevin Ruland
a1c6f31c60 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@7461 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 13:52:41 +00:00
Kevin Ruland
8ad9d8ace2 Add include.php file and include it using pragma.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 02:33:05 +00:00
William S Fulton
b7ac7389ae fix symbol clash on windows for ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-19 08:52:32 +00:00
Kevin Ruland
c47b13a2bb 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@7454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:22:26 +00:00
Kevin Ruland
823157dea4 Added a string to the argument list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:20:50 +00:00
Kevin Ruland
9593b659b9 Added an example showing use of %pragmas and init/shutdown code injection.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:19:56 +00:00
Kevin Ruland
9b48816f68 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@7451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:18:15 +00:00
Marcelo Matus
e4f17f50aa fix example max macro/template and external max macro conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 00:35:38 +00:00
Kevin Ruland
663862918d Removed the -xmlout from swig.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-15 15:50:50 +00:00
Marcelo Matus
474752667e add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:36:57 +00:00
William S Fulton
0e29d8f8a6 test directors with classes passed by value, ref and pointer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-13 21:02:21 +00:00
William S Fulton
b93b3593bf Lua fixes to work on Unix as well as windows.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 22:14:37 +00:00
William S Fulton
dfaaa959a6 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@7432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 22:13:34 +00:00
Marcelo Matus
6b5a64bd92 add module option to import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 19:31:23 +00:00
Marcelo Matus
6d39fe1341 add char* string test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-09 17:58:43 +00:00
Kevin Ruland
3cb7d700c0 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@7412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 01:57:32 +00:00
Kevin Ruland
ae283adb6c Simple example of DISOWN typemap working correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 01:56:03 +00:00
Marcelo Matus
2c94c03056 fix minor warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 09:02:54 +00:00
Marcelo Matus
99ed184f95 adding test for binary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:31:25 +00:00
Marcelo Matus
2e2617edce normalize cstring.i to use fragments, and add cwstring.i as a subproduct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
Marcelo Matus
329566a36f update cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-28 09:47:32 +00:00
Marcelo Matus
0536823593 cancel warnings for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-26 08:32:48 +00:00
Kevin Ruland
501bd53c4b 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@7391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 16:32:41 +00:00
Kevin Ruland
bc9db8b383 Wrapper only generates object level method bindings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 15:19:53 +00:00
Kevin Ruland
99cbf36b3f Change so extra methods and classes only cause a warning instead of failure.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 15:18:09 +00:00
Marcelo Matus
c068056a10 fix import order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:41:29 +00:00
William S Fulton
e12fafc129 %newobject tests from Bob Marinier
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-18 20:38:23 +00:00
William S Fulton
edd91e04a0 .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 21:04:44 +00:00
William S Fulton
cc4950fe05 rename macro due to name clash on Windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-16 21:25:52 +00:00
William S Fulton
3db2823be7 operator overloading tests from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:59:55 +00:00
William S Fulton
127e49e03b Support for Lua added - patch from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:58:56 +00:00
William S Fulton
15150feff5 Support for Lua added - patch from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:38:34 +00:00
William S Fulton
663cd0dfb9 variable name 'in' is a c# keyword
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:43:39 +00:00
William S Fulton
b5fa5ee26f SWIG_exception mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:42:00 +00:00
Marcelo Matus
4a789f7409 add string case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 17:33:00 +00:00
Marcelo Matus
c9f4d68f96 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@7338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 09:36:08 +00:00
Marcelo Matus
d54c46fed2 add runtime test for li_cstring
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-18 16:46:53 +00:00
William S Fulton
7022f2091e fix extern declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-28 21:14:24 +00:00
William S Fulton
b62e405d4b new test to test windows calling conventions with extern functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-27 21:15:55 +00:00
William S Fulton
4950f242ed fix for new member variable function names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-23 20:57:05 +00:00
William S Fulton
0e588cf149 %extend member variable test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-23 20:46:51 +00:00
William S Fulton
a365332c97 %extend member variable test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7314 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-23 20:39:45 +00:00
Marcelo Matus
0bf296c7ad fix for #1205859
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-18 08:04:30 +00:00
Marcelo Matus
7b1b141ee4 more fixes for python 1.5 +gcc2.96
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:12:21 +00:00