Commit graph

200 commits

Author SHA1 Message Date
William S Fulton
3974c39b69 Perl and vc++ warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 18:37:46 +00:00
William S Fulton
564fdbc5a7 more Perl namespace pollution workarounds
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 14:12:00 +00:00
William S Fulton
22dd2292ca Fix for compiling as C code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 16:58:51 +00:00
William S Fulton
8f8804b7a1 Fix corner case marshalling of doubles - errno was not being correctly set before calling strtod - patch from Justin Vallon
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-17 19:10:14 +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
William S Fulton
719cfe68bf add some useful info for assert around SWIG_CAST_NEW_MEMORY
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-07 06:17:40 +00:00
Olly Betts
fddbb30848 Revert removal of assertion.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-03 11:31:39 +00:00
William S Fulton
6edbe9cdc2 extra white space helps disambiguate the expression which some compilers/tools complain about - patch from David Fletcher
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-29 10:09:01 +00:00
Olly Betts
415d2b6fe9 [Perl] Remove bogus assertion (patch from David Fletcher).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-29 06:53:25 +00:00
Olly Betts
2b4c962359 [Perl] Add "#undef do_exec" to our clean up of Perl global namespace pollution.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 12:06:08 +00:00
William S Fulton
10edc69383 SWIG_ConvertPtrAndOwn() into the runtime for Perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 21:05:06 +00:00
Robert Stone
1dc5175753 reference.i improvements, testcase coverage. language specific interface support for test-suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-05 18:47:30 +00:00
Robert Stone
5f1e95ff67 bugfix for Lib/perl5/reference.i (test-suite enhancements coming soon).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-02 21:13:03 +00:00
Robert Stone
6574067b72 Fix SF#2564192
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-05 15:47:42 +00:00
William S Fulton
b054bd4129 couple of minor Perl fixes from Ling Li
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 00:13:19 +00:00
William S Fulton
0f89bff13a Compiler warning fix in Perl out typemap for std::vector
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 00:11:51 +00:00
William S Fulton
dfd94424ba remove SWIG_TypeCheck_Template so that the code within it is debuggable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 17:18:38 +00:00
William S Fulton
86913e26e3 Fix another perl global namespace pollution
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10803 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-01 20:00:28 +00:00
William S Fulton
9c323f4a70 Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 20:02:13 +00:00
Jason Stewart
7c15385e4e modified to match current perl5.cxx capabilities
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:22:02 +00:00
Olly Betts
b85052384c Remove a pointless cast which drops const and causes a warning with certain GCC
warning flag settings.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-31 04:52:32 +00:00
William S Fulton
30c4214ece Fix #1904537 Swig causes a Perl warning 'x used only once' in Perl 5.10 reported by Ari Jolma
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-29 23:42:52 +00:00
William S Fulton
a91e4906b5 Add newmemory parameter for SWIG_TypeCast
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 00:35:11 +00:00
William S Fulton
54e6571299 Backed out #1798728 due to regression pointed out by Josh Cherry on swig-user
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 21:51:10 +00:00
William S Fulton
0d799435b8 Fix #1798728 - numbers can be passed to functions taking char *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 19:26:22 +00:00
William S Fulton
5bbdad6a30 fix comments about fragments - noticed by Josh Cherry
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-20 21:45:06 +00:00
William S Fulton
6ac7bcba31 Fix static extern C compilation errors for Perl C++ wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-19 21:31:18 +00:00
William S Fulton
92b6b2f8c0 Clean up warnings compiling on Solaris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 00:28:25 +00:00
William S Fulton
c5fae8d592 Use more efficient SvPV_nolen(x) instead of SvPV(x,PL_na)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 16:52:49 +00:00
William S Fulton
6456ed936d VC++ warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10032 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 22:09:24 +00:00
Olly Betts
87e64a237b [perl5] Clear errno before calls to strtol(), strtoul(), strtoll()
and strtoull() which we check errno after to avoid seeing a junk
value of errno if there isn't an error in the call.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-19 03:35:49 +00:00
William S Fulton
9c65c6b044 Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:43:55 +00:00
Olly Betts
e2d7f303b8 [perl5] Use sv_setpvn() to set a scalar from a pointer and length
- patch from SF#174460 by "matsubaray".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9937 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 23:24:11 +00:00
William S Fulton
a122368370 Apply patch #1771410 from Wade Brainerd to fix typedef XS(SwigPerlWrapper) in perlrun.swg for ActiveState Perl build 822 and Perl 5.8.9 and 5.10 branches.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:54:42 +00:00
John Lenz
1396dffb68 add SWIG_fail to SWIG_expcetion macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-25 17:40:56 +00:00
Olly Betts
4e9e588769 Fix for handling strings with zero bytes from Stephen Hutsal.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 08:59:19 +00:00
Olly Betts
a84b5110d7 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:48:20 +00:00
William S Fulton
fb15c9401e More namespace pollution fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-13 19:29:59 +00:00
Marcelo Matus
20339de8b4 more fixes/tests for empty strings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 04:45:41 +00:00
Marcelo Matus
52cfa52b83 fix docs, path provided by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:40:20 +00:00
Marcelo Matus
54eb801392 fix overloading between unsigned long long and strings, as reported by Tim Lee.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 20:11:52 +00:00
William S Fulton
49be05f4fd Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Marcelo Matus
660dcb58a5 add std::vector<T*> specialization to fix #1386582
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 17:58:47 +00:00
Marcelo Matus
77473c4ba2 apply patches for std::string/std::vector provided by Anthony Heading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 15:17:45 +00:00
Luigi Ballabio
87061c3272 Fixed misspelled special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 10:08:15 +00:00
Marcelo Matus
44264e5544 add the factory library for UTL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:42:20 +00:00
Marcelo Matus
b0cf74124e uniform the location of the includes and fixes, now in perlhead.swg as rubyhead.swg and pyhead.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 20:33:52 +00:00
William S Fulton
e85c27328e More and better fixes for older versions of perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 02:21:26 +00:00