diff options
| author | Paul Eggert | 2024-01-28 00:15:38 -0800 |
|---|---|---|
| committer | Paul Eggert | 2024-01-28 00:26:44 -0800 |
| commit | ad2c81082a62f9f781e4f5771fc223520d91cefd (patch) | |
| tree | 7abd8b081eb665e84cb127e0c5396fa7df453bb4 /src/androidterm.c | |
| parent | a3d7092114db09fee392ccc8187fde03376f2089 (diff) | |
| download | emacs-ad2c81082a62f9f781e4f5771fc223520d91cefd.tar.gz emacs-ad2c81082a62f9f781e4f5771fc223520d91cefd.zip | |
Prefer C23 ckd_* to Gnulib *_WRAPV and *_OK macros
* src/alloc.c (android_make_lisp_symbol) [HAVE_ANDROID && !__clang__]:
* src/android.c (android_blit_copy, android_blit_xor)
(android_get_image):
* src/androidmenu.c (android_menu_show):
* src/androidselect.c (Fandroid_get_clipboard_data)
(android_notifications_notify_1):
* src/androidterm.c (android_decode_utf16)
(android_text_to_string):
* src/haiku_select.cc (be_display_notification):
* src/sfnt.c (sfnt_read_cmap_format_8, sfnt_read_cmap_format_12)
(sfnt_read_cmap_format_14, sfnt_read_cmap_table_1)
(sfnt_expand_compound_glyph_context, sfnt_poly_edges_exact)
(sfnt_read_meta_table, sfnt_read_ttc_header)
(sfnt_read_cvt_table, sfnt_read_fpgm_table)
(sfnt_read_prep_table, sfnt_make_interpreter)
(sfnt_interpret_simple_glyph, sfnt_interpret_compound_glyph_2)
(sfnt_interpret_compound_glyph, sfnt_read_default_uvs_table)
(sfnt_read_nondefault_uvs_table, sfnt_create_uvs_context)
(sfnt_read_fvar_table, sfnt_read_gvar_table)
(sfnt_read_avar_table, sfnt_read_cvar_table):
* src/sfntfont-android.c (GET_SCANLINE_BUFFER):
* src/textconv.c (really_commit_text, really_set_composing_text)
(really_replace_text, get_surrounding_text):
Prefer C2x stdckdint.h macros to intprops.h macros.
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index 8632df1d4fc..d4612bb20fa 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -619,7 +619,7 @@ android_decode_utf16 (unsigned short *utf16, size_t n) | |||
| 619 | struct coding_system coding; | 619 | struct coding_system coding; |
| 620 | ptrdiff_t size; | 620 | ptrdiff_t size; |
| 621 | 621 | ||
| 622 | if (INT_MULTIPLY_WRAPV (n, sizeof *utf16, &size)) | 622 | if (ckd_mul (&size, n, sizeof *utf16)) |
| 623 | return Qnil; | 623 | return Qnil; |
| 624 | 624 | ||
| 625 | /* Set up the coding system. Decoding a UTF-16 string (with no BOM) | 625 | /* Set up the coding system. Decoding a UTF-16 string (with no BOM) |
| @@ -5010,7 +5010,7 @@ android_text_to_string (JNIEnv *env, char *buffer, ptrdiff_t n, | |||
| 5010 | { | 5010 | { |
| 5011 | /* This buffer holds no multibyte characters. */ | 5011 | /* This buffer holds no multibyte characters. */ |
| 5012 | 5012 | ||
| 5013 | if (INT_MULTIPLY_WRAPV (n, sizeof *utf16, &size)) | 5013 | if (ckd_mul (&size, n, sizeof *utf16)) |
| 5014 | return NULL; | 5014 | return NULL; |
| 5015 | 5015 | ||
| 5016 | utf16 = malloc (size); | 5016 | utf16 = malloc (size); |
| @@ -5033,7 +5033,7 @@ android_text_to_string (JNIEnv *env, char *buffer, ptrdiff_t n, | |||
| 5033 | 5033 | ||
| 5034 | /* Allocate enough to hold N characters. */ | 5034 | /* Allocate enough to hold N characters. */ |
| 5035 | 5035 | ||
| 5036 | if (INT_MULTIPLY_WRAPV (n, sizeof *utf16, &size)) | 5036 | if (ckd_mul (&size, n, sizeof *utf16)) |
| 5037 | return NULL; | 5037 | return NULL; |
| 5038 | 5038 | ||
| 5039 | utf16 = malloc (size); | 5039 | utf16 = malloc (size); |