Commit graph

61 commits

Author SHA1 Message Date
Marcelo Matus
bd7b3fcb1d finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
William S Fulton
6247abbd01 Better error message displayed when file cannot be opened
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +00:00
William S Fulton
15150feff5 Support for Lua added - patch from Mark Gossage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:38:34 +00:00
William S Fulton
11dc59b22e 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@7318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-27 20:39:20 +00:00
William S Fulton
c4352f8bb7 typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-09 18:39:43 +00:00
William S Fulton
385eef2af5 copyright year update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:48:09 +00:00
William S Fulton
34a035e3f1 template ext mode on for all languages, not just Python now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7130 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-01 19:46:06 +00:00
Marcelo Matus
40d483208a adding -notemplatereduce option + docs for -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-17 06:02:29 +00:00
Marcelo Matus
fd947483fa fix seg fault when using bad runtime file, such as a dir
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-11 08:42:16 +00:00
Marcelo Matus
42381e5888 following Bill's labels patch, we add swiglabels.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-28 23:59:12 +00:00
John Lenz
ef58056ffd Add support for the -external-runtime argument and update all language modules to use it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-23 22:40:51 +00:00
William S Fulton
e0b0628804 swig -version prints to stdout not stderr now (won't affect the autoconf macro version detection)
swig -help prints to stdout not stderr now


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:02:44 +00:00
Marcelo Matus
5b89ab2e60 patch #1069631 to disable cpp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 01:37:29 +00:00
Marcelo Matus
899c08b740 generate checkout message in verbose mode, and in stdout, no stderr, since is not an error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:47:13 +00:00
Marcelo Matus
2aecc01c24 fix -director option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:54:16 +00:00
William S Fulton
028a6e1f73 Dependencies patch from Fabrice Salvaire
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6675 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 23:20:24 +00:00
John Lenz
53132a810f Revert guile_gh.swg and guile_gh_run.swg to not use new runtime system.
Added global variable to hold status of -runtime,-c,-noruntime flag for use
  in guile gh module mode.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 22:06:53 +00:00
Marcelo Matus
1ac5674df0 add templatereduce option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-28 23:49:41 +00:00
Marcelo Matus
8e9b8e584a fix -oh/-o/-noh, tested before in the wrong directory
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6488 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-23 05:28:04 +00:00
Marcelo Matus
e96dd809d8 add -oh option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:31:27 +00:00
John Lenz
4645346381 Removed ability to share type information by C linking
All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
Marcelo Matus
c1ed709013 fix #if __cplusplus problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 16:51:22 +00:00
Marcelo Matus
677116eaa4 add new -features option, fix SWIG_FEATURES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 21:02:50 +00:00
Marcelo Matus
0ca860773f fix minor problem when defining __cplusplus as 1, empty definition is ok.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:09:29 +00:00
Marcelo Matus
7cc6470fe6 added the -I- option and %include <file>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-17 05:55:43 +00:00
William S Fulton
cf5edcc6da copyright update and typo in -help
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 22:14:25 +00:00
William S Fulton
afecabc4f3 XML patch from Robin Dunn adds -dump_xml and -xmlout <file> for generating XML of post processed parse tree
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:53:23 +00:00
Marcelo Matus
1eba66b31b fix java reg. tests and add -directors flag
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 05:55:35 +00:00
William S Fulton
238e948bbe Eric Sunshine patch - Mods to work on NextStep
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 22:42:18 +00:00
William S Fulton
8377edf02a Various warning fixes for .NET 2003 cl /W4 to work barring one warning and for gcc -ansi -Wall -pedantic to be warning free:
const fixes and function prototype declarations matching the definition etc


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 22:46:07 +00:00
Marcelo Matus
aa8b13473e 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@5634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 08:16:53 +00:00
Marcelo Matus
17b2dbcc0b added docs for -Werror and -w<list>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:46:59 +00:00
William S Fulton
e684591411 Warning and error messages output is selectable via commandline options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-10 00:08:18 +00:00
William S Fulton
62ba646c89 Moved non static function declarations from source files into header files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:48:39 +00:00
Dave Beazley
6a6403d2bc Suppress warning 321 by default.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-16 03:43:51 +00:00
William S Fulton
c6de7c0de6 -dirprot display order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-13 00:16:08 +00:00
Marcelo Matus
0c01d1edcc swig -DSWIG_ALLKW was too ugly. Use -Wallkw instead. Reverting swig.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-12 06:12:29 +00:00
Marcelo Matus
7335663344 %rename(x) Foo::y();
%inline %{
class Foo {
protected:
    void x();
public:
    void y();
};

%}

will work in plain or plain director mode, but it will complain the
same as before with director protected support.

The reason is that the parser emmits the warning, and at that stage it
is not possible to decide if the protected Foo::x() could or not
conflict with the renamed Foo::y(), since Foo::x() could be virtual,
even when no "virtual" attribute is used.



Core:
 parser.y: Detect the dirprot mode and prevents the generation of
           protected symbols at the parsing stage.
 lang.cxx: Export the director_protected_mode for parser.y and the
           director protected member detection is much cleaner.
 main.cxx: Fix the -dirprot flag, it was working in SWIG_FEATURE but
           not in the command line.(minor thing not relate to the error).
 swigmod.h: added Lang::dirprot_mode() for cleaner detection.
 utils.cxx: is_member_director() centralizes and improve the test.

Test suite:
 protected_rename.i: added %inline, so it can compile now.
 director_protected.i: more cases, checking using %rename.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-10 23:10:31 +00:00
Marcelo Matus
23fcdecaf7 setting the dirprot support to 0 in the meantime, can be set back with -dirprot
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-08 23:42:37 +00:00
Marcelo Matus
7bbbe3b274 Moving the director protected member support to the top level. Now it should works in all the languages. Test it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-07 23:00:02 +00:00
Dave Beazley
8f8e9107c1 New option: -runtime
Changed -c option to -noruntime.   -c still works, but a warning is issued.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-20 03:29:37 +00:00
Dave Beazley
306683fc3c Contract checking now turned on by default. Some other cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-13 04:17:52 +00:00
Dave Beazley
52fcd3df75 Removed contract code from swigmod.h. Violates intended modularity of this file.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-09 15:57:54 +00:00
Dave Beazley
4cf4dad108 Major refactoring of DOH List/Hash iterators. See CHANGES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 20:26:57 +00:00
William S Fulton
fe6447f708 -E added to options displayed with -help
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-02 19:55:05 +00:00
Dave Beazley
dbf4f328f9 Fixed [ 797576 ] -help seems to imply that only tcl-specific options exist
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 17:21:40 +00:00
William S Fulton
06ed231b7d -outdir commandline option support => directory for proxy class and other language specific files
-help tidy up


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 17:22:12 +00:00
Tiger Feng
24b8d3cb49 wrap by contract work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4815 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-21 21:29:11 +00:00
Tiger Feng
9203f8a00c wrap by contract work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-21 21:18:44 +00:00
Tiger Feng
5a9a3b5d56 Experimental contract work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-21 17:43:05 +00:00