A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg00434.html below:

Re: Matching regex case-sensitively in C strings?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Eli Zaretskii Subject: Re: Matching regex case-sensitively in C strings? Date: Tue, 08 Nov 2022 14:29:41 +0200
> From: Mattias Engdegård <mattiase@acm.org>
> Date: Tue, 8 Nov 2022 11:18:10 +0100
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel <emacs-devel@gnu.org>
> 
> >  // What does freezing a pattern do?
> >  freeze_pattern (cache_entry);
> 
> It locks the compiled pattern record to make the regexp engine reentrant (but 
> here it also seems to be used for GC purposes; not sure about that).

See shrink_regexp_cache, which is called by GC.  You don't want this
to happen to you when you are in the middle of a regexp search.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4