diff options
| author | Po Lu | 2023-08-04 14:29:55 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-04 14:29:55 +0800 |
| commit | bfbdf4eb892935536fc665d6cc986fd669364263 (patch) | |
| tree | f82fdd0cafacdd9133356f5c264514a726018a18 /src/android.h | |
| parent | 709195fea6a082e3512c14fe16c4f9ea2f99824c (diff) | |
| download | emacs-bfbdf4eb892935536fc665d6cc986fd669364263.tar.gz emacs-bfbdf4eb892935536fc665d6cc986fd669364263.zip | |
Optimize creation of multibyte menu items on Android
* src/androidvfs.c (android_verify_jni_string): Move to
android.c.
* src/android.c (android_verify_jni_string): New function.
(android_build_string): Forgo encoding menu text if TEXT is a
multibyte string that's also a valid JNI string.
* src/android.h: Update prototypes.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index cecdfab002f..a052d3a3b21 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -105,6 +105,7 @@ extern bool android_detect_mouse (void); | |||
| 105 | extern void android_set_dont_focus_on_map (android_window, bool); | 105 | extern void android_set_dont_focus_on_map (android_window, bool); |
| 106 | extern void android_set_dont_accept_focus (android_window, bool); | 106 | extern void android_set_dont_accept_focus (android_window, bool); |
| 107 | 107 | ||
| 108 | extern int android_verify_jni_string (const char *); | ||
| 108 | extern jstring android_build_string (Lisp_Object); | 109 | extern jstring android_build_string (Lisp_Object); |
| 109 | extern jstring android_build_jstring (const char *); | 110 | extern jstring android_build_jstring (const char *); |
| 110 | extern void android_exception_check (void); | 111 | extern void android_exception_check (void); |