William S Fulton
e4cdf9d98f
argcargv.i cosmetic updates
2022-05-15 18:32:53 +01:00
William S Fulton
0307d0732c
Typemaps for (int ARGC, char **ARGV) fixup
...
The default typemap should not be in this library file - this is for
users to add in if they want C default argument support.
2022-05-15 18:21:59 +01:00
Erez Geva
b88fe498ca
Fix argcargv.i in Perl5, Tcl, PHP
...
Add missing type map for type check.
Add testing of argcargv.i for Perl5, Tcl, PHP and Ruby.
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
2022-05-11 01:10:12 +02:00
Erez Geva
464d548d71
Add argcargv.i to more languages: Perl 5, Tcl, PHP
...
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
2022-05-06 23:15:06 +02:00
Olly Betts
663299281e
[Tcl] Fix SWIG_AsWCharPtrAndSize() to assign result
...
Fix SWIG_AsWCharPtrAndSize() to actually assign to result variable. It
looks like SWIG/Tcl wide character handling is currently fundamentally
broken except on systems which use wide characters as the system
encoding, but this should fix wrapping functions which take a wide
string as a parameter on Microsoft Windows.
Patch from Omar Medina.
Fixes https://sourceforge.net/p/swig/bugs/1290/
2022-03-08 08:10:46 +13:00
Olly Betts
713438e879
Fix GCC -Wunused warning in generated Tcl wrappers
2022-03-04 12:00:36 +13:00
Olly Betts
b415f566a0
[Tcl] std_vector.i: Remove unneeded \ line joins
2022-02-10 09:56:42 +13:00
Olly Betts
bb15c4eccf
[Tcl] Fix Tcl generic input typemap for std::vector
...
Fixes https://sourceforge.net/p/swig/bugs/1207/
Fixes https://sourceforge.net/p/swig/bugs/1213/
2022-02-10 09:55:58 +13:00
Olly Betts
6f4adde4b4
[Tcl] Fix std_vector typecheck typemaps
...
In some cases the typecheck typemap would try to access the first
element of an empty Tcl list.
Fixes https://sourceforge.net/p/swig/bugs/1309/
2022-02-01 13:09:00 +13:00
Olly Betts
5d0679668d
[tcl] Drop remnants of support for Tcl < 8
...
The documented minimum has been Tcl 8.0 since before the great
merge in 2002.
2022-01-21 15:54:06 +13:00
Dimitris Apostolou
f586d920f7
Fix typos
2021-11-17 07:07:02 +02:00
William S Fulton
52063a732b
Consistent parameter names for std::pair
2019-02-14 22:44:27 +00:00
William S Fulton
6d27ead9c0
Add STL container copy constructors where missing
...
Also provide consistent copy constructor declarations.
2019-02-14 18:53:05 +00:00
William S Fulton
e26f6bb4e2
Add missing typedefs to std::vector + typedef corrections
...
Tests for std::vector of pointers added which check
std::vector<T*>::const_reference and std::vector<T*>::reference
usage which gave compilation errors in Python and Perl which had
specialized these vectors incorrectly.
2019-02-13 22:46:28 +00:00
William S Fulton
a47c2553f5
Add missing typedefs to std::pair
2019-02-13 22:46:28 +00:00
William S Fulton
9dd33e6367
Add missing typedefs to std::map
2019-02-13 22:46:27 +00:00
William S Fulton
6d0c495fd0
Add missing parameter names in STL container wrappers
...
Mostly in STL copy constructors.
Best to have parameter names as they make their way into the wrappers in
some target languages.
2019-02-13 22:45:47 +00:00
William S Fulton
68e86614ff
Create a consistent stl.i library file
...
Same file now for all languages except R which is still missing std_map.i.
Recent Java changes adding in std_set.i removed.
2019-02-12 18:46:05 +00:00
William S Fulton
12eb0f81ae
Fix overloading for non-pointers and NULL - Tcl
2018-12-29 14:55:43 +00:00
William S Fulton
18f433d862
Tcl swig_const_info - use const char *
2018-10-22 08:19:50 +01:00
William S Fulton
ca287ae13b
Add support for non-default compare template argument in std::map wrappers
2018-10-09 19:44:00 +01:00
William S Fulton
3915e7bd08
Remove final remnants of GCJ - jstring.i
2018-06-15 06:57:53 +01:00
luz.paz
60dfa31a67
Misc. typos
...
found via `codespell` and `grep`
2018-05-17 10:04:23 -04:00
Olly Betts
5a9422d980
Remove GCJ support
...
GCC7 dropped GCJ.
Closes https://sourceforge.net/p/swig/bugs/823/
2017-10-09 08:32:01 +13:00
Olly Betts
90f9117e10
Fix various comment and documentation typos
2017-08-13 18:04:33 +12:00
Olly Betts
23c0865831
SWIG_Tcl_ObjectDelete: Fix potential NULL pointer dereferences
2016-12-13 12:19:50 +13:00
Olly Betts
a5a6da9547
Fix comment typo
2016-12-13 12:19:09 +13:00
Olly Betts
971b94f5fe
Remove dead assignment
2016-12-13 11:29:30 +13:00
Olly Betts
2e98fddd78
Remove pointless casting away of const
2016-12-13 09:34:48 +13:00
Olly Betts
33c58818cd
Suppress unused parameter warning properly
...
Use SWIGUNUSEDPARM rather than assigning a dummy value to the parameter
(which then causing warnings about an assignment whose value is never
used.
2016-12-13 09:33:00 +13:00
Alec Cooper
4e2fc7d115
Don't use long long if it isn't available
...
Adds preprocessor checks to avoid defining functions that use long long if it isn't available
Effects the following languages: javascript, octave, perl, python, r, ruby, tcl
2016-01-06 16:52:37 -05:00
William S Fulton
e917636575
Tcl fix when using -Wmissing-field-initializers warnings
...
Only fixed for Tcl >= 8.5 as prior to this version the Tcl_HashTable structure
changed a few times.
2015-12-19 16:21:23 +00:00
William S Fulton
0a4b50162d
Remove author names - they are in the COPYRIGHT file
2014-06-24 18:56:52 +01:00
Karl Wette
d5b765d388
Whitespace cleanup of all Makefiles*
...
- some of the %.clean rules in the test-suite Makefiles were using a single tab
as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
William S Fulton
0d9a8721f4
Move some header file includes into fragments for UTL languages
2014-02-21 19:02:14 +00:00
William S Fulton
bd5c340062
Add <string> fragment
...
Removes <string> include specifically for clang
Cuts down on duplicate #include <string> in general
2014-02-15 23:30:14 +00:00
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
d0cb2b73db
Remove X11 detection during configure
...
X11 is not used anywhere.
2013-09-18 00:40:24 +01:00
William S Fulton
e805d5f925
Merge branch 'master' into gsoc2009-matevz
...
parser.y still to be fixed up
Conflicts:
Doc/Devel/engineering.html
Examples/Makefile.in
Lib/allegrocl/allegrocl.swg
Lib/csharp/csharp.swg
Lib/csharp/enums.swg
Lib/csharp/enumsimple.swg
Lib/csharp/enumtypesafe.swg
Lib/java/java.swg
Lib/python/pydocs.swg
Lib/r/rtype.swg
Source/Include/swigwarn.h
Source/Modules/octave.cxx
Source/Modules/python.cxx
Source/Modules/ruby.cxx
Source/Swig/scanner.c
Source/Swig/stype.c
Source/Swig/swig.h
configure.ac
2013-01-28 07:01:37 +00:00
William S Fulton
ac74c90fb0
Add rvalue reference typemaps
2013-01-24 20:27:29 +00:00
William S Fulton
142f1e72bb
Fix some language's std::map wrappers to recognise difference_type, size_type, key_type and mapped_type.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-15 19:51:06 +00:00
Olly Betts
88d540683e
[Tcl] Fix variable declarations in middle of blocks which isn't
...
permitted in C90 (issue probably introduced in 2.0.3 by patch #3224663 ).
Reported by Paul Obermeier in SF#3288586.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-18 04:24:19 +00:00
Olly Betts
b0ffa0b48f
Fix comment typos
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-03 13:13:44 +00:00
William S Fulton
f35dd29dff
Apply #3300072 from Christian Delbaere to fix multiple module loading not always sharing variables across modules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-17 18:12:53 +00:00
William S Fulton
c871172975
Apply patch #3284326 to fix some compiler warnings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-11 23:04:28 +00:00
William S Fulton
f1234aae42
Cosmetics - Fix bracket matching
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-09 23:48:19 +00:00
William S Fulton
60a1c5eed3
Apply patch 3224663 for Tcl - NULL value fixes and performance improvements for classes with many methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 18:57:42 +00:00
William S Fulton
964382336e
remove std::map specializations - not needed since the typemap matching rules were changed to follow type deducation used in template specialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-04 20:37:20 +00:00
William S Fulton
bdb136d611
Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00