Commit graph

966 commits

Author SHA1 Message Date
Surendra Singhi
d25519b86a 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/SWIG@9070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 11:02:16 +00:00
Surendra Singhi
9722c97b2a 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/SWIG@9069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 06:47:08 +00:00
Marcelo Matus
dd8f4aa003 fix seg fault with -noproxy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 22:16:43 +00:00
Surendra Singhi
67f80bb5ef 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/SWIG@9059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 10:43:22 +00:00
Surendra Singhi
785998100c Prefixed package name to cffi symbols.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 07:47:44 +00:00
Surendra Singhi
d985c7cf9c 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/SWIG@9053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-13 18:07:28 +00:00
Surendra Singhi
f0d89aefe1 Generates wrappers for all variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-13 11:57:06 +00:00
Marcelo Matus
003804a4c0 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/SWIG@9048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:42:10 +00:00
Marcelo Matus
52cfa52b83 fix docs, path provided by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:40:20 +00:00
Mikel Bancroft
497228ec04 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/SWIG@9042 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-06 06:28:53 +00:00
John Lenz
7b4adb3109 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/SWIG@9041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-06 01:16:57 +00:00
Marcelo Matus
3d4a44ac03 more fixes for '%rename Class' + %copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 19:14:47 +00:00
Marcelo Matus
9857ae8e6d more fixes for '%rename Class' + %copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 19:12:43 +00:00
Mikel Bancroft
79df852156 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/SWIG@9026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-21 07:15:38 +00:00
William S Fulton
b3bf82ca45 Fix swig --help -<lang> working differently to swig -help -<lang>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 22:05:28 +00:00
Marcelo Matus
8561339c44 fix %rename + %copyctor issue reported by William
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 01:06:11 +00:00
Marcelo Matus
7664a87b1d 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/SWIG@9019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-20 00:24:39 +00:00
Marcelo Matus
fde04302a7 remove debugging print
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-19 23:36:22 +00:00
William S Fulton
c23664ff97 Fix #1448184 error message formatting
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-19 22:40:45 +00:00
Matthias Köppe
4dff31857a #ifdef out debugging statement.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-18 01:56:18 +00:00
Mikel Bancroft
d1b3949aba 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/SWIG@9010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-18 01:18:36 +00:00
Mikel Bancroft
a82b71b328 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/SWIG@9009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-16 18:11:25 +00:00
Marcelo Matus
ff9efe7418 fix misplaced code, reported by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-16 01:46:50 +00:00
Mikel Bancroft
6fc01f1cb7 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/SWIG@9004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-12 20:38:57 +00:00
William S Fulton
51ba1d14d5 #1447337 Delete LocalRefs at the end of director methods and some cosmetic changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-11 00:05:20 +00:00
Mikel Bancroft
42edc28ca1 03/10/2006: mutandiz
[allegrocl]
	    Fix bug in the generation of lisp wrappers for C interfaces.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-10 23:31:46 +00:00
William S Fulton
797317163a cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:02:54 +00:00
William S Fulton
33cfa55484 Move copyright notices from -version to -copyright and add in missing copyright notices that are in LICENSE
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:01:17 +00:00
Matthias Köppe
bd0b0ae836 Fix for module names containing a "-" in non-"shadow" mode.
Patch from Aaron VanDevender (#1441474).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 21:25:28 +00:00
William S Fulton
7f74b8e7a3 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus
260504f464 split tabs for C and Python. In python the indentation goes back to 4, in C stays at 2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 20:10:01 +00:00
Marcelo Matus
a9bbfd2b72 fix _swig_repr, as reported by Robin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 18:17:06 +00:00
Marcelo Matus
0395de6a20 fix fastinit option initial value, ie, it should be disabled(0)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 04:08:44 +00:00
Marcelo Matus
36c067836e add -fastquery and fix SWIG_Python_GetSwigThis, avoid to call GetAttr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:43:16 +00:00
Marcelo Matus
fbb364e7b5 add -O
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:37:18 +00:00
William S Fulton
a86a9b3fb6 split string, it is too big for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 00:23:37 +00:00
Marcelo Matus
9e952010b9 add -fastinit option after issue reported by Robin Dunn
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-04 11:06:51 +00:00
William S Fulton
25aff229ab 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/SWIG@8948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:44:34 +00:00
William S Fulton
ee27412e6e 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/SWIG@8931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:14:39 +00:00
William S Fulton
2a26e53f75 forgotten check in from a while back needed for visual studio.net 2005
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:04:00 +00:00
Surendra Singhi
6e4fc3b4c4 If there is a variable or argument with the name t' then convert it to either t_arg%d' or `t_var'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 17:56:19 +00:00
Marcelo Matus
b15a7a75d7 add the -olddefs flag for python, I am sure someone will ask for it...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 00:39:25 +00:00
Mikel Bancroft
4aabff8208 02/27/2006: mutandiz
[allegrocl]
	    Add support for INPUT, OUTPUT, and INOUT typemaps.
	    For OUTPUT variables, the lisp wrapper returns multiple
	    values.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 21:45:07 +00:00
Marcelo Matus
46318e8766 fix bug #1263457
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 23:45:28 +00:00
Kevin Ruland
5944accd5f Fix the constructor naming for non-shadow forms.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:49:01 +00:00
Kevin Ruland
0f01a6ed9f More TLS changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:03:12 +00:00
Marcelo Matus
be930bb0e3 fix duplicate method definitions when using -fastproxy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 09:47:21 +00:00
Marcelo Matus
54078c42b9 fix for non-void returning value and using + %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 07:06:41 +00:00
Marcelo Matus
49796f8ab7 fix for directors + empty vtables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 06:49:34 +00:00
Marcelo Matus
e99a8a707f fix using + extend as reported by William
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 01:21:43 +00:00