Replace stderr messages with Swig_warning where there's an existing
WARN_XXX code. [Patch recommit] git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3dea6969c0
commit
34c64955d7
1 changed files with 8 additions and 5 deletions
|
|
@ -8,7 +8,8 @@
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Replace stderr messages with Swig_warning
|
* TODO: Replace remaining stderr messages with Swig_warning (need to add more
|
||||||
|
* WARN_XXX codes to be able to...)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char cvsroot_php4_cxx[] = "$Header$";
|
char cvsroot_php4_cxx[] = "$Header$";
|
||||||
|
|
@ -1102,8 +1103,9 @@ public:
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
Printf(stderr,"%s : Line %d, Unable to use type %s as a function argument.\n",
|
Swig_warning(WARN_TYPEMAP_IN_UNDEF, input_file, line_number,
|
||||||
input_file, line_number, SwigType_str(pt,0));
|
"Unable to use type %s as a function argument.\n",
|
||||||
|
SwigType_str(pt,0));
|
||||||
}
|
}
|
||||||
if (i>= num_required) {
|
if (i>= num_required) {
|
||||||
Printf(f->code,"\t}\n");
|
Printf(f->code,"\t}\n");
|
||||||
|
|
@ -1196,8 +1198,9 @@ public:
|
||||||
}
|
}
|
||||||
} // end of if-shadow lark
|
} // end of if-shadow lark
|
||||||
} else {
|
} else {
|
||||||
Printf(stderr,"%s: Line %d, Unable to use return type %s in function %s.\n",
|
Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number,
|
||||||
input_file, line_number, SwigType_str(d,0), name);
|
"Unable to use return type %s in function %s.\n",
|
||||||
|
SwigType_str(d,0), name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(outarg) {
|
if(outarg) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue