Commit graph

1,259 commits

Author SHA1 Message Date
Marcelo Matus
c8e5a99ecb avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-20 18:59:06 +00:00
Marcelo Matus
c42b44bf58 fix runtime error reported by Robin Dunn, which also fix PyICU, and add debug mechanism for the Runtime System
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-20 07:58:01 +00:00
Marcelo Matus
a551f26811 remove noblock=1 in the varin typemaps since Tcl could add some code before the variable declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-20 00:59:29 +00:00
Marcelo Matus
b538d5e5f0 add 'newfree' typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8486 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 07:55:48 +00:00
Marcelo Matus
8a7288e5ef fix possible C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:54:51 +00:00
Marcelo Matus
64b47b7edb fix tcl C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:53:32 +00:00
Marcelo Matus
6cb4870883 fix perl C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:53:15 +00:00
John Lenz
6d5b48fe6e Fix a compile error when using void * in the test suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 03:16:01 +00:00
Marcelo Matus
4c1614424d add macro for backward comp.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-17 21:43:55 +00:00
Charlie Savage
e5a3bdad7d Changed rename rules to include functions and change Enums to only capitalize the first letter.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8474 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-17 04:54:48 +00:00
Marcelo Matus
d27d74c79c change the %rename predicates to use the prefix %$ and avoid clashings with other rename directives
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-16 23:27:11 +00:00
Charlie Savage
2b9b6d9732 Updated renaming rules.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-16 10:46:08 +00:00
Marcelo Matus
2621785fb0 add at least %not support for rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 19:34:43 +00:00
Marcelo Matus
a0fb6ab916 add rename for member variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 19:19:22 +00:00
Marcelo Matus
0b2d6ed0ce add more predicates for rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 18:21:26 +00:00
Marcelo Matus
faec0c12fb long rule to match exactly const static variable with a value in the declaration
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 17:44:40 +00:00
Marcelo Matus
5601aff69c fix cast from double to long long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8458 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 09:18:58 +00:00
Marcelo Matus
43eaf119fe fix missing long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8456 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 08:44:46 +00:00
Marcelo Matus
52ff75eecd add guards for wrong inclusions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 02:10:15 +00:00
Charlie Savage
de0b9ba295 Changed rename check for constants to use %hasconsttype
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:49:54 +00:00
Charlie Savage
723d385e36 Added support for Ruby bang methods. Bang methods end in exclamation points and indicate that the object being worked on will be modified in-place as opposed to being copied.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:25:48 +00:00
Marcelo Matus
59690474bf add more rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:23:57 +00:00
Marcelo Matus
137ab96746 use internal SWIG_exception_fail, let SWIG_exception as in 1.3.27
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:23:36 +00:00
Matthias Köppe
ce0e5c5395 Add #include needed by some SWIG code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8430 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 13:36:48 +00:00
Matthias Köppe
fdd0088a30 Use malloc instead of new in C mode.
Add #includes needed by some SWIG code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8426 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 11:25:51 +00:00
William S Fulton
2b805e684e correct some function declarations to match the standard - VC++ fails otherwise
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 00:20:37 +00:00
Charlie Savage
915cf82197 Added SWIG_POINTER_EXCEPTION for backwards compatibility.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 23:43:12 +00:00
Charlie Savage
ce0ec6ba6c Undid change to check for nil object since it was not valid because it disallowed passing null pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 22:27:44 +00:00
Charlie Savage
237d452aba Added check for nil object being passed to SWIG_AsCharPtrAndSize. If a nil object is passed in then an error is returned.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 21:52:13 +00:00
Marcelo Matus
ef260c3451 add the ismember and hasvalue attributes and the corresponing %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 18:04:59 +00:00
Charlie Savage
8a3351d794 Fixed up checking for constants.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 01:49:29 +00:00
Marcelo Matus
02faa27d3f cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 01:08:10 +00:00
Charlie Savage
03aa663f5a Use new camelcase,undercase,lowercase aliases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 00:56:29 +00:00
Charlie Savage
62cb2b8e90 Moved constant renames from the c++ code to ruby.swg to reuse the new %rename functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 00:51:49 +00:00
Charlie Savage
032bf49f28 Added %rename to change function and method names from CamelCase to lower_case_with_underscores.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 23:35:46 +00:00
William S Fulton
65620fb539 Choose SWIG exception specification override (%catches) instead of real exception specifications for code that goes into the wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 23:01:54 +00:00
William S Fulton
a658cc52aa remove unnecessary exception specifications, thereby preventing Visual Studio from having epileptic warnings fits filling the screen with heaps of compete and utter rubbish because it doesn't handle exception specifications properly.
Marcelo, please check that this doesn't remove any generated catch handlers. I dont' feel up to chasing a million and one macros to be sure.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 22:36:04 +00:00
Marcelo Matus
bf2fef6438 add space for rename rules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 21:10:54 +00:00
Marcelo Matus
9c7d46c48c add missing '%' in front of #include
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 18:49:12 +00:00
Marcelo Matus
f86657bb71 more %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 15:44:27 +00:00
Marcelo Matus
4f68626cf6 add predicates to %rename, new kind attribute to cdecl and the '|' operator in %rename's match
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 09:06:07 +00:00
Marcelo Matus
46b2008536 add the throws (...) typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 06:10:27 +00:00
Surendra Singhi
6042f0992d Fixed a typo reported by Brad Anderson.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 05:04:22 +00:00
Marcelo Matus
f3f56ee734 add %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 00:39:59 +00:00
Marcelo Matus
4fe0c9530d better throws(...) typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 23:12:34 +00:00
Marcelo Matus
0969072b63 fix memory PyObject * typemaps to avoid memory leaks with iterators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 23:05:12 +00:00
Marcelo Matus
88db03abb7 finally, fix the croak/Nullch issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 20:15:39 +00:00
Marcelo Matus
2f69e0bf33 add functional header for std::less
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 16:47:51 +00:00
William S Fulton
bbaf3f1233 Fix so that C++ code is not generated for C wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:22:34 +00:00
Marcelo Matus
bc39db5341 change the %catchs name to %catches
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:17:15 +00:00