Commit graph

5,433 commits

Author SHA1 Message Date
William S Fulton
568141faf7 std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore

Please test if possible, I can't run these languages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:50:53 +00:00
Matthias Köppe
edba3add6b Add support for member function pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:47:18 +00:00
Marcelo Matus
ad0b6ca329 add const global string case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:33:15 +00:00
Marcelo Matus
dabf4f8a94 '%naturalvar <Class>;' doesn't need to be applied before the class declaration anymore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:18:45 +00:00
Marcelo Matus
744ba3f76c add local li_std_string test with %naturalvar applied to variables while the way to apply %naturalvar to std::string is sorted out
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:15:19 +00:00
William S Fulton
4c5d4a9d29 std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:53:41 +00:00
William S Fulton
3fe974fb76 Add in runtime tests for std::string variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8612 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:52:48 +00:00
William S Fulton
15921b61d2 Add in runtime std::variable tests based on other language runtime tests. Might make some of the original type checking tests redundant.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:20:26 +00:00
William S Fulton
74513108a4 test std::string global variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:05:47 +00:00
William S Fulton
9d4cae43b3 Modify for const std::string variables being wrapped like non-const std::string variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 14:50:05 +00:00
William S Fulton
2df53312a3 add in const std::string variable tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 14:47:38 +00:00
William S Fulton
aa100d9b60 Add const global std::string variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 14:46:47 +00:00
Marcelo Matus
506cece240 use hidden attr instead of self, is more general
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 03:42:22 +00:00
Marcelo Matus
e7191fece9 fix/apply naturalvar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 03:29:20 +00:00
Marcelo Matus
ab03eb18e7 check/fix the %delobject feature for member methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 01:21:52 +00:00
William S Fulton
f7246bc667 change variable name for Ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 01:14:57 +00:00
William S Fulton
465b27147e Add in test for global and member std::string variable access
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:49:41 +00:00
William S Fulton
a74457e880 Finally std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:49:16 +00:00
William S Fulton
363d3484ef Fix test for std::string global and member variables being wrapped as strings by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:44:58 +00:00
William S Fulton
a1875b8395 Finally std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:44:13 +00:00
William S Fulton
3d03012639 Finally std::string global and member variables are wrapped as strings by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:42:25 +00:00
Marcelo Matus
dde6392a0c fix memory leaks in test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 19:18:47 +00:00
Marcelo Matus
d3102b4cf9 add more docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 18:58:18 +00:00
Marcelo Matus
549abbb959 backward compatible definition of SWIG_excetion, we now just try to use the safer SWIG_exception_fail when needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 17:37:03 +00:00
Marcelo Matus
1122c39ec4 add the SWIGUTL macro to identify a language using the Unified Typemap Library, and using it around
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 17:35:22 +00:00
Surendra Singhi
dafc4dbdfc Frank Buss's fix for anon enums.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 14:07:54 +00:00
Marcelo Matus
0c18f47955 add doc for naturalvar use with classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 09:05:30 +00:00
Marcelo Matus
f39d358984 add more backward comp macros/fragments/methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 08:59:32 +00:00
Marcelo Matus
3de733ebc4 add more backward comp macros/fragments/methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 08:48:48 +00:00
Marcelo Matus
7dc39f200c fix exception, use SWIG_fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8589 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 05:03:48 +00:00
Marcelo Matus
2624e7c08b Use append instead of printf
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 05:02:37 +00:00
Marcelo Matus
c198225f9d add missing goto fail when needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 04:14:57 +00:00
Marcelo Matus
ce684d16c0 fix duplicate goto fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 04:10:29 +00:00
Marcelo Matus
4166e36abb implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:38:27 +00:00
Marcelo Matus
32d28239da set PyObject * out typemaps back to simple returns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:38:05 +00:00
Marcelo Matus
fa726d34ad add support for 'old' tuple output
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:26:11 +00:00
Marcelo Matus
20cdc2a18c remove 'hello'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:24:48 +00:00
Marcelo Matus
933ac56a20 implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:11:47 +00:00
Marcelo Matus
68f61c7c12 implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:41:48 +00:00
Marcelo Matus
51becdbe09 add forward class to the classhash
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:40:47 +00:00
Marcelo Matus
ae430d0ea9 implement the naturalvar feature for global vars in java and csharp, implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:39:24 +00:00
Marcelo Matus
e8b3542f9a implement the naturalvar feature for global vars in java and csharp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:38:00 +00:00
Marcelo Matus
3b866d286b implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:36:13 +00:00
Matthias Köppe
8a1cb2fcf6 Don't forget to close the "scmstubfile".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 01:42:58 +00:00
William S Fulton
16d0216061 forgotten checkin - warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 23:22:27 +00:00
Marcelo Matus
146958ad78 add and extend missing/deleted docs for the pythonappend/pythonpreppend features and the new directive forms %pythonappend/%pythonpreppend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 18:47:15 +00:00
Marcelo Matus
51f7ea18f6 add the 'str' method to cvar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 16:28:43 +00:00
Jason Stewart
8e405d580c perl test runner now properly catches STDERR
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 10:36:57 +00:00
Jason Stewart
e1b358a5f2 fixing old perl's to use Test::More
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 10:31:27 +00:00
William S Fulton
152f6d18dd simple #warning and #error tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-26 22:33:34 +00:00