Commit graph

1,210 commits

Author SHA1 Message Date
William S Fulton
fff590d2e5 test compactdefaultargs feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7560 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 21:32:12 +00:00
Marcelo Matus
d13e98213b recover the %import(module=name) option,lost in previous fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 15:27:20 +00:00
Marcelo Matus
48e2a09715 add swigpyrun.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7551 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:15:24 +00:00
Marcelo Matus
6777a49b1f add more docs and cases about how to use the %execption directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:06:41 +00:00
William S Fulton
3ee6a93127 test bool as member variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-28 20:56:11 +00:00
William S Fulton
25cfc49856 test wrapping nothing!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-28 20:55:18 +00:00
Matthias Köppe
4c5986550c Don't forget to exit.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7535 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 21:45:34 +00:00
Marcelo Matus
37b7e6133e add missing const ptr case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 14:53:39 +00:00
Matthias Köppe
b30b77c60c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-25 21:33:56 +00:00
Charlie Savage
db123cc55f Remove dependency on Ruby unit test framework.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-25 07:13:41 +00:00
Charlie Savage
ed80d73e73 Added track_objects_directors test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:36:36 +00:00
Charlie Savage
87bc2e3a5c Moved to Ruby directory.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:34:50 +00:00
Charlie Savage
c8a76f8587 Added test case for Ruby using track objects and directors at the same time.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:30:30 +00:00
Charlie Savage
f7b82f7214 Added two new examples for Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:13:46 +00:00
Charlie Savage
de4629ac7a New example to test free_functions. Makes use of tracking objects functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:12:53 +00:00
Charlie Savage
b4812f0029 New example for Ruby that shows how to implement a mark function. Also makes use of the tracking objects funcitonality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 21:53:53 +00:00
Charlie Savage
48aa345440 Fix to compile on Windows. The code defines a type called small, but Windows already defines that type in rpcndr.h. Added code to undef small at the start of the wrapper file.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 21:48:07 +00:00
Charlie Savage
42de18b3e9 Test would not compile on windows because it defines a template class called Rectangle, but Windows defines a function called Rectangle in wingdi.h. Thus renamed Rectangle to RectangleTest. Note this should not affect any test cases, because they test RectangleInt which is defined as RectangleText<int>. Thus the external api to the produced module does not change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 21:42:07 +00:00
William S Fulton
3824ff204c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 10:05:33 +00:00
William S Fulton
ea310550fa correct last checkin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 09:48:22 +00:00
William S Fulton
a6ac0941e7 move ruby only test to ruby directory
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 09:20:19 +00:00
William S Fulton
7046de706a move to ruby directory as ruby only test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 09:18:23 +00:00
Charlie Savage
2163b181e1 Added test for tracking objects functionality in Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 23:38:32 +00:00
Charlie Savage
84ec697807 New test objects test suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 21:46:33 +00:00
William S Fulton
db84d961e3 Test for patch #1116431 Fix non member functions inadvertently being called instead of member functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7499 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 21:20:27 +00:00
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