Commit graph

1,458 commits

Author SHA1 Message Date
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
Luigi Ballabio
90b6e38f1f Support for Ruby 1.6
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-09 08:34:09 +00:00
William S Fulton
4f9d3e819f cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:02:54 +00:00
Marcelo Matus
f1c1f6224d add note for namespace issues
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 09:15:31 +00:00
William S Fulton
121f60367f Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:45:17 +00:00
William S Fulton
7fa09580a0 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:37:34 +00:00
William S Fulton
c284e878e5 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:35:17 +00:00
William S Fulton
c188bc31a0 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:21:51 +00:00
William S Fulton
33cd31865a Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Mikel Bancroft
abad54d343 3/6/2006: mutandiz
[allegrocl]
	add Lib/allegrocl/inout_typemaps.i


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 18:47:07 +00:00
Marcelo Matus
9371153164 fix _swig_repr, as reported by Robin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 18:36:28 +00:00
Marcelo Matus
c1a95707e8 fix SWIG_Python_TypeQuery for C/Ansi, ie, the old variable declared after code issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 05:59:54 +00:00
Marcelo Matus
eaa4febc80 fix SWIG_Python_SetSwigThis reported by Robin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 04:07:43 +00:00
Marcelo Matus
e914e7dd6a add -fastquery and fix SWIG_Python_GetSwigThis, avoid to call GetAttr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:43:16 +00:00
Marcelo Matus
9669b8d5b2 add -fastinit option after issue reported by Robin Dunn
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-04 11:06:51 +00:00
William S Fulton
a969ab73dd Remove void * cast which was suppressing gcc's strict aliasing warning display. Note g++ 4.0 still does not display the warning even though with -O2 the resulting code fails due to aliasing optimisations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:44:34 +00:00
William S Fulton
7a0351adc2 remove unused method warning with gcc -Wall
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:41:12 +00:00
William S Fulton
62383e4cec remove unused warnings with gcc -Wall
Add sanity check back in checking that the pending exception count is zero per thread


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:39:54 +00:00
William S Fulton
5f89971986 Remove DllExport - it is a leftover from the C# module and was removed a while ago and should not be used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:37:23 +00:00
Marcelo Matus
d4163acbc2 fix builtin names warnings, so they ony apply to functions, as reported by James Bigler and the 'max' name issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8938 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 05:16:16 +00:00
Matthias Köppe
3cab3284f2 [Guile -scm] Add typemaps for "long long"; whether the generated code
compiles, however, depends on the version and configuration of Guile.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 04:00:31 +00:00
William S Fulton
05d6ff3b15 Add inner exception support with ideas from Tamas Szekeres
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 23:18:45 +00:00
William S Fulton
163bda978b Fix DllExport - it is a leftover from the C# module and should not be used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:14:39 +00:00