Baozeng Ding
38f4edcdac
fix some small thing
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-04 02:20:29 +00:00
William S Fulton
3e1b900946
Add new GPL license headers to all source files in this branch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-06 12:07:52 +00:00
William S Fulton
f2b542d8f4
merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-06 01:19:37 +00:00
Baozeng Ding
9e57bfd84a
removing the file 'builder.sce'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-01 01:41:07 +00:00
Baozeng Ding
c31100860e
add the missing file of matrix2 example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-28 02:32:14 +00:00
Baozeng Ding
215a9c649b
change the format of error (add SciErr)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-26 09:34:30 +00:00
Baozeng Ding
d8a371808a
merge from trunk
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-11 00:59:12 +00:00
William S Fulton
e554146aac
Fix a few inconsistencies in reporting of file/line numberings including modifying the overload warnings to now be two line warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-09 19:34:43 +00:00
William S Fulton
ff1cc536a5
Very minor perf tweak
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-08 18:46:41 +00:00
William S Fulton
83bd820285
Add typemaps used debugging option (-debug-tmused). Fix missing file/line numbers for typemap warnings and in the output from the -debug-tmsearch/-debug-tmused options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-04 19:33:52 +00:00
William S Fulton
6dad327ed3
Fix for %%javaexception and directors so that all the appropriate throws clauses are generated
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11797 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-23 01:05:17 +00:00
William S Fulton
d1ff2c6a8b
Add -debug-tmsearch option for debugging the typemap pattern matching rules
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-20 00:24:34 +00:00
William S Fulton
9354467b87
remove Octave -api option and use new OCTAVE_API_VERSION_NUMBER instead
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-12 21:11:45 +00:00
Olly Betts
bfb09161f7
Eliminate "int error;" declaration from generated PHP director support code
...
if it isn't used. No change in behaviour, and the compiler will just optimise
away the unused variable, but it can cause an "unused variable" warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-10 11:52:29 +00:00
Olly Betts
bcda9644f1
Remove two commented out lines of code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-04 04:56:10 +00:00
William S Fulton
2bd190dbf1
Revert support for %extend and memberin typemaps added in swig-1.3.39. The memberin typemaps are ignored again for member variables within a %extend block. Documentation inconsistency reported by Torsten Landschoff.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-02 00:01:31 +00:00
William S Fulton
bf8ba3bf55
Fix generated quoting when using %javaconst(1)/%csconst(1) for static const char member variables.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-29 01:29:26 +00:00
William S Fulton
1dd50f5ea8
Fix %javaconst(1)/%csconst(1) for static const member variables to use the actual constant value if available
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-26 19:20:31 +00:00
William S Fulton
cd53dc68ee
remove SWIGMAC and SWIGWIN32/SWIGWIN macros which have no effect
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-13 18:34:54 +00:00
Olly Betts
dd5714ea28
[php] Fix place where class prefix (as specified with -prefix)
...
wasn't being used. Patch from gverbruggen in SF#2892647.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-13 07:15:08 +00:00
Joseph Wang
b279cd3dde
add std_map
...
fix compact mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-10 02:32:29 +00:00
William S Fulton
deba0e9285
re-organise symbol debugging options - add in -debug-symbols and -debug-csymbols, and remove -debug-qsymtab
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-07 20:44:20 +00:00
William S Fulton
64d1b6f0c6
Add -debug-symtabs and -debug-qsymtabs options for debugging symbol tables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-04 22:49:39 +00:00
Joseph Wang
e351dfceaf
first pass at making fcompact work with R
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-04 03:48:17 +00:00
William S Fulton
5eeab68e21
Add %csattributes for adding C# attributes to enum values, see docs for example.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-14 19:37:55 +00:00
William S Fulton
4ebb9b0db2
minor rewrite of enum value handling
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-13 20:20:11 +00:00
William S Fulton
3932d02a2a
fix SWIG naming convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
Miklos Vajna
fc52ca3b80
PHP: handle -prefix when checking if a class has been subclassed or not
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-18 16:23:23 +00:00
Baozeng Ding
b6b2fce6ae
merge from trunk
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 16:29:31 +00:00
Baozeng Ding
d567ff5806
clean up some code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 14:47:43 +00:00
Olly Betts
4540717c39
[PHP] Fix to wrap a resource returned by __get() in a PHP object (SF#2549217).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 08:47:30 +00:00
Olly Betts
47e404ba5b
Only have an array for properties in the base class, not in derived classes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 05:24:17 +00:00
Olly Betts
c4f5f22f67
Remove some superfluous "else"s in generated PHP code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 03:19:14 +00:00
Miklos Vajna
8da18d336e
PHP: Optimize the previous commit a bit.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 21:47:24 +00:00
Miklos Vajna
b5c49c20fd
PHP: fix for the valuewrapper_base testcase
...
The problem is the following: before director support, the return class
type of a function was hardwired. That was bad, as factory functions
wanted to instantiate abstract classes, so we switched to detecting the
class type based on the PHP resource type. That was good, but broke the
case when for example
%template(make_Interface_BP) make<Interface_<BinaryPolarization> >;
was used, as the cheap parser had no idea how to turn
'Interface_T_oss__BinaryPolarization_t' to 'make_Interface_BP'.
This patch still uses the resource type detection, but in case that
would result in a non-existing class, we just use the hardwired name.
NOTE: This still does not fix the case when abstract classes are used
with templates.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 21:44:05 +00:00
Baozeng Ding
8ee9175b6e
some fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11589 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 15:56:32 +00:00
William S Fulton
c7b7078dd0
Fix classes not being added into Java method's throws clause when %catches is used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 00:04:29 +00:00
William S Fulton
4516c1d3f3
Fix exception handling when %catches is used in C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 23:22:20 +00:00
Baozeng Ding
f844123608
add 'class' example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 09:29:10 +00:00
Olly Betts
f3d0ebbf18
Refactor the recent support for wrapping static member variables for PHP5 so it
...
works for static members which are themselves classes. With this and the previous
patch, li_std_string now passes and all other tests pass/fail as before.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 05:33:05 +00:00
Xavier Delacour
b81cb3bff9
try not to require -api option in octave
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 01:19:28 +00:00
Olly Betts
ba29cea2b5
Minor cleanups.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 17:01:20 +00:00
Olly Betts
57017bd6bc
[PHP] PHP5 now wraps static member variables as documented.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 16:22:15 +00:00
Olly Betts
f4e3444ae3
Use module name instead of hardcoded "example" in __get().
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11567 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 09:44:15 +00:00
Baozeng Ding
0623fdff8b
add 'funcptr, inctest, integers, preproc, name' testcases and fix the empty testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 09:22:36 +00:00
Olly Betts
e125ce326d
If $c would be used as a parameter name, rename it to $c_ to avoid issues
...
if call-time pass-by-reference is enabled and used.
Use $c instead of $class to keep down the number of "reserved" parameter
names.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 08:04:21 +00:00
Olly Betts
e068305125
If there's no prefix, special case to avoid prepending an empty string.
...
Don't calculate $class in the stdClass case when we don't need it.
Eliminate an unnecessary else.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 07:53:38 +00:00
Baozeng Ding
39f1193f87
add overload_extend and overload_extendc testcases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 15:55:19 +00:00
Miklos Vajna
889b156afd
PHP: fix for the extend_template testcase
...
The fix is not to handle a %template as a rename by reading the class'
sym:name attribute instead of the ctor's name attribute.
This has been broken in r11510.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-12 11:18:58 +00:00
Olly Betts
741b90763b
Fix to work for classes which aren't called "Foo"...
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 14:42:03 +00:00