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
b9dfced8ca
Convert C++ std::string to and from ruby such that strings containing
...
zero bytes are handled correctly, as they are elsewhere.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:01:05 +00:00
Olly Betts
fe4b1da5dc
Fix a typo.
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:56:46 +00:00
William S Fulton
c03eaa5082
Fix char* %apply for directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:50:06 +00:00
William S Fulton
f32a05a608
C# director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:38:24 +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
William S Fulton
bdc28f90ca
better director support for reference types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:16:20 +00:00
William S Fulton
b98445c19f
Director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:15:37 +00:00
Olly Betts
843444d5ba
Don't segfault if PHP Null is passed where a C++ reference is wanted.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-07 01:10:31 +00:00
William S Fulton
ff7ab7afac
more %apply char* fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:57 +00:00
Olly Betts
086d6b0280
Fix wrappers generated for global 'char' variables to not include a terminating
...
zero in the PHP string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9090 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 14:57:19 +00:00
Olly Betts
aab77a372a
Wrap multi-statement macro SWIG_PHP_Error(code,msg) in do {...} while (0)
...
to protect it from expanding incorrectly (spotted by Sam Liddicott).
Fortunately all current uses by SWIG itself appear to be safe.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 00:34:01 +00:00
Marcelo Matus
3eac44710d
fix bug #1480074
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 05:48:55 +00:00
Marcelo Matus
aef1bfcf1a
fix std::vector<const int*>, reported by tagna@gaia.ecs.csus.edu
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 05:24:41 +00:00
Marcelo Matus
eb5053c631
more fixes/tests for empty strings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 04:45:41 +00:00
Marcelo Matus
8947229522
more fixes to use %apply and char, unsigned char and others
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 02:01:17 +00:00
Marcelo Matus
ae96b6ec7d
cosmetic fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:51 +00:00
Marcelo Matus
12688fd642
fix changes in 1.3 to better support %apply, it didn't compile with python before
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:15 +00:00
Marcelo Matus
0a193a12be
fix empty std::string case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:50 +00:00
Marcelo Matus
20e425f31b
fix null char* case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:25 +00:00
Marcelo Matus
f61ae5e91c
fix null char* case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:34:26 +00:00
Marcelo Matus
3873d7f331
fix empty std::string case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:31:23 +00:00
William S Fulton
0f96efd9ce
ensure %apply with char*, unsigned char* and signed char* works
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:58:19 +00:00
William S Fulton
adf30f10a2
Fix possible redefinition of _CRT_SECURE_NO_DEPRECATE (for VC++)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-02 20:56:33 +00:00
William S Fulton
069ec58ea5
Add in defines to optionally remove the C# exception and string helper support code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9065 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-21 23:53:06 +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
Surendra Singhi
fdaf7a06f6
Prefixed package name to cl symbols.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 07:54:07 +00:00
Marcelo Matus
d863124388
add missing SWIG_VERSION
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 02:04:27 +00:00
Marcelo Matus
ce9a38796e
fix for 2.5, reported by Mike Romberg #1465867
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:45:31 +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
9aa5d0fd77
fix char* warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-10 21:03:13 +00:00
Marcelo Matus
646b38ee97
fix macro issue reported by Vladimir Menshakov
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-10 19:00:44 +00:00
Marcelo Matus
bcbab83ae8
fix % predicate, as reported by Mikael Jansson
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-08 05:32:19 +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
Marcelo Matus
c4c03726c1
fix for old VC 6.0 and linking issue reported by Roy Sutton
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 21:39:49 +00:00
Marcelo Matus
418b2d8ea3
use better names to avoid clashing with directors, as reported by Eric Blossom
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 21:20:46 +00:00
Marcelo Matus
a86e4777ac
fix overloading between unsigned long long and strings, as reported by Tim Lee.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 20:11:52 +00:00
Marcelo Matus
a62189b4e5
fix prototype warnings, as reported by Max Browsher
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-26 07:24:41 +00:00
Marcelo Matus
3d00467e39
fix prototype warnings, as reported by Max Browsher
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-26 07:09:22 +00:00
Marcelo Matus
6ccde68020
fix type cast
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-26 07:04:06 +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
d0a1364215
fix const wstring& typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-19 15:34:27 +00:00
Mikel Bancroft
5c8dd6e9b6
03/17/2005: mutandiz
...
[allegrocl]
mangle names of constants generated via constantWrapper.
When using OUTPUT typemaps and the function has a non-void
return value, it should be first in the values-list, followed
by the OUTPUT mapped values.
Fix bug with boolean parameters, which needed to be
passed in as int values, rather than T or NIL.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-18 01:18:36 +00:00
Mikel Bancroft
e6587aca65
03/15/2006: mutandiz
...
[allegrocl]
Generate wrappers for constants when in C++ or -cwrap mode.
Make -cwrap the default, since it is most correct. Users
can use the -nocwrap option to avoid the creation of a .cxx
file when interfacing to C code.
When in -nocwrap mode, improve the handling of converting
infix literals to prefix notation for lisp. This is very
basic and not likely to be improved upon since this only
applies to the -nocwrap case. Literals we can't figure out
will result in a warning and be included in the generated
code.
validIdentifier now more closely approximates what may be
a legal common lisp symbol.
Fix typemap error in allegrocl.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-16 18:11:25 +00:00
Marcelo Matus
e2882a13e8
fix mispelled prepend, reported by Jeremy McCormick
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-16 01:44:26 +00:00
Mikel Bancroft
3c6167fb0b
03/12/2006: mutandiz
...
[allegrocl]
Add INPUT/OUTPUT typemaps for bool.
Generate c++ style wrappers for struct/unions when
-cwrap option specified.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-12 20:38:57 +00:00
Matthias Köppe
f8817ba92d
Remove %include to non-existent file
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-11 01:09:39 +00:00
William S Fulton
766cb3877b
minor code consistent style changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-11 00:06:45 +00:00
William S Fulton
0eaa9f70dd
Bug 1446319 - variable of same name emitted more than once when more than wstring parameter in director methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-10 21:47:58 +00:00
Matthias Köppe
fe7c94f946
Fix unterminated line
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-09 08:37:12 +00:00