From: Paul Eggert Date: Thu, 14 Apr 2011 02:21:33 +0000 (-0700) Subject: * search.c (searchbufs, searchbuf_head): Now static. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~309 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=989b29ad2242850e8256c7509c9551742ddeab45;p=emacs.git * search.c (searchbufs, searchbuf_head): Now static. --- 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