Commit graph

1,415 commits

Author SHA1 Message Date
Baozeng Ding
c6592a5b56 Some change about makefile and typemaps as a littlet change of Scilab API
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-16 08:45:50 +00:00
Baozeng Ding
84aecae48a merge from trunk
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-04 06:48:39 +00:00
Baozeng Ding
59b9f3b6de clear up some code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 08:45:07 +00:00
Baozeng Ding
86a125e910 add complex matrix support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-29 15:27:06 +00:00
Baozeng Ding
5d23e5310a add INPUT/OUTPUT support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-27 09:08:23 +00:00
William S Fulton
c7d90e58d8 improve some director warning messages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-25 06:01:11 +00:00
Baozeng Ding
8d2ce8c8a8 Some change:getVarAddressFromPosition,createMatrixOfDouble,createMatrixOfString and add argument number checking
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-25 03:14:26 +00:00
Baozeng Ding
0eb0740556 merge from trunk
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-21 01:26:44 +00:00
Baozeng Ding
ed84d6b162 add support for Enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-20 02:44:06 +00:00
William S Fulton
0a1c7c91b1 fix Java and C# enums when one of the enum items is ignored
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-16 19:29:08 +00:00
Baozeng Ding
4e9cbd8a7c add support for constants
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-13 12:18:35 +00:00
Baozeng Ding
25f17ae463 global variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-07 01:44:39 +00:00
William S Fulton
54b87bdd7d remove extra lookup of directorout typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-05 17:19:29 +00:00
Baozeng Ding
4aa72f9b01 Implement functionwrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-30 07:10:19 +00:00
Mikel Bancroft
88ffb89c2b [allegrocl] Minor tweak to improve wrapping in -nocwrap mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-14 00:35:17 +00:00
William S Fulton
7e8d19cec0 Add the 'notderived' attribute to the javabase and csbase typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 17:58:32 +00:00
Olly Betts
38f00d3544 [Python] Don't attempt to acquire the GIL in situations where we
know that it will already be locked.  This avoids some dead-locks
with mod_python (due to mod_python bugs which are apparently
unlikely to ever be fixed), and results in smaller wrappers which
run a little faster (in tests with Xapian on x86-64 Ubuntu 9.04,
the stripped wrapper library was 11% smaller and ran 2.7% faster).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 09:35:58 +00:00
Olly Betts
084a168a0f printf(string) -> printf("%s", string)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-31 10:25:54 +00:00
William S Fulton
025d4c03c7 Fix #2676738 SWIG generated symbol name clashes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-12 20:41:56 +00:00
Haoyu Bai
5d64541c44 Fix SF#2583160. Make swig_import_helper() in shadow wrapper able to deal with the case that module already imported at other place.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-01 09:37:21 +00:00
William S Fulton
1f69806cbb Fix seg fault wrapping some constant variable (%constant) types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-21 00:56:41 +00:00
William S Fulton
3d05f50eab CFFI - Fix seg faults when for %extend and using statements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 23:55:37 +00:00
William S Fulton
531c4454b8 Fix -co option which broke in 1.3.37 SF #2605955
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 20:55:16 +00:00
William S Fulton
efa11dee52 add new %begin directive for inserting code at top of wrapper file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
William S Fulton
9be7fe899d Add support for %extend and memberin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-13 07:26:06 +00:00
Haoyu Bai
afd67f8c67 Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 14:37:54 +00:00
Haoyu Bai
be7fdab62e Fix SF#2552048. Remove the 'self' parameter in Python proxy code for static member function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 13:38:39 +00:00
William S Fulton
a6adffe4d9 remove debugging output
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-29 21:20:31 +00:00
William S Fulton
90ab280f90 Fix regression introduced in 1.3.37 where the default output directory for target language specific files (in the absence of -outdir) was no longer the same as the generated c/c++ file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-29 19:25:37 +00:00
William S Fulton
22e4cb8e52 Fix classLookup and enumLookup when the global scope operator is used on objects passed by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-28 18:45:13 +00:00
Haoyu Bai
6d2aef67d9 Replaced all [const] String_or_char * to const_String_or_char_ptr, by the following command:
sed -i "s/\(const \)\?String_or_char \*/const_String_or_char_ptr /g" CParse/* Include/* Modules/* Preprocessor/* Swig/*

This is a preparation for moving to new DOH, since for strong typed objects we need the const_String_or_char_ptr class to implicit convert to and from String * or const char *.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-24 13:15:51 +00:00
Haoyu Bai
1bf93d28c4 fix a wrong indent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-16 01:15:46 +00:00
William S Fulton
ff62288c37 Fix segfault when using -perl -v
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-15 07:29:28 +00:00
William S Fulton
d029d0a627 Fix compilation error when using directors on protected virtual overloaded methods reported by Sam Hendley.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-13 07:09:27 +00:00
William S Fulton
b91631c130 Patch #1992756 from Colin McDonald - %contract not working for classes in namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-10 01:15:03 +00:00
Xavier Delacour
6336977350 Fix octave test allprotected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-10 00:29:37 +00:00
William S Fulton
e65ea56530 Fix error display when there is a problem with CCACHE_OUTFILES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-07 00:50:06 +00:00
Olly Betts
79f7900968 Mark SWIGPERL5, SWIGPHP5, and SWIGTCL8 as deprecated in the source
code and remove documentation of them.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-05 22:40:07 +00:00
William S Fulton
5ec2d8c166 All languages now define a macro in the generated C/C++ wrapper file indicating which language is being wrapped, eg #define SWIGJAVA
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 00:38:34 +00:00
William S Fulton
d2f69e6a34 add missing language specific preprocessor define where missing for some languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 23:56:03 +00:00
William S Fulton
cc522323d7 create a common banner header for all target language specific files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 22:56:25 +00:00
William S Fulton
1b485a7ad2 minor fixes from last checkin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-24 14:54:52 +00:00
William S Fulton
da0b517a7f accept unix directory separators on windows for input file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-24 14:50:26 +00:00
William S Fulton
9a94969fdd fix input filename containing a path on windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-24 13:19:55 +00:00
William S Fulton
e6f5cdac9f Fix #2153773 - %nojavaexception - disabling and clearing Java checked exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-23 07:44:59 +00:00
Olly Betts
0a101fba3b [PHP] Fix warnings when compiling generated wrapper with GCC 4.3.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-07 00:38:14 +00:00
William S Fulton
06b2eca75e remove last vestiges of php4 and encourage use of -php rather than -php5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 23:15:20 +00:00
Haoyu Bai
8f84447860 Commited SF#2158938: change all SWIG symbols start with Py to a new name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-03 18:43:44 +00:00
William S Fulton
1c4ec59e45 Apply patch #2143727 for Python from Serge Monkewitz to fix importing base classes when the package option is specified in %module and that module is %import'ed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10960 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-02 20:21:16 +00:00
William S Fulton
d26772917b minor fix to formatting in generated types table
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:30:45 +00:00