Ian Lance Taylor
0577ff2220
[Go] Adjust last patch to avoid write-after-write data race on global
...
variable. Only set the variable if another global variable is true,
but that variable is always false. The effect is that the variable is
never written, but as far as the compiler is concerned it might escape.
2014-10-14 10:05:43 -07:00
Ian Lance Taylor
1226970b9f
[Go] More fixes for Go 1.4. Ensure that values with argout or freearg
...
typemapes escape, and refer to them using local variables loaded at
the start of the function, in case the argout or freearg template
causes a stack copy.
2014-10-11 19:07:14 -07:00
William S Fulton
78b904764a
Merge branch 'diorcety-python_property'
...
* diorcety-python_property:
Changes file entry for Python director property fix
Python: Fix property access with director
Conflicts:
CHANGES.current
2014-10-11 00:22:21 +01:00
William S Fulton
376ebc2d85
Revert "Octave: whitespace/indentation/style cleanup of octave.cxx"
...
This reverts commit 5ac475cbcd .
Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
2014-10-09 19:34:06 +01:00
William S Fulton
23373e9ffd
Revert "Octave: cleanup/restructure library files"
...
This reverts commit bf12d76d03 .
Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
2014-10-09 19:34:02 +01:00
William S Fulton
a9c9c9c848
Revert "Octave: remove unused field SwigOctClass::constructor_doc"
...
This reverts commit afa9affcd9 .
Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
2014-10-09 19:33:40 +01:00
Karl Wette
afa9affcd9
Octave: remove unused field SwigOctClass::constructor_doc
2014-10-05 20:54:20 +02:00
Karl Wette
bf12d76d03
Octave: cleanup/restructure library files
...
- Restructure runtime code into declarations, function
and class definitions, and initialisation code
- Rename internal functions/types to follow SWIG_Octave...
or SwigOct... naming styles
- Style/comment/whitespace cleanups
2014-10-04 19:18:32 +02:00
Karl Wette
5ac475cbcd
Octave: whitespace/indentation/style cleanup of octave.cxx
...
- Used "astyle -A10 -s2 -N -p -H -U -k1" for style cleanup
- Replaced NewString("") with NewStringEmpty()
- Used 'w' instead of 'f' for Wrapper() objects
2014-10-04 13:29:46 +02:00
Yann Diorcet
558af639bd
Python: Fix property access with director
2014-10-01 11:07:02 +02:00
William S Fulton
a06dff17ad
Merge pull request #207 from johan-hake/johanhake/fix-206-swig-relative-import
...
Fix issue with relative import when using single header file import [Python]
2014-09-30 20:22:55 +01:00
Johan Hake
de4f30bd3c
Small fixes to the relative import fix.
...
-- Now the tests actually runs
-- Corrected the syntax for the fix in the yacc file
2014-09-29 17:37:41 +02:00
Ian Lance Taylor
4b64ce71a3
[Go] Adjust generated code to work with upcoming Go 1.4 release.
2014-09-25 12:10:11 -07:00
Ian Lance Taylor
39433f12e4
Fix one case where we test goout rather than has_goout. The effect
...
was to incorrect use a return statement before the goout typemap
code.
2014-09-12 17:46:21 -07:00
Olly Betts
1a99212c2c
[PHP] Add support for specifying any PHP interfaces a wrapped class
...
implements, e.g.: %typemap("phpinterfaces") MyIterator "Iterator";
2014-09-12 12:48:37 -03:00
Ian Lance Taylor
06b1157470
Make sure to give all parameters a local before adding all the new
...
typemaps.
Also mark C functions compiled by 6c and friends as nosplit.
2014-09-10 16:17:54 -07:00
Ian Lance Taylor
acaaa0f31f
[Go] Add goargout typemap.
2014-09-09 11:28:04 -07:00
Ian Lance Taylor
1addbb46a8
[Go] Add imtype, goin, goout, godirectorin, and godirectorout
...
typemaps, to support writing Go code to convert between types.
2014-09-05 17:54:19 -07:00
Olly Betts
926fd75878
Additional fixes for #218 .
2014-09-02 23:12:09 -03:00
Olly Betts
f3a6c55929
[Python] Fix regression in indentation of python code produced with -modern,
...
introduced by changes in #188 . Reported by fabiencastan in #218 .
2014-09-02 02:34:01 -03:00
Olly Betts
255c929c56
Issue an error for unknown SWIG preprocessor directives, rather
...
than quietly ignoring them. Reported by jrhelsey in issue#217.
2014-09-01 00:26:15 -03:00
Olly Betts
14c2cf3407
PHP: Fix memory leak if a director method is passed Null for self
2014-08-29 16:28:00 -03:00
Johan Hake
30e5a79ecb
Fix bug 206 where package information for relative in single file import is not propagated correctly.
2014-08-25 10:09:12 +02:00
Robert Stone
488aed4224
apply SF Patch #350 and add testcase
2014-08-15 21:47:10 -07:00
William S Fulton
69736cc0cb
Tweak generated C# .cs files header
2014-08-04 19:41:38 +01:00
gpetrou
8433539849
Changed CSharp license header to include auto-generated tag so that StyleCop ignores the files.
2014-08-02 08:35:15 +01:00
Ian Lance Taylor
287e84d84c
[Go] Change struct definition to use void *, not uint8, so
...
that the type is recorded as possibly containing
pointers. This ensures that the 1.3 garbage collector
does not collect pointers passed to C++ code.
2014-07-14 08:33:43 -07:00
William S Fulton
83749b3937
Fix expansion of the $parentclassname special variable
...
It incorrectly contains brackets in the expanded name.
Fixes SF Bug 1375.
2014-07-01 20:27:48 +01:00
Olly Betts
8d226e39dc
Merge pull request #188 from jschueller/python_pep8
...
Python PEP-8 conformity
2014-06-10 23:48:38 +12:00
Julien Schueller
6fe71da9fa
Fixed remaining pep8 errors
2014-06-07 13:09:15 +02:00
Jason Turner
fa36b6228e
Fix function naming conflict with class overloads.
...
This fix takes into account the classname while generating overload
handlers.
Example:
If you have two classes:
class A {
public:
void doSomething(int);
void doSomething(double);
};
class B {
public:
void doSomething(int);
void doSomething(double);
};
Before this patch, the overload handlers for A::doSomething and
B::doSomething create conflicting names and function redefinition errors
are caused.
After the patch, the overload handlers are named classname_doSomething
and no longer conflict.
This is might not the best way to implement this, but it
solves a critical problem on large projects, and specifically can affect
operator overloads that are being wrapped.
2014-06-06 18:24:22 +02:00
Julien Schueller
93e06c0e58
Fixed another E231
2014-06-06 14:44:46 +02:00
Julien Schueller
36cac80166
Fixed some pep8 issues E701
2014-06-06 14:27:17 +02:00
Julien Schueller
01a9946455
Fixed some pep8 issues E302
2014-06-06 11:28:00 +02:00
Julien Schueller
0d589349a1
Fixed pep8 issues E701, E203, E231, E261
2014-06-06 11:03:46 +02:00
Julien Schueller
e0c432f70d
Use 4 spaces in emitFunctionShadowHelper for python
2014-06-05 16:51:23 +02:00
William S Fulton
81d023ac05
Merge branch 'wkalinin-csymbols-2' - %extend and nested structs
...
* wkalinin-csymbols-2:
Add runtime test for %extend and nested union
test fixed
%extend symbols for nested structs get into a wrong C symbol table
2014-06-02 07:11:22 +01:00
Karl Wette
6612997b63
Fix bug in DohNewStringWithSize(): guarantee string is nul-terminated
2014-06-01 15:33:26 +02:00
Karl Wette
ecf28da5a9
Octave: remove deprecated -global/-noglobal command-line arguments
2014-05-29 23:42:55 +02:00
Karl Wette
ebe1338015
Octave: whitespace/indentation cleanup of octave.cxx
2014-05-29 23:42:55 +02:00
Vladimir Kalinin
665c4f581b
%extend symbols for nested structs get into a wrong C symbol table
2014-05-28 22:15:50 +04:00
William S Fulton
b531956467
Warning fixes compiling with Visual Studio
2014-05-27 21:55:17 +01:00
William S Fulton
71e72c45ed
Create separate extetnd.c file for handling extensions / %extend
...
This is just a simple code refactor, moving and function renaming to
remove the %extend code out of the parser into its own file now
that it isn't just used in the parser.
2014-05-21 19:16:15 +01:00
William S Fulton
9e4bce051d
Merge branch 'wkalinin-csymbols-1'
...
* wkalinin-csymbols-1:
obscure case workaround in std::set wrapper, where ignored type still need to be processed
global unnamed structures ignored
test added for nested unnamed C struct %extend
%extend for nested unnamed C structs
2014-05-20 18:10:41 +01:00
Oliver Buchtala
0c42158723
Javascript: preparations for using Language::getNSpace().
2014-05-19 00:20:19 +02:00
Vladimir Kalinin
d2ab75f907
obscure case workaround in std::set wrapper, where ignored type still need to be processed
2014-05-19 02:05:23 +04:00
Vladimir Kalinin
3692e175bc
global unnamed structures ignored
2014-05-15 03:13:25 +04:00
Vladimir Kalinin
5d78f14b1c
test added for nested unnamed C struct %extend
2014-05-14 00:56:39 +04:00
Vladimir Kalinin
2aa540b9c0
%extend for nested unnamed C structs
2014-05-14 00:51:36 +04:00
Vladimir Kalinin
55bda53145
C nested classes symbol table should be in global space
2014-05-10 22:16:26 +04:00