Commit graph

852 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
William S Fulton
b47c640b1b Fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 22:08:11 +00:00
Mikel Bancroft
afa792c0f4 01/09/2006: mutandiz
Fixes a number of SEGVs primarily in the handling of
	various anonymous types. Found in a pass through the
	swig test-suite. Still more to do here, but this is a
	good checkpoint.

	Adds -cwrap and -nocwrap as an allegrocl specific
	command-line argument. Controls generating of a C
	wrapper file when wrapping C code. By default only a
	lisp file is created for C code wrapping.

	Doc updates for the command-line arguments and fixes as
	pointed out on swig-devel


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 18:49:23 +00:00
Marcelo Matus
efecfe0ee2 replace as needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:41:32 +00:00
Marcelo Matus
9fb217b048 add %delobject, which is the equivalent of %newobject but for functions that delete an element. This allows to properly disown the argument, as the %newobject directive allows to 'own' the object
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:35:04 +00:00
Mark Gossage
ab9338a15e applied neomantra's patches & fixed C89 bug #1356574
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 07:59:11 +00:00
Marcelo Matus
016e6965e9 use "" instead of Nullch until we resolve about using Nullch + '@' + exceptions or not
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 00:43:42 +00:00
Marcelo Matus
08308246aa back to Nullch
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 22:05:21 +00:00
Marcelo Matus
c045b284fc back to Nullch
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8308 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 22:03:28 +00:00
Marcelo Matus
efa12c7c32 add info about SWIG_FEATURES and -help when no option is found. Use --help as alias of -help, following gnu-ish style.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 21:47:31 +00:00
Marcelo Matus
6eff5b03dd add extra replace that the UTL requires
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 19:37:34 +00:00
Jason Stewart
252897a324 removed printf output for operator overloading ; added back croak(Nullch) in fail:
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 11:26:20 +00:00
William S Fulton
c28e5ce47b Fix last sorting commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 09:48:26 +00:00
Marcelo Matus
165b0032e9 add buildnone option and cosmetics, including sorting options by name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 06:58:49 +00:00
Marcelo Matus
4794eeed45 remove extra 'directory' word
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 03:02:11 +00:00
William S Fulton
a5bc25841e Commandline option display: Put back in alphabetical order, fix typos and improve wording and consistency.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 23:34:31 +00:00
Marcelo Matus
c2296ed5b1 fix overload_simple case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 18:48:28 +00:00
Marcelo Matus
9e20f53808 disable kwargs in more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8258 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 17:16:25 +00:00
Marcelo Matus
68396be600 flag the memberget/memberset methods and use it to deactivate kwargs, reported by amaury
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 16:55:58 +00:00
William S Fulton
e5d5b16033 cosmetic changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8252 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 13:58:47 +00:00
Jason Stewart
40e789329e Perl module now fully supports operator overloading
added script for testing overloading support which uses Perl test harness: Test::More

updated HTML docs for operators


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 10:59:27 +00:00
William S Fulton
63a6a8ce09 Fix %extend with static const integral types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 22:19:37 +00:00
Marcelo Matus
96d2cfa17d split options info for old compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 11:09:48 +00:00
Marcelo Matus
5a269a5392 more options clean-up
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-04 07:44:12 +00:00
Marcelo Matus
724caee47c add -fakeversion option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-04 03:31:57 +00:00
Marcelo Matus
65deb7f85e add info for debug options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 19:51:13 +00:00
Marcelo Matus
9c6e025d11 add -dump_module_tree option (the -dump_tree is too much for most of the cases)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 07:42:03 +00:00
Marcelo Matus
e8f9094b4b avoid label warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:45:11 +00:00
Marcelo Matus
41ea394b6e fix seg fault with feature:callback
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 09:50:50 +00:00