better check for printf
Original commit message from CVS: better check for printf
This commit is contained in:
parent
28e9362149
commit
ec41842698
@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
|
|||||||
check_config_h();
|
check_config_h();
|
||||||
check_varargs_functions();
|
check_varargs_functions();
|
||||||
check_debugging();
|
check_debugging();
|
||||||
|
check_bad_includes();
|
||||||
}
|
}
|
||||||
|
|
||||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||||
@ -308,8 +309,8 @@ sub check_varargs_functions()
|
|||||||
#
|
#
|
||||||
sub check_debugging()
|
sub check_debugging()
|
||||||
{
|
{
|
||||||
if (grep { /\Wg_print\W/; } @lines) {
|
if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
|
||||||
print "W: friendly libraries don't use g_print\n";
|
print "W: friendly libraries don't print to stdio or stderr\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
||||||
|
@ -63,6 +63,7 @@ foreach $filename (<FIND>) {
|
|||||||
check_config_h();
|
check_config_h();
|
||||||
check_varargs_functions();
|
check_varargs_functions();
|
||||||
check_debugging();
|
check_debugging();
|
||||||
|
check_bad_includes();
|
||||||
}
|
}
|
||||||
|
|
||||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||||
@ -308,8 +309,8 @@ sub check_varargs_functions()
|
|||||||
#
|
#
|
||||||
sub check_debugging()
|
sub check_debugging()
|
||||||
{
|
{
|
||||||
if (grep { /\Wg_print\W/; } @lines) {
|
if (grep { /\Wg_print\W/ || /\Wprintf\W/ && /\Wfprintf\W/; } @lines) {
|
||||||
print "W: friendly libraries don't use g_print\n";
|
print "W: friendly libraries don't print to stdio or stderr\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
if (grep { /GST_DEBUG.*\\n"/; } @lines) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user