emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matching regex case-sensitively in C strings?


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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]