summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2016-12-25 02:57:07 -0600
committerJim Meyering <meyering@fb.com>2016-12-25 10:41:32 +0100
commit41268e548dfe04f9a019c5db099266391c3a4103 (patch)
tree5649629857a45e994a82af033aefa2e0b4bdf22b /lib
parent9365ed6536d4fabf42ec17fef1bbe5d78884f950 (diff)
downloadgrep-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