Marcelo Matus
2872b6a7ca
minor cosmetic fixes in the 'error' attribute
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 09:02:41 +00:00
Marcelo Matus
48d11474ee
- Normalize the 'Swig_error' calls and formats, before some
...
of the strings start like "Error. XXX", others like "XXX".
The format is now defined in 'error.c:Swig_error_msg_format()'.
- Normalize the multiline error/warning messages to correctly
use -Fformat definition.
- Centralize the error/warning format definitions in
'error.c:Swig_error_msg_format()'.
- Fix a minor error in cpp.c, that after finding an error, still
was emitting a redefined macro, producing duplicated error/warning
messages in parser.y.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 08:33:12 +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
587ecadac7
Fix for friend declarations, and other 'repeated' declarations.
...
Now, this doesn't generate warnings:
class A; class B*;
int foo(A*, B*);
struct A {
friend int foo(A*, B*);
};
but this generates
struct B {
friend double foo(A*, B*);
};
which is correct, since they have different return types.
See the redefined.i file for most cases where
repeated (but not redefined) declarations are
not generating warnings now, such as:
// no warning
#define REPEATED 1
#define REPEATED 1
// yes warning
#define REDEFINED 1
#define REDEFINED 2
this is following the C, C++ and preprocessor
standard behavior.
The function 'need_redefined_warn(..)' was added to
util.c, if some strange corner appears, and therefore,
the parser.y file doesn't need to be changed latter.
Also, the redefined warning format in parser.y
was changed, so now it respond to William's -Fmicrosoft
flag.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 03:16:40 +00:00
Dave Beazley
f13b369909
Fixed bug in preprocessor expression evaluator. (backslash).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 00:58:13 +00:00
Marcelo Matus
74922d7e03
eliminate spurious temporal variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-14 06:46:20 +00:00
Marcelo Matus
a1b354f6e9
added constructor case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-14 02:45:29 +00:00
Marcelo Matus
4e6b9afee3
fix warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 02:52:25 +00:00
Marcelo Matus
5566c2a51c
added the SWIG_CATCH_STDEXCEPT macro to map stdexcept -> SWIG_exception
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:41:19 +00:00
Marcelo Matus
e0a249d155
added new test files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:39:27 +00:00
Marcelo Matus
3c53a4771a
fixed the *::clone() warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:38:45 +00:00
Marcelo Matus
209e6dde26
restored the string kw, now it works fine
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:38:07 +00:00
Marcelo Matus
69bb860df7
added friend support and reduced spurious name(kw) warnings for non-wrapped symbols
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:32:13 +00:00
Marcelo Matus
83f9a5a212
added friend dec support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:20:37 +00:00
Marcelo Matus
1c31ef71f3
fixed repeated file inclusion for dirprot mode
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:19:48 +00:00
Marcelo Matus
826771ec31
added support for friend declarations and clean/fix the
...
unrollVirtualMethods for the error shown in the director_redefined.i
example.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:12:53 +00:00
Marcelo Matus
96e80c76b7
fixed dirprot member detection and add code to detect when a node need to checked for kw warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:52:25 +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
Marcelo Matus
125e09c220
improved warning for abstract classes and fixed a spurious warning for smart_pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:43:44 +00:00
Marcelo Matus
b32024f2ab
fix precatching exception behaviour to postcatching
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-12 23:40:58 +00:00
William S Fulton
d6a9dfa874
C# examples instructions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-12 21:11:12 +00:00
Dave Beazley
912cdf4acb
increased version number
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-11 21:09:26 +00:00
Dave Beazley
81984d3fea
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-11 21:06:31 +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
Dave Beazley
f2743cdc02
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5612 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:37:24 +00:00
Dave Beazley
629e32daec
Fixed [ 871909 ] simple namespace problem.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:36:58 +00:00
Dave Beazley
d4eb6ecd44
new test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:32:08 +00:00
Dave Beazley
b52f5f03e5
Fixed broken run script
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 18:32:44 +00:00
Dave Beazley
72eb513a60
Fixed run problem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 18:32:31 +00:00
William S Fulton
8f133c1b6e
Visual Studio .NET 2003 solution and project files for the examples update
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:58:15 +00:00
William S Fulton
bdc5c56ad8
Visual Studio .NET 2003 solution and project files added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:45:20 +00:00
William S Fulton
217d63b8a3
Warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:34:12 +00:00
William S Fulton
47cecb0287
Warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:27:23 +00:00
William S Fulton
a7078b34ec
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:49:26 +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
William S Fulton
7c67214d9f
Moved non static function declarations from source files into header files
...
Added header include guard
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:44:41 +00:00
William S Fulton
ca2d01a081
Fix so that Windows paths are displayed correctly when reporting errors.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:38:58 +00:00
William S Fulton
72c68c375c
Added a reference polymorphic return type case test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:08:18 +00:00
William S Fulton
fd5f106b2e
Suppress warnings about covariant return types in Java and C#.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:06:52 +00:00
William S Fulton
9e35a6e442
Marcelo's patch which fixes virtual:type attribute always being set.
...
Removes incorrect warnings about covariant return types in Java and C#.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:06:02 +00:00
Marcelo Matus
b45d143ea2
added a reference polymorphic return type case, and
...
some extra test for the Java side.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-24 06:53:47 +00:00
William S Fulton
36a25d1f78
Downcast not needed for narrow() call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:59:40 +00:00
William S Fulton
f9fd7b97cb
Cast not needed for narrow() call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:59:27 +00:00
William S Fulton
a272be6e65
C# runtime test, based on Java one.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:51:46 +00:00
William S Fulton
9129f61a39
Fix test by using downcasts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:51:19 +00:00
William S Fulton
a33f84ae46
Covariant return type warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:47:21 +00:00
William S Fulton
cf3a5e6222
Covariant return type fixes...
...
Fixed error where the base class was being used to wrap the derived class C++ pointer.
Emit a warning when encountering these return types as the return type is changed to the base class type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:46:56 +00:00
William S Fulton
0af36656c1
Covariant return type fixes...
...
Fixed error where the base class was being used to wrap the derived class C++ pointer.
Also fixed runtime error when using directors - the wrong canonical description was not using the base class type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5589 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:45:38 +00:00
Art Yerkes
98e493b6fa
Added suffix arg for c output.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 20:31:06 +00:00
Marcelo Matus
a152fd46a8
using static narrow methods instead of %extended ones.
...
now it looks more natural and similar to the CORBA downcasting mechanism.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 10:10:04 +00:00