ICU-2000 Fixed some compiler warnings.
X-SVN-Rev: 9775
This commit is contained in:
parent
0aaeec4a70
commit
8154569b07
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user