ICU-2000 Fixed some compiler warnings.

X-SVN-Rev: 9775
This commit is contained in:
George Rhoten 2002-08-22 22:36:47 +00:00
parent 0aaeec4a70
commit 8154569b07
2 changed files with 6 additions and 26 deletions

View File

@ -30,11 +30,6 @@
#include "rbbitblb.h"
#include "rbbidata.h"
#ifdef RBBI_DEBUG
#include <stdio.h>
#include <stdarg.h>
#endif
U_NAMESPACE_BEGIN
@ -248,24 +243,4 @@ RBBIRuleBuilder::createRuleBasedBreakIterator( const UnicodeString &rules,
return This;
}
//----------------------------------------------------------------------------
//
// RBBIDebugPrintf Printf equivalent, for debugging output.
// Conditional compilation of the implementation lets us
// get rid of the stdio dependency in environments where it
// is unavailable.
//
//----------------------------------------------------------------------------
void RBBIDebugPrintf(const char *fmt, ...) {
#ifdef RBBI_DEBUG
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
#endif
}
U_NAMESPACE_END

View File

@ -219,7 +219,12 @@ struct RBBISetTableEl {
// is unavailable.
//
//----------------------------------------------------------------------------
void RBBIDebugPrintf(const char *fmt, ...);
#ifdef RBBI_DEBUG
#include <stdio.h>
#define RBBIDebugPrintf printf
#else
#define RBBIDebugPrintf
#endif
U_NAMESPACE_END
#endif