Commit graph

2,069 commits

Author SHA1 Message Date
Olly Betts
0137fddce5 Eliminate use of static fixed sized buffers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-25 08:01:36 +00:00
Mikel Bancroft
7c36fe2581 5/24/2006: mutandiz
[allegrocl]
	   Don't require full class definition to generate CLOS wrapper.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9131 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-24 08:33:07 +00:00
Olly Betts
5a52f1a53e Make GCC visibility support work with PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-20 12:59:06 +00:00
Olly Betts
c5e90c2140 Removed support for -dlname (use -module instead). Fixed
naming of PHP extension module to be consistent with PHP
conventions (no "php_" prefix on Unix; on PHP >= 4.3.0, handle Unix
platforms which use something other than ".so" as the extension.)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-19 05:43:26 +00:00
William S Fulton
6924f9f340 Fix seg fault when parsing:
%inline {
and no closing brace


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-17 20:16:21 +00:00
Olly Betts
05257e801b Conditionalise generation of the C++ implemented proxy classes on the target
PHP version being PHP4 (since they don't work for PHP5).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-17 09:22:57 +00:00
Olly Betts
a2cb7bb598 Set "wrapperType = staticmemberfn;" when processing a static member function.
This should make no difference currently (testsuite output is unchanged) but
it's required for generating PHP5 OO wrappers.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:28:52 +00:00
Olly Betts
1042bce00c Add -php5 option which will turn on PHP5-specific output (and -php4 will
generate PHP4-specific output, with -php just being an alias for one of them.
Currently the only difference is that -php5 SWIGPHP5 is defined instead of
SWIGPHP4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 00:16:32 +00:00
Olly Betts
869f684bb2 Fix typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:19:21 +00:00
Olly Betts
b1b6b83371 Fix warning from Intel C++ v9.0 on generated header file:
ruby/foo_wrap.h(14): warning #64: declaration does not declare anything
  class Swig::Director;
  ^


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:01:49 +00:00
Olly Betts
74f6f7dc1a There's no need to call zend_get_parameters_array_ex() when no parameters
have been passed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:58:34 +00:00
Olly Betts
9139e439c9 When iterating Hash hash with Iterator ki, use ki.item instead of
Getattr(hash, ki.key).
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:06:45 +00:00
Olly Betts
ee27510234 Store the Node for the current class rather than just its name (which
makes little difference now, but paves the way for future changes...)
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:54:40 +00:00
Olly Betts
de75c4c1ed Use cap_module more instead of reconverting module to uppercase on the fly.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:53:04 +00:00
Olly Betts
0709d331df More typos.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:46:45 +00:00
Olly Betts
34c64955d7 Replace stderr messages with Swig_warning where there's an existing
WARN_XXX code.
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:31:49 +00:00
Olly Betts
3dea6969c0 Fix more typos!
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:24:13 +00:00
William S Fulton
fc84e395b9 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:19:18 +00:00
William S Fulton
383264fda8 minor director tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:31 +00:00
William S Fulton
8102074909 director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:07 +00:00
William S Fulton
a256f0b454 cosmetic mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:17:45 +00:00
Olly Betts
9ac28a7e5c Remove unnecessary use of %s with a constant string, making code consistent
with elsewhere.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 13:36:43 +00:00
Marcelo Matus
b9f0fe76b2 fig bug #1477756, inline and restrict keywords in C99
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 06:49:52 +00:00
Surendra Singhi
55290cfeb5 a struct/enum/union is replaced with :pointer only if
that slot is actually a pointer to that type.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 11:02:16 +00:00
Surendra Singhi
ded22097ab Removed -extern-all option which was not present, and fixed exporting of variable names.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 06:47:08 +00:00
William S Fulton
6c2831ffe7 clean some files generated by visual studio
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-21 23:40:05 +00:00
Marcelo Matus
2296b42a7d fix seg fault with -noproxy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 22:16:43 +00:00
Surendra Singhi
9af1e0981c Thanks to Thomas Weidner.
- when feature export is set (export 'foo) is generated for every
symbol, i think should be external.
- when feature inline is set (declaim (inline foo)) is generated
before every function definition
- when feature intern_function is set #.(value-of-intern-function
"name" "nodeType" package) is emitted instead of the plain symbol. a
sample swig-lispify is provided.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 10:43:22 +00:00
Marcelo Matus
7724263a9f fix error #1468674 enums + char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 08:52:29 +00:00
Surendra Singhi
6183f2fec4 Prefixed package name to cffi symbols.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 07:47:44 +00:00
Surendra Singhi
09d99d882b Added the option [no]swig-lisp which turns on/off generation
of code for helper lisp macro, functions, etc.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-13 18:07:28 +00:00
Surendra Singhi
cea8822129 Generates wrappers for all variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-13 11:57:06 +00:00
Marcelo Matus
adc9136582 comment fixes, from Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-12 19:34:01 +00:00
Marcelo Matus
b612f004ed better error message for overloading, as suggested by Tijs Michels, and doc fixes, provided by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:42:10 +00:00
Marcelo Matus
07022e74a8 fix docs, path provided by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:40:20 +00:00
Marcelo Matus
a2f06a36d2 add lowercamelcase encoder, from Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-10 21:02:06 +00:00
Mikel Bancroft
1b1a48de7b 04/05/2006: mutandiz
[allegrocl]
	    Fix output typemap of char so it produces a character instead
	    of an integer. Also adds input/output typemaps for 'char *'.

	    add command-line argument -isolate to generate an interface
	    file that won't interfere with other SWIG generated files that
	    may be used in the same application.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9042 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-06 06:28:53 +00:00
John Lenz
ba15231ee4 Update Chicken configuration to not use chicken-config
which was removed in version 2.3
Other minor bug fixes to chicken


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-06 01:16:57 +00:00
Marcelo Matus
c0b01e9804 fix type for sizeof
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-28 07:49:03 +00:00
Marcelo Matus
228cfe8435 fix include of files without last newline, as reported by Wes Hodges
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9032 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-22 08:15:46 +00:00
Marcelo Matus
bcb9b63089 more fixes for '%rename Class' + %copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 19:14:47 +00:00
Marcelo Matus
574ee1af25 more fixes for '%rename Class' + %copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 19:12:43 +00:00
Mikel Bancroft
c21f5177be 03/20/2005: mutandiz
[allegrocl]
	    More tweaks to INPUT/OUTPUT typemaps for bool.

	    Fix constantWrapper for char and string literals.

	    find-definition keybindings should work in ELI/SLIME.
	    Output (in-package <module-name>) to lisp wrapper
	    instead of (in-package #.*swig-module-name*).

	    slight rework of multiple return values.

	    doc updates.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 07:15:38 +00:00
William S Fulton
a404be5ea5 Fix swig --help -<lang> working differently to swig -help -<lang>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 22:05:28 +00:00
Marcelo Matus
2f58208898 fix for %copyctor + default_constructor.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 10:47:39 +00:00
Marcelo Matus
faf33e0bd8 fix %rename + %copyctor issue reported by William
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 01:06:11 +00:00
Marcelo Matus
c9fa14d5db generate error when a proper overloaded function is not found, as suggested by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 00:24:39 +00:00
Marcelo Matus
049d516956 fix template + enum issue reported by James Bigler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 00:14:24 +00:00
Marcelo Matus
a9d56d0f27 remove debugging print
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-19 23:36:22 +00:00
William S Fulton
5e8b3a792c Fix #1448184 error message formatting
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-19 22:40:45 +00:00