Commit graph

1,866 commits

Author SHA1 Message Date
Marcelo Matus
1754322e59 add debug prints and avoid to attach an empty typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 18:00:11 +00:00
Marcelo Matus
f62c92a5d4 add charlie's patch for MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 03:35:32 +00:00
Marcelo Matus
0ca87bb6f6 add charlie's patch for MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 03:31:38 +00:00
Marcelo Matus
26c3988b2f add charlie's patch for MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 03:30:31 +00:00
Marcelo Matus
d35b355f78 add charlie's patch for MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 03:30:24 +00:00
Marcelo Matus
656dfe64ea fix system <> include, now the last push dir is not the first one to check
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 02:03:03 +00:00
Marcelo Matus
ee2ca133bd fix missing endif
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:39:57 +00:00
Charlie Savage
c4a4392bd2 Minor fix to Swig_string_ucase so that it doesn't output two__underscores in a row.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:36:06 +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
Charlie Savage
2d8f0d1d06 Changed spelling mistake in autorename command line option text, also changed text a bit to be more descriptive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 22:31:20 +00:00
Marcelo Matus
60c5530b22 add firstlowercase encoder
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:24:54 +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
85e3bb1e86 fix extend constructor + default destructor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:23:09 +00:00
Marcelo Matus
1813eec6ed add the -autorename/-noautorename option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:22:32 +00:00
Marcelo Matus
2290fb1fa9 varios error fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:21:52 +00:00
Matthias Köppe
117037584f Don't use catch...throw in C mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 11:26:56 +00:00
Marcelo Matus
8b2f2a9b42 quick fix for duplicate keys
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 23:07:15 +00:00
Marcelo Matus
54e7622a05 check value len
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 18:09:05 +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
Marcelo Matus
668a0f5719 cosmetic and check for empty string in first_ucase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 18:03:50 +00:00
Charlie Savage
3954c5df10 Added new method called Swig_string_first_ucase which capitalizes the first letter in a string. This is needed for the Ruby module to allow backwards compatibility with swig 1.2.7 and before generated interfaces.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 05:50:57 +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
Marcelo Matus
f8ee8a0e49 add aliases for the 'case' encoders
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 00:38:44 +00:00
Marcelo Matus
66817e5970 fix the ctitle encoder to keep capital letters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 00:06:31 +00:00
Marcelo Matus
dd02494a88 last list rename rule added take precedence
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 21:10:26 +00:00
Marcelo Matus
5340de2a2e more fixes to utitle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 21:09:58 +00:00
Marcelo Matus
0b345e8546 add the -dump_parse_top and -dump_parse_modules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 17:19:02 +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
Mark Gossage
10f0f87e57 updated CHANGES.current & small fix to lua.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 07:22:46 +00:00
Surendra Singhi
5f637015c2 Fixed a struct related bug. Reported by Frank Buss and Kilian.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 05:42:24 +00:00
Marcelo Matus
3f50cdc914 more centralization of swigkeys
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 00:41:13 +00:00
Marcelo Matus
6d1e92ff1e another fix to utitle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 23:59:14 +00:00
Marcelo Matus
c049ae6902 fix the way a member is added to a class, and the class node is constructed, so it can be properly matched with the match=class predicate in the %rename directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 20:14:35 +00:00
Marcelo Matus
a9e1d15913 finally, fix the croak/Nullch issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 15:56:57 +00:00
Marcelo Matus
b8dcea5c11 fix first capital case in utitle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 09:23:30 +00:00
Marcelo Matus
8f10a5ba9d clarify in the code what is the catch list and the throw list, which don't have to be the same, and don't modify the throws attribute since it should be inmutable (for xml and others)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 01:34:06 +00:00
Marcelo Matus
985201ddec fix problem introduced by notmatch, extra not
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 01:02:57 +00:00
Marcelo Matus
7f05256bb7 test(and fix) the utitle encoder
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:40:07 +00:00
William S Fulton
4199849c63 Fix to compile under visual studio which has a limit on string lengths
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:20:58 +00:00
William S Fulton
8bf04dad3f Visual Studio warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:20:22 +00:00
William S Fulton
ed8dc5198f warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:19:30 +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
Marcelo Matus
a9769137ed add the utitle encoder, the reverse of ctitle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:16:36 +00:00
Charlie Savage
c2399a7aa2 Updated Ruby Exception handling. Classes that are specified in throws clauses, or are marked as %exceptionclass, are now inherited from rb_eRuntimeError. This allows instances of these classes to be returned to Ruby as exceptions. Thus if a C++ method throws an instance of MyException, the calling Ruby method will get back a MyException object. To see an example, look at ruby/examples/exception_class.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 19:19:19 +00:00
Marcelo Matus
043e45ca47 rename %throws to %catchs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 18:47:51 +00:00
Marcelo Matus
5c5584ab40 better support for the %throws directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 17:19:22 +00:00
Marcelo Matus
e5f0222054 add __not__ and test the new bool typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 15:53:23 +00:00
Marcelo Matus
9916e30489 add the %throws directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 10:12:32 +00:00
Marcelo Matus
e7bc3f34de add croak(Nullch) again and propagate exception as needed, please jason, check this one
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 01:06:38 +00:00
Charlie Savage
e6814c1841 SWIG_RubyAddTracking and SWIG_RubyRemoveTracking were not being correctly generated since they were looking for featue:trackobjects on the constructor/destructor nodes as opposed to the class node.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 00:29:57 +00:00