add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6f0ac941e8
commit
89e7497ac6
124 changed files with 671 additions and 281 deletions
|
|
@ -173,10 +173,20 @@ Swig_error_silent(int s) {
|
|||
void
|
||||
Swig_warnfilter(const String_or_char *wlist, int add) {
|
||||
char *c;
|
||||
char *cw;
|
||||
String *s;
|
||||
|
||||
if (!filter) filter = NewStringEmpty();
|
||||
s = NewString(wlist);
|
||||
|
||||
s = NewString("");
|
||||
Clear(s);
|
||||
cw = Char(wlist);
|
||||
while (*cw != '\0') {
|
||||
if (*cw != ' ') {
|
||||
Putc(*cw, s);
|
||||
}
|
||||
++cw;
|
||||
}
|
||||
c = Char(s);
|
||||
c = strtok(c,", ");
|
||||
while (c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue