Covert a stderr message to a proper SWIG warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
63a673050a
commit
f42f9ce303
2 changed files with 6 additions and 6 deletions
|
|
@ -498,7 +498,8 @@ example.i(4): Syntax error in input.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>870. Warning for <em>classname</em>: Base <em>baseclass</em> ignored. Multiple inheritance is not supported in Php4. (Php4).
|
<li>870. Warning for <em>classname</em>: Base <em>baseclass</em> ignored. Multiple inheritance is not supported in Php4. (Php).
|
||||||
|
<li>871. Unrecognized pragma <em>pragma</em>. (Php).
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<H3><a name="Warnings_nn16"></a>14.8.7 User defined (900-999)</H3>
|
<H3><a name="Warnings_nn16"></a>14.8.7 User defined (900-999)</H3>
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Replace remaining stderr messages with Swig_warning (need to add more
|
* TODO: Replace remaining stderr messages with Swig_error or Swig_warning
|
||||||
* WARN_XXX codes to be able to...)
|
* (may need to add more WARN_PHP4_xxx codes...)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char cvsroot_php4_cxx[] = "$Header$";
|
char cvsroot_php4_cxx[] = "$Header$";
|
||||||
|
|
@ -1928,7 +1928,6 @@ public:
|
||||||
String *value = Getattr(n,"value");
|
String *value = Getattr(n,"value");
|
||||||
|
|
||||||
if (Strcmp(lang,"php4") == 0) {
|
if (Strcmp(lang,"php4") == 0) {
|
||||||
|
|
||||||
if (Strcmp(type, "code") == 0) {
|
if (Strcmp(type, "code") == 0) {
|
||||||
if (value) {
|
if (value) {
|
||||||
Printf(pragma_code, "%s\n", value);
|
Printf(pragma_code, "%s\n", value);
|
||||||
|
|
@ -1942,8 +1941,8 @@ public:
|
||||||
Printf(pragma_phpinfo, "%s\n", value);
|
Printf(pragma_phpinfo, "%s\n", value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Printf(stderr, "%s : Line %d. Unrecognized pragma.\n",
|
Swig_warning(WARN_PHP4_UNKNOWN_PRAGMA, input_file, line_number,
|
||||||
input_file, line_number);
|
"Unrecognized pragma <%s>.\n", type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue