aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.c
diff options
context:
space:
mode:
authorPo Lu2024-01-06 15:28:14 +0800
committerPo Lu2024-01-06 15:28:14 +0800
commit657275529e31226bbc6c92eb7f7af887474a0bb8 (patch)
tree1a2091dfb27b9932c6e17a18f458f52b4c1ecc4d /src/androidterm.c
parent2f59052602e71fb818dd5d671be119793864e712 (diff)
downloademacs-657275529e31226bbc6c92eb7f7af887474a0bb8.tar.gz
emacs-657275529e31226bbc6c92eb7f7af887474a0bb8.zip
Revert "Add new `swap` macro and use it"
typeof is an extension which does not exist in Standard C, so macros using it are unsuitable for inclusion in Emacs. This reverts commit 37889523278fe65733938fb11c3701898309961c.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r--src/androidterm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 34734e63c37..2e4ee64f390 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -5849,6 +5849,7 @@ android_get_surrounding_text (void *data)
5849{ 5849{
5850 struct android_get_surrounding_text_context *request; 5850 struct android_get_surrounding_text_context *request;
5851 struct frame *f; 5851 struct frame *f;
5852 ptrdiff_t temp;
5852 5853
5853 request = data; 5854 request = data;
5854 5855
@@ -5869,7 +5870,11 @@ android_get_surrounding_text (void *data)
5869 bad input methods. */ 5870 bad input methods. */
5870 5871
5871 if (request->end < request->start) 5872 if (request->end < request->start)
5872 swap (request->start, request->end); 5873 {
5874 temp = request->start;
5875 request->start = request->end;
5876 request->end = temp;
5877 }
5873 5878
5874 /* Retrieve the conversion region. */ 5879 /* Retrieve the conversion region. */
5875 5880