aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/debug.h
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-06-18 08:01:25 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-18 08:01:25 -0700
commit56a6c8dc22f43a6a6490a49ac732be907f9a1d2b (patch)
treec0223ba0ba532be129942bfa8cd21b501800f208 /native/src/debug.h
parent76427c8e565327561e656c5c07660a870ae259e7 (diff)
parentce9e52a12a6af8fca0eba42aaae24602fbd5c998 (diff)
downloadlatinime-56a6c8dc22f43a6a6490a49ac732be907f9a1d2b.tar.gz
latinime-56a6c8dc22f43a6a6490a49ac732be907f9a1d2b.tar.xz
latinime-56a6c8dc22f43a6a6490a49ac732be907f9a1d2b.zip
Merge "Clean up in LatinIME native code"
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];