Commit graph

74 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
William S Fulton
3f714e1096 remove gifplot example from build
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:29:39 +00:00
William S Fulton
aa61c716a8 Stop generating uncompileable code when using nested template classes in functions. Replace SWIGWARN_PARSE_NESTED_CLASS with SWIGWARN_PARSE_NAMED_NESTED_CLASS and SWIGWARN_PARSE_UNNAMED_NESTED_CLASS for named and unnamed nested classes respectively. Named nested class ignored warnings can now be suppressed by name using %warnfilter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-12 19:47:04 +00:00
William S Fulton
678abc58fb Fix seg fault when using a named template instantiation using %template(name) within a class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11711 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-10-23 05:41:33 +00:00
Miklos Vajna
0fa227ea83 PHP: fix for the director_using testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-28 11:47:36 +00:00
Olly Betts
c83f80c061 Remove duplicate definitions of WARN_PHP_MULTIPLE_INHERITANCE and
WARN_PHP_UNKNOWN_PRAGMA which were carefully providing backwards compatibility
for WARN_PHP4_MULTIPLE_INHERITANCE and WARN_PHP4_UNKNOWN_PRAGMA until PHP4 was
clobbered to PHP with search and replace hammer.  This has now been broken in
at least one release, so we'll just have to give up on trying to be helpful to
existing users.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 05:00:16 +00:00
William S Fulton
06b2eca75e remove last vestiges of php4 and encourage use of -php rather than -php5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 23:15:20 +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
Olly Betts
7dfd9aae31 WARN_* constants are user visible, so keep existing WARN_PHP4_* for
backward compatibility, but add preferred forms WARN_PHP_* and use
these ourselves.

Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx.
 
Add typemaps for const reference so Examples/test-suite/apply_signed_char.i
works.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:09:56 +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
William S Fulton
3fd28bf45c Correct behaviour for templated methods used with %rename or %ignore and %template()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-17 20:42:19 +00:00
Dave Beazley
1db75e417b Changed Header to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:13:00 +00:00
John Lenz
6dda6f8321 Remove cvsignore files: this is stored on svn:igonre property now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +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
007af64690 Define WARN_PHP4_UNKNOWN_PRAGMA.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-08 18:14:52 +00:00
William S Fulton
807ee96595 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:19:18 +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
cb80d44fa6 avoid assert when finding a recursive scope inheritance, emit a warning in the worst case, reported by Nitro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 22:13:37 +00:00
Marcelo Matus
ba1e3f9ee3 add fragment warning and fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:22:13 +00:00
Marcelo Matus
ab0b0ece71 fix typos in names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 06:53:36 +00:00
Marcelo Matus
aca35dbcde add %typemap(LANG,..) warning 1387184
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 19:48:55 +00:00
Marcelo Matus
6a79fef6f1 add new warnings for possible leaks with the SWIGTYPE*/& typemaps and using 'ptr/refs' with directorout types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:37:41 +00:00
Marcelo Matus
723281a823 generate implicit copyctor, add -nocopyctor, and clarify the -nodefault, -nodefaultctor, -nodefautldtor options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 06:26:26 +00:00
Marcelo Matus
825a0e2685 add code for #errors reported as #warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-05 22:43:37 +00:00
William S Fulton
8394fb8dff Portability warning for files which will overwrite each other on case insensitive file systems such as FAT32/NTFS.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-09 22:57:57 +00:00
Marcelo Matus
4fc70bb9a9 add cpp warning and typecheck undef codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7646 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-13 09:21:55 +00:00
William S Fulton
2be8c7a68e php4 warning added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 11:38:02 +00:00
William S Fulton
cff2f67179 The default is now to not generate an additional method declaration when a method is declared with an extern. Use -addextern option to recreate original behaviour (new commandline option), with -noextern now redundant.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-27 20:39:20 +00:00
William S Fulton
c2e9c01ab1 Scott Michel director patch, typemap consolidation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 22:11:06 +00:00
William S Fulton
ab1e0a1c26 oops, resurrected warning 470, but with a slightly better name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 21:49:49 +00:00
William S Fulton
39843efba5 director warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:54:44 +00:00
William S Fulton
bac8f43f79 C# exception handling improvements - they are robust and don't leak anymore. Requires typemap modifications using attribute canthrow in any unmanaged code typemaps that throw an exception and excode attribute in csout and csconstruct typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:44:32 +00:00
William S Fulton
eaeada5bcc C# and Java construct typemap additions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:27:11 +00:00
Marcelo Matus
0ac8253c3f fixes for templates and template default args, cosmetics, and other fixes for OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 02:12:05 +00:00
Marcelo Matus
c98340f0a7 fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
37c727888b fixes for operator*()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 10:20:05 +00:00
Marcelo Matus
82648b1d25 add proper deprecated code for %name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-16 06:32:26 +00:00
Marcelo Matus
114c703acd fix director + abstract + constructors, reported by Brian Kelley
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 07:25:42 +00:00
William S Fulton
5a6fa3c074 Bill Clarke patch: fix to ensure SWIGIMPORT always defined for %import and new warning when using -importall and -includeall together
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:35:05 +00:00
William S Fulton
3d78f49c7b Java and C# typemap changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:30:15 +00:00
Henning Thielemann
39d92e49b2 added basic Modula-3 support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-19 11:45:29 +00:00
William S Fulton
72618a43fb Overloading fixes for when methods cannot be disambiguated.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-12 21:48:55 +00:00
Marcelo Matus
74d6f1eb43 Added the warning code
WARN_PARSE_REDUNDANT          322

similar to the g++ -Wredundant-decls flag.

This recovers the warnings that now are not been reported by
the original code

   WARN_PARSE_REDEFINED          302

Redundant example:

   int foo(int);
   int foo(int);

Redefined example:

   int foo(int);
   double foo(int);


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 08:16:53 +00:00
William S Fulton
7d6858ce0f Covariant return type warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:47:21 +00:00
Dave Beazley
08f8a36e16 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-20 02:49:12 +00:00
William S Fulton
7ee01311b2 typemap name changes:
inv => directorin
outv => directorout
argoutv => directorargout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 23:52:28 +00:00
William S Fulton
eeca9ccf6a directorin typemap renamed javadirectorin
directorout typemap renamed javadirectorout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 16:13:19 +00:00
William S Fulton
f3916c3687 java director warning changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 23:48:02 +00:00
William S Fulton
a562a53bcb Java directors implementation contributed by Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:26:29 +00:00
William S Fulton
72b7dccc08 C# warning correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:55:33 +00:00