aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/debug.h
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-06-18 13:09:55 +0900
committerKen Wakasa <kwakasa@google.com>2011-06-18 23:52:09 +0900
commitce9e52a12a6af8fca0eba42aaae24602fbd5c998 (patch)
treedda22b8366af965b1ffa4beb54818e6e35fe0b4f /native/src/debug.h
parentc029e0f4a721f0e9972a4669707ad70b079899e4 (diff)
downloadlatinime-ce9e52a12a6af8fca0eba42aaae24602fbd5c998.tar.gz
latinime-ce9e52a12a6af8fca0eba42aaae24602fbd5c998.tar.xz
latinime-ce9e52a12a6af8fca0eba42aaae24602fbd5c998.zip
Clean up in LatinIME native code
Change-Id: I0062200a0181a491690115ac0fab8d11358e2f14
Diffstat (limited to 'native/src/debug.h')
-rw-r--r--native/src/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/debug.h b/native/src/debug.h
index ae629b222..38b2f107a 100644
--- a/native/src/debug.h
+++ b/native/src/debug.h
@@ -28,6 +28,7 @@ static inline unsigned char* convertToUnibyteString(unsigned short* input, unsig
output[i] = 0;
return output;
}
+
static inline unsigned char* convertToUnibyteStringAndReplaceLastChar(unsigned short* input,
unsigned char* output, const unsigned int length, unsigned char c) {
int i = 0;
@@ -37,6 +38,7 @@ static inline unsigned char* convertToUnibyteStringAndReplaceLastChar(unsigned s
output[i] = 0;
return output;
}
+
static inline void LOGI_S16(unsigned short* string, const unsigned int length) {
unsigned char tmp_buffer[length];
convertToUnibyteString(string, tmp_buffer, length);
@@ -46,6 +48,7 @@ static inline void LOGI_S16(unsigned short* string, const unsigned int length) {
// TODO : refactor this in a blocking log or something.
// usleep(10);
}
+
static inline void LOGI_S16_PLUS(unsigned short* string, const unsigned int length,
unsigned char c) {
unsigned char tmp_buffer[length+1];