From 989b29ad2242850e8256c7509c9551742ddeab45 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Apr 2011 19:21:33 -0700 Subject: [PATCH] * search.c (searchbufs, searchbuf_head): Now static. --- src/ChangeLog | 2 ++ src/search.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0c811188e07..9e37c661c46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-14 Paul Eggert + * search.c (searchbufs, searchbuf_head): Now static. + * scroll.c (scroll_cost): Remove; unused. * dispextern.h (scroll_cost): Remove decl. diff --git a/src/search.c b/src/search.c index ea10e47f556..c522de90e05 100644 --- a/src/search.c +++ b/src/search.c @@ -53,10 +53,10 @@ struct regexp_cache }; /* The instances of that struct. */ -struct regexp_cache searchbufs[REGEXP_CACHE_SIZE]; +static struct regexp_cache searchbufs[REGEXP_CACHE_SIZE]; /* The head of the linked list; points to the most recently used buffer. */ -struct regexp_cache *searchbuf_head; +static struct regexp_cache *searchbuf_head; /* Every call to re_match, etc., must pass &search_regs as the regs -- 2.39.2