aboutsummaryrefslogtreecommitdiffstats
path: root/src/textconv.c
diff options
context:
space:
mode:
authorPaul Eggert2025-12-08 10:35:03 -0800
committerPaul Eggert2025-12-08 10:41:50 -0800
commit855ad6d870852144221a15d04f4b31969689bffb (patch)
tree1e9f2877ee15bc13722908b4eb43db04ec0e8069 /src/textconv.c
parent777622682f5db092560d6bdde040f65aa4671ba3 (diff)
downloademacs-855ad6d870852144221a15d04f4b31969689bffb.tar.gz
emacs-855ad6d870852144221a15d04f4b31969689bffb.zip
Fix some C symbol extern visibility
Make some C symbols static if they don’t need to be extern. Also, remove a couple of functions that were discovered to be unused as a result of this process, and mark two extern functions intended to be usable from GDB. * src/buffer.c (previous_overlay_change): * src/composite.c (composition_lisp_table): * src/fileio.c (file_name_directory): * src/frame.c (check_tty): * src/insdel.c (adjust_markers_for_insert): * src/keyboard.c (unread_switch_frame, read_char) (requeued_events_pending_p): * src/sysdep.c (renameat_noreplace) [!HAVE_ANDROID]: * src/textconv.c (get_conversion_field) [!HAVE_ANDROID]: * src/treesit.c (TREESIT_BOB_LINECOL, TREESIT_TS_POINT_1_0) (treesit_buf_tracks_linecol_p, make_treesit_parser) (make_treesit_node): * src/xdisp.c (x_y_to_hpos_vpos): * src/xfaces.c (load_color) [!MSDOS]: * src/xfns.c (x_real_pos_and_offsets): * src/xterm.c (x_dnd_do_unsupported_drop): Now static. Move up if necessary. * src/coding.c (utf8_string_p): * src/keyboard.c (detect_input_pending_ignore_squeezables): Remove; unused. * src/frame.c (gui_set_alpha): * src/textconv.c (start_batch_edit, end_batch_edit, commit_text) (finish_composing_text, set_composing_text) (set_composing_region, textconv_set_point_and_mark) (delete_surrounding_text, request_point_update) (textconv_barrier, replace_text, get_extracted_text) (get_surrounding_text): * src/xdisp.c (gui_union_rectangles): * src/xterm.c (xi_frame_selected_for): Define only if needed. * src/treesit.c (treesit_debug_print_parser_list) (treesit_debug_print_linecol): Declare EXTERNALLY_VISIBLE. * src/xdisp.c (x_y_to_column_row): New function, defined only if needed. All external callers to x_y_to_hpos_vpos changed.
Diffstat (limited to 'src/textconv.c')
-rw-r--r--src/textconv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/textconv.c b/src/textconv.c
index 105a8077072..e5ade79895c 100644
--- a/src/textconv.c
+++ b/src/textconv.c
@@ -1743,6 +1743,9 @@ handle_pending_conversion_events (void)
1743 F should be constrained in *BEG and *END. Should no field be active, 1743 F should be constrained in *BEG and *END. Should no field be active,
1744 set *END to PTRDIFF_MAX. */ 1744 set *END to PTRDIFF_MAX. */
1745 1745
1746#ifndef HAVE_ANDROID
1747static
1748#endif
1746void 1749void
1747get_conversion_field (struct frame *f, ptrdiff_t *beg, ptrdiff_t *end) 1750get_conversion_field (struct frame *f, ptrdiff_t *beg, ptrdiff_t *end)
1748{ 1751{
@@ -1772,6 +1775,8 @@ get_conversion_field (struct frame *f, ptrdiff_t *beg, ptrdiff_t *end)
1772 *end = PTRDIFF_MAX; 1775 *end = PTRDIFF_MAX;
1773} 1776}
1774 1777
1778#ifdef HAVE_ANDROID
1779
1775/* Start a ``batch edit'' in frame F. During a batch edit, 1780/* Start a ``batch edit'' in frame F. During a batch edit,
1776 point_changed will not be called until the batch edit ends. 1781 point_changed will not be called until the batch edit ends.
1777 1782
@@ -2307,6 +2312,7 @@ get_surrounding_text (struct frame *f, ptrdiff_t left,
2307 unbind_to (count, Qnil); 2312 unbind_to (count, Qnil);
2308 return buffer; 2313 return buffer;
2309} 2314}
2315#endif /* HAVE_ANDROID */
2310 2316
2311/* Return whether or not text conversion is temporarily disabled. 2317/* Return whether or not text conversion is temporarily disabled.
2312 `reset' should always call this to determine whether or not to 2318 `reset' should always call this to determine whether or not to