diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2016-12-25 02:57:07 -0600 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2016-12-25 10:41:32 +0100 |
commit | 41268e548dfe04f9a019c5db099266391c3a4103 (patch) | |
tree | 5649629857a45e994a82af033aefa2e0b4bdf22b /lib | |
parent | 9365ed6536d4fabf42ec17fef1bbe5d78884f950 (diff) | |
download | grep-41268e548dfe04f9a019c5db099266391c3a4103.tar.gz |
dfasearch: thread safety
* src/dfasearch.c (struct dfa_comp): New struct to hold
previously-global variables.
(dfawarn): Remove static variable.
(kwsmusts): Operate on a dfa_comp parameter instead of global
variables.
(GEAcompile): Allocate and return a dfa_comp struct instead of setting
global variables.
(EGexecute): Operate on a dfa_comp parameter instead of global
variables.
* src/searchutils.c (kwsinit): Replace a static array with a
dynamically-allocated one.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions