Commit Graph

93 Commits

Author SHA1 Message Date
William S Fulton cb64f65bae SWIG license change - Source moves to GPLv3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
Olly Betts c1399658ff [Perl] Don't specify Perl prototype "()" for a constructor with a
different name to the class, as such constructors can still take
parameters.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-15 07:43:16 +00:00
William S Fulton efa11dee52 add new %begin directive for inserting code at top of wrapper file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
William S Fulton ff62288c37 Fix segfault when using -perl -v
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-15 07:29:28 +00:00
Olly Betts 79f7900968 Mark SWIGPERL5, SWIGPHP5, and SWIGTCL8 as deprecated in the source
code and remove documentation of them.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-05 22:40:07 +00:00
William S Fulton 5ec2d8c166 All languages now define a macro in the generated C/C++ wrapper file indicating which language is being wrapped, eg #define SWIGJAVA
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 00:38:34 +00:00
William S Fulton cc522323d7 create a common banner header for all target language specific files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 22:56:25 +00:00
William S Fulton 533ccb5097 deprecate use of include path to find the input file for behaviour that is compatible with other compilers and interopability for ccache
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-22 12:29:41 +00:00
William S Fulton 6fb0f48935 customised ccache support: read the CCACHE_OUTFILES env variable and if exists, the names of all generated files are written to the filename specified in the env variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 12:51:45 +00:00
Robert Stone 2ee3d98d79 rollback 10737:10749, this work is better left on a branch until it is
in support a significant feature enhancement.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-19 07:09:29 +00:00
Robert Stone 3ecb83fc0b usage_func() fix + CHANGES.current entry to explain my past few commits.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-09 23:57:55 +00:00
Robert Stone 93652cdc70 moves perl space constructor fixups into wrapper code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-09 04:08:26 +00:00
Robert Stone 2728e5a606 initial steps to clean up perl5 class methods (primarily constructors).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-08 03:10:55 +00:00
Robert Stone b9a88dec5a hoist globals to local scope where trival.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-07 06:28:13 +00:00
William S Fulton dfcb1640bf Remove old swig-1.1 Swig_typemap_lookup function. Rename Swig_typemap_lookup_new() to Swig_typemap_lookup()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-15 21:18:44 +00:00
William S Fulton 336b50b43d Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
Jason Stewart bea5f1d47b package option for perl5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 13:12:45 +00:00
William S Fulton 9976dc9d75 Add allprotected mode for wrapping protected members when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 20:41:01 +00:00
Olly Betts dda6df974f Fix bogus vim modeline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 11:30:21 +00:00
Jason Stewart 5d625e950d committed patch for bug SWIG-1937031 ; moved operator_overload_break back to working tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-08 04:04:37 +00:00
Jason Stewart 8c7d3c7ae3 commented out operators: '=', '&', '|' because they have no tests ; added check for reversed arguments in subtraction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:31:41 +00:00
William S Fulton 2bef4d6b0c Set wrap:name for variables for use in special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 15:29:55 +00:00
William S Fulton 373e85a713 Fix static extern C compilation errors for Perl C++ wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-19 21:30:57 +00:00
William S Fulton fe042d2ebc Replace cvs $Header$ with svn $Id$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:42:11 +00:00
John Lenz fb51964d01 Fix a bunch of minor bugs found by Coverity scanner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 02:55:27 +00:00
Olly Betts 91f0fcb0ba Fix bad output in "unsupported" message for -perl -package and -perl -interface
caused by unescaped "%module" in Printf format string.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 22:36:42 +00:00
Dave Beazley b00cef436b API cleanup (Parms)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-10 23:43:07 +00:00
William S Fulton 5cd992dade %extend for static member varibles work in progress ... more consistent code across different language modules and memory leak fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:12:25 +00:00
William S Fulton 97b1fbaa02 -fakeversion appears in generated files. Made comment with version number at top of generated files consistent.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-15 23:45:47 +00:00
William S Fulton aa04c4c057 beautify/format source code with gnu indent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
Olly Betts 675e83dc22 Just generate the wrapper with items and ST(%d) rather than trying to
search and replace argc and argv[%d] afterwards.  Fixes bugs
#1529249, #1566718 (and really fixes #1228480).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 02:07:19 +00:00
Olly Betts 647678be07 Apply patch #1561898 - use the mangled C name in $action when using
feature shadow.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 02:32:45 +00:00
Olly Betts 8904cc86c1 Use DOH String instead of static char buffers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:10:49 +00:00
William S Fulton 6c9455d440 Daniel Moore patch - more operator overloading support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-12 21:07:38 +00:00
William S Fulton a38a0ee182 operator <= >= patch from Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-06 08:22:13 +00:00
William S Fulton 5d261cff61 operator overload fix patch from Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-05 21:00:27 +00:00
William S Fulton 797317163a cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:02:54 +00:00
William S Fulton 7f74b8e7a3 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@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus e9877c5ca7 fix gcc warning reported by R. Bernstein
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 21:10:42 +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
Marcelo Matus 16d3c24fa2 more fixes for old perl versions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8777 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-10 20:37:20 +00:00
Marcelo Matus 403e9ebc9e fix unused 'fail:' label warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 04:08:56 +00:00
Marcelo Matus 41beef4aba add fail: label for the get methods always, just in case someone write a 'varout' typemap that need it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 22:56:15 +00:00
Marcelo Matus 2396ded0f4 fix varout typemaps for swigtypes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 21:31:19 +00:00
Marcelo Matus 0f7b502a3b fix -external-runtime and warning arounds in subversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 08:37:53 +00:00
Marcelo Matus c198225f9d add missing goto fail when needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 04:14:57 +00:00
Marcelo Matus 3b866d286b implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:36:13 +00:00
Marcelo Matus 9d50efa32e fix perl C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:53:15 +00:00
Marcelo Matus 929428bd3f finally, fix the croak/Nullch issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 15:56:57 +00:00
Marcelo Matus 38c8cf2cb8 add __not__ and test the new bool typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 15:53:23 +00:00