Commit graph

947 commits

Author SHA1 Message Date
Matthias Köppe
9fa4db6131 #ifdef out debugging statement.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-18 01:56:18 +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
1097406a52 fix misplaced code, reported by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-16 01:46:50 +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
William S Fulton
3e57edcf2a #1447337 Delete LocalRefs at the end of director methods and some cosmetic changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-11 00:05:20 +00:00
Mikel Bancroft
03ccec96c7 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@9000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-10 23:31:46 +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
William S Fulton
dfdb9c9328 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@8987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:01:17 +00:00
Matthias Köppe
b7555582b5 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@8984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 21:25:28 +00:00
William S Fulton
8ff6ec955d Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus
a6147bb05a 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@8971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 20:10:01 +00:00
Marcelo Matus
5cafbdaa82 fix _swig_repr, as reported by Robin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 18:17:06 +00:00
Marcelo Matus
ab22c72a56 fix fastinit option initial value, ie, it should be disabled(0)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 04:08:44 +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
4469c94646 add -O
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:37:18 +00:00
William S Fulton
b106b13983 split string, it is too big for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 00:23:37 +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
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
William S Fulton
cc96957919 forgotten check in from a while back needed for visual studio.net 2005
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:04:00 +00:00
Surendra Singhi
80cdfb3594 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@8914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 17:56:19 +00:00
Marcelo Matus
7ae01e08ac 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@8912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 00:39:25 +00:00
Mikel Bancroft
6ee4d72a10 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@8911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 21:45:07 +00:00
Marcelo Matus
c41f10fd9c fix bug #1263457
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 23:45:28 +00:00
Kevin Ruland
ccba0834fb Fix the constructor naming for non-shadow forms.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:49:01 +00:00
Kevin Ruland
a5022a59dc More TLS changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:03:12 +00:00
Marcelo Matus
bb5827efba fix duplicate method definitions when using -fastproxy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 09:47:21 +00:00
Marcelo Matus
f3a2a4f0ee fix for non-void returning value and using + %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 07:06:41 +00:00
Marcelo Matus
9078778009 fix for directors + empty vtables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 06:49:34 +00:00
Marcelo Matus
0b268dccf4 fix using + extend as reported by William
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 01:21:43 +00:00
Marcelo Matus
d388046661 fix for directors, now the test-suite runs again using -directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 11:20:09 +00:00
Marcelo Matus
50ac99c2cc fix previous overload +protected member issue, as reported by Colin McDonald
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 11:09:05 +00:00
Marcelo Matus
3ffbfc43ef allow director protected members by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 18:18:44 +00:00
Marcelo Matus
a437930f4d fix overload + protected member issue reported by Colin McDonald
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8851 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 16:52:28 +00:00
Marcelo Matus
62ba3024e2 fix fastproxy for methods using kwargs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 07:30:38 +00:00
William S Fulton
b06e1b642e Deal with Microsofts attempt at deprecating C standard runtime functions for proprietary ones in Visual Studio 2005
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-19 22:16:56 +00:00
Marcelo Matus
640aaf8f3a add swigregister proxy method and move __repr__ to a single global module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8841 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 10:31:57 +00:00
Marcelo Matus
ce2aa74c36 add swigregister proxy method and move __repr__ to a single global module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 09:23:55 +00:00
William S Fulton
a8ed3543a8 Fix Sun workshop char* problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 23:20:19 +00:00
Marcelo Matus
4b150a0c9e avoid assert when finding a recursive scope inheritance, emit a warning in the worst case, reported by Nitro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 22:13:37 +00:00
Marcelo Matus
4f783cc1d4 fix gcc warning reported by R. Bernstein
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 21:10:42 +00:00
Kevin Ruland
568aa2c6d1 Added #include TRMLS.h to the php_module.h header file.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-16 21:30:03 +00:00
Marcelo Matus
85821269bf fix copyctor + template bug #1432125
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-16 05:39:20 +00:00
Marcelo Matus
88023f8b82 fix copyctor + template bug #1432125
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8820 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-16 05:30:26 +00:00
Kevin Ruland
6400d533db Fix overloading of constructors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-13 19:31:16 +00:00
Marcelo Matus
7ae7d7f278 fix static member names, from Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8798 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 22:01:31 +00:00
Marcelo Matus
c9639395c9 uniform the location of the includes and fixes, now in perlhead.swg as rubyhead.swg and pyhead.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 20:33:52 +00:00
Marcelo Matus
65e58e8ed9 generate warning for old python versions if the -classic option is not been used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 20:14:01 +00:00
Marcelo Matus
caf47cde94 new fix for director protected members + overloading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 18:09:46 +00:00