William S Fulton
bcb7aee022
Merge branch 'master' into gsoc2009-matevz
...
Conflicts:
Examples/Makefile.in
Examples/guile/Makefile.in
Lib/php/php.swg
Makefile.in
Source/CParse/parser.y
configure.ac
2013-10-10 07:26:09 +01:00
William S Fulton
738cc36aab
Rename all C++0x to C++11 and cpp0x to cpp11
2013-10-07 20:37:00 +01:00
William S Fulton
3fcbb40af9
Remove incorrectly and newly introduced assert
...
Was failing in li_boost_shared_ptr.i for some languages. A similar
testcase has been added into naturalvar_more.i.
2013-10-05 02:16:02 +01:00
William S Fulton
e186d2176a
Fix %naturalvar and templated methods using enums
...
%naturalvar was not being picked up - use the symbol table instead for
looking up the feature.
use_naturalvar_mode() has been moved to Language class (not strictly necessary though)
2013-10-04 23:08:33 +01:00
William S Fulton
c4d40c7b64
PHP directors - generate call_user_function on one line
2013-10-01 22:13:57 +01:00
Olly Betts
12708c9241
Fix typos
2013-09-25 17:29:33 +12:00
William S Fulton
f01b52c44c
Tweak 'make beautify-file'
...
unix2dos and dos2unix were renamed to todos and fromdos - they aren't
really needed (on Linux anyway), so removed.
2013-09-15 01:35:28 +01:00
Sylvestre Ledru
7a88729c87
Remove trailing spaces in the generated code.
...
No functional changes
2013-09-13 10:02:39 +02:00
Artem Serebriyskiy
c3f3880d0c
Lua static member access improvements.
...
1) Static members and static functions inside class can be accessed as ModuleName.ClassName.FunctionName (MemberName respectively). Old way aka ModuleName.ClassName_FunctionName still works.
2) Same goes for enums inside classes: ModuleName.ClassName.EnumValue1 etc.
3) More 'runme' tests for lua + modifications to existing tests to test new changes.
Code is loosely based upon python implemenation of the same thing.
Patch #62 .
2013-09-12 21:32:26 +01:00
William S Fulton
67659773cc
Remove some Java references from C# module
2013-09-02 19:14:20 +01:00
Miles Bader
c746ae7a0f
Include Lua error locus in SWIG error messages
...
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
William S Fulton
f55ff50dd5
Skip the UTF-8 BOM of including files.
...
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.
Closes #75 .
2013-08-29 19:22:50 +01:00
William S Fulton
b58dabced9
%implicitconv is improved for overloaded functions.
...
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
Olly Betts
628b4710e5
[Python] Fix clang++ warning in generated wrapper code.
2013-08-24 08:40:08 +12:00
Olly Betts
b477cb66be
Use offsetof() rather than icky homemade equivalent
2013-08-24 08:34:50 +12:00
William S Fulton
d0af4f50d3
Add %pythonbegin directive.
...
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
Olly Betts
d3252bbf7f
Fix comment typo
2013-07-02 13:22:35 +12:00
William S Fulton
779dc402b6
Fix a const_cast in generated code that was generating a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
...
Affects Python, Ruby, Ocaml.
Based on SF patch #341 .
2013-07-01 20:00:12 +01:00
Karl Wette
0d05b2a2d1
Octave: make texinfo strings static (internal linkage)
2013-06-13 17:46:34 +02:00
Olly Betts
918c64af84
Fix comment typos
2013-06-04 12:44:28 +12:00
William S Fulton
0f1e3da5de
Fix the high passed to PyTuple_GetSlice in varargs wrappers.
...
Harmless bug as slices can take any size larger than the actual size for
the high value. Reported in SF Bug 1326.
2013-05-23 21:25:41 +01:00
William S Fulton
3f9d7ed416
Minor fixes after Coverity analysis
2013-05-16 08:13:56 +01:00
William S Fulton
9203c6d5c6
Remove deprecated Guile options from help.
...
Also use wording for deprecated options warning which is consistent with
elsewhere.
2013-04-29 08:02:18 +01:00
Geert Janssens
ce14abaf61
guile: emit warning when -gh or -scm option are used
2013-04-28 22:06:28 +02:00
Geert Janssens
b819d2a91e
Drop guilegh interface
...
All of guile's interface files now use the scm interface.
This should not affect any users. Swig generated code
using the scm interface can be mixed with gh interface
using user code.
It does simplify maintenance of the guile swig code though.
2013-04-28 22:06:24 +02:00
William S Fulton
99231457db
Fixes for warnings issued by clang
2013-04-28 17:59:40 +01:00
Yung Lee
6e06b50adf
Remove non-ascii characters at a comment line in d.cxx that trouble VC++
2013-04-22 18:28:26 +01:00
William S Fulton
695de9ee0e
Tcl: change differently named constructors behaviour.
...
Where overloaded constructors are given different names, a class is constructed by calling
the name of the first constructor wrapper parsed rather than the last one parsed.
Behaviour is not perfect as either name could be used, it is just consistent with Python.
Fixes Examples/tcl/operator example - broken in 0e57357472
2013-04-19 22:47:27 +01:00
William S Fulton
439a353a36
Document patch #33 from previous commit and complete run time tests
2013-04-18 23:20:48 +01:00
Jesus Lopez
9be3235988
Support $descriptor() macro in fragments
...
Closes #36
2013-04-18 23:04:07 +01:00
William S Fulton
857e447654
Fix syntax error when preprocessor macros are defined inside of enum lists
...
Fixes SF Bug 428, Patch 333
2013-04-18 22:48:42 +01:00
Karl Wette
2a3e687c19
Octave: fix bugs in output of cleanup code
...
Closes #35
2013-04-17 22:23:27 +01:00
William S Fulton
296498c159
Cosmetic tidyup in smartptr feature code and document smartptr fix in previous commit
2013-04-17 21:56:23 +01:00
Brant K. Kyser
25eaee49f3
Add check for smart pointer type in generated code for director connection. This fixes a crash in the generated code caused by the dynamic_cast returning 0 because the specified types are incorrect for smart pointer types.
...
Add runtime test to the C# test suite's director smartptr test that demonstrates crash in generated code when directors are used with smart pointer types.
Closes #34
2013-04-17 21:55:11 +01:00
Karl Wette
611acbf944
Add -MP option for generating phony targets for all dependencies
...
- Modelled on similar option in GCC
2013-04-15 22:17:48 +02:00
Olly Betts
24ff00690f
Use ZVAL_STRINGL instead of ZVAL_STRING to set funcname as we know the length at swig-time
2013-04-14 08:03:46 +12:00
Olly Betts
a16dc29046
Removed unused Printf parameter
2013-04-14 06:14:47 +12:00
William S Fulton
e182b4844c
Fix seg fault in SWIG using directors when class and virtual method names are the same except being in different namespaces when the %nspace feature is not being used.
2013-03-19 19:50:44 +00:00
William S Fulton
9d0b20916f
Add ability to suppress some director warnings by their method name, not just the containing class name
2013-03-19 19:50:43 +00:00
Karl Wette
52c754a22d
Minor fix to Octave autodoc generation for functions returning structs
...
Patch #27
- see also git commit 72ffdb930d
2013-03-09 00:10:41 +00:00
William S Fulton
fdea8a8f51
More useless code removal as detected by scan-build (LLVM/Clang)
...
using scan-build ./configure && scan-build make
2013-03-08 22:19:07 +00:00
Sylvestre Ledru
e0b14786d6
Fix some useless code detected by scan-build (LLVM/Clang)
2013-03-08 20:53:18 +00:00
William S Fulton
cfd8497f3e
Cosmetic changes in SwigType_add_qualifier
2013-02-21 07:00:25 +00:00
Karl Wette
ee2b46abe0
Fix SWIG's handling of qualified (e.g. const) variables of array type
2013-02-19 20:05:46 +00:00
Karl Wette
9d330a9970
Fix qualifier parsing in SwigType_add_qualifier()
...
- use list to ensure qualifiers are unique and sorted
- now allows 'qual' to contain multiple qualifiers
2013-02-19 20:05:45 +00:00
William S Fulton
d1b40b468b
Fix C code where a typedef name was used for constructor and destructor names in %extend. Deprecate use of typedef names for constructor and destructor names going forwards.
2013-02-18 22:40:42 +00:00
Karl Wette
70cd52f44d
Use "(void)" instead of "()" when wrapping no-argument extension functions.
2013-02-18 22:39:39 +00:00
William S Fulton
b80f4dc5e2
Restrict the name used in %extend to be just the struct/class name and not a typedef to a class/struct. Typedefs were only partially working anyway. Anonymous struct typedefs excluded. Deprecate with a warning for now.
2013-02-18 19:53:37 +00:00
William S Fulton
8778724768
Add support for extern "C++" - no warning should be issued as was previously occurring
2013-02-08 18:55:16 +00:00
William S Fulton
e44656cfe5
Add support for extern "C" thread_local
2013-02-08 18:45:29 +00:00