From: Gregory Heytings Date: Tue, 28 Mar 2023 23:06:57 +0000 (+0000) Subject: Make get_medium_narrowing_begv/zv static X-Git-Tag: emacs-29.0.91~11^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=974e4f3333311b557754e2fdbaa75b0c1077fc61;p=emacs.git Make get_medium_narrowing_begv/zv static * src/xdisp.c (get_medium_narrowing_begv): (get_medium_narrowing_zv): Make these two functions static, they are only used in xdisp.c. * src/dispextern.h: Remove the prototypes. --- diff --git a/src/dispextern.h b/src/dispextern.h index 957e09f9ecc..ece128949f5 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -3409,8 +3409,6 @@ void mark_window_display_accurate (Lisp_Object, bool); void redisplay_preserve_echo_area (int); void init_iterator (struct it *, struct window *, ptrdiff_t, ptrdiff_t, struct glyph_row *, enum face_id); -ptrdiff_t get_medium_narrowing_begv (struct window *, ptrdiff_t); -ptrdiff_t get_medium_narrowing_zv (struct window *, ptrdiff_t); ptrdiff_t get_small_narrowing_begv (struct window *, ptrdiff_t); ptrdiff_t get_large_narrowing_begv (ptrdiff_t); ptrdiff_t get_large_narrowing_zv (ptrdiff_t); diff --git a/src/xdisp.c b/src/xdisp.c index 454cbbbf6d5..a4d02529563 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3594,14 +3594,14 @@ get_narrowed_len (struct window *w) return get_narrowed_width (w) * max (1, height); } -ptrdiff_t +static ptrdiff_t get_medium_narrowing_begv (struct window *w, ptrdiff_t pos) { int len = get_narrowed_len (w); return max ((pos / len - 1) * len, BEGV); } -ptrdiff_t +static ptrdiff_t get_medium_narrowing_zv (struct window *w, ptrdiff_t pos) { int len = get_narrowed_len (w);