William S Fulton
15bf63ca01
Moved all the 1.3.21 changes from CHANGES.current to CHANGES
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-19 21:26:31 +00:00
William S Fulton
b9dd45d463
Increment version number
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-19 21:25:22 +00:00
Marcelo Matus
fe460c4c53
add file to test macro wrapping techniques
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-17 00:56:31 +00:00
Marcelo Matus
dde72e892f
added more ugly 'self' cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 22:59:55 +00:00
William S Fulton
b0df32dd1a
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/SWIG@5639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 22:46:07 +00:00
Marcelo Matus
cbcb2216b8
added new testing case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 09:58:09 +00:00
Marcelo Matus
63f7c13322
added 'self'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 09:04:27 +00:00
Marcelo Matus
8d9bdc8148
minor cosmetic fixes in the 'error' attribute
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 09:02:41 +00:00
Marcelo Matus
bd9aa0c7c9
- 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/SWIG@5635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 08:33:12 +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
Marcelo Matus
eaa0062cd2
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/SWIG@5633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 03:16:40 +00:00
Dave Beazley
acee037c44
Fixed bug in preprocessor expression evaluator. (backslash).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 00:58:13 +00:00
Marcelo Matus
b44aafbe68
eliminate spurious temporal variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-14 06:46:20 +00:00
Marcelo Matus
de5e00b97a
added constructor case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-14 02:45:29 +00:00
Marcelo Matus
4bf191197f
fix warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 02:52:25 +00:00
Marcelo Matus
2f298a330a
added the SWIG_CATCH_STDEXCEPT macro to map stdexcept -> SWIG_exception
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:41:19 +00:00
Marcelo Matus
f1178eabac
added new test files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:39:27 +00:00
Marcelo Matus
e5ee4d1ac7
fixed the *::clone() warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:38:45 +00:00
Marcelo Matus
339a7e6aec
restored the string kw, now it works fine
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:38:07 +00:00
Marcelo Matus
6d1978b1ef
added friend support and reduced spurious name(kw) warnings for non-wrapped symbols
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:32:13 +00:00
Marcelo Matus
c94ed86295
added friend dec support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:20:37 +00:00
Marcelo Matus
2dfcd1a562
fixed repeated file inclusion for dirprot mode
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:19:48 +00:00
Marcelo Matus
66c06af171
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/SWIG@5621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:12:53 +00:00
Marcelo Matus
89b8bdc89e
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/SWIG@5620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:52:25 +00:00
Marcelo Matus
a5740e3de1
added docs for -Werror and -w<list>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:46:59 +00:00
Marcelo Matus
faee816f18
improved warning for abstract classes and fixed a spurious warning for smart_pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 00:43:44 +00:00
Marcelo Matus
386d53ce62
fix precatching exception behaviour to postcatching
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-12 23:40:58 +00:00
William S Fulton
85505c3b73
C# examples instructions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-12 21:11:12 +00:00
Dave Beazley
98924f28ec
increased version number
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-11 21:09:26 +00:00
Dave Beazley
5a95817d22
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-11 21:06:31 +00:00
William S Fulton
6c61bbf852
Warning and error messages output is selectable via commandline options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-10 00:08:18 +00:00
Dave Beazley
5b49cee830
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5612 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:37:24 +00:00
Dave Beazley
93cf752b25
Fixed [ 871909 ] simple namespace problem.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:36:58 +00:00
Dave Beazley
b8f98e8cad
new test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 19:32:08 +00:00
Dave Beazley
1f06d723a8
Fixed broken run script
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 18:32:44 +00:00
Dave Beazley
bd9c1752f3
Fixed run problem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-09 18:32:31 +00:00
William S Fulton
3fa0ac4fd0
Visual Studio .NET 2003 solution and project files for the examples update
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:58:15 +00:00
William S Fulton
5c6646fc3f
Visual Studio .NET 2003 solution and project files added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:45:20 +00:00
William S Fulton
a9315a5af1
Warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:34:12 +00:00
William S Fulton
7381bddd84
Warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:27:23 +00:00
William S Fulton
7ba978b269
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:49:26 +00:00
William S Fulton
c00aaf0f5b
Moved non static function declarations from source files into header files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:48:39 +00:00
William S Fulton
379bff84e4
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/SWIG@5601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:44:41 +00:00
William S Fulton
2b472c5aa6
Fix so that Windows paths are displayed correctly when reporting errors.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:38:58 +00:00
William S Fulton
ae9b0c90e4
Added a reference polymorphic return type case test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:08:18 +00:00
William S Fulton
2dc773e643
Suppress warnings about covariant return types in Java and C#.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:06:52 +00:00
William S Fulton
bda422a29c
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/SWIG@5597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:06:02 +00:00
Marcelo Matus
ac011192ae
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/SWIG@5596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-24 06:53:47 +00:00
William S Fulton
a7844fd600
Downcast not needed for narrow() call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:59:40 +00:00
William S Fulton
8c78e18f7c
Cast not needed for narrow() call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:59:27 +00:00