aboutsummaryrefslogtreecommitdiff
path: root/src/regex/test_regex_iterate_api.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-10-26 14:33:59 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-10-26 14:33:59 +0000
commit7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b (patch)
treebd6c9d2d20fe9fb8f405075e929b3056cdd67736 /src/regex/test_regex_iterate_api.c
parent993a74c191842519ad6c82216fb7a0ee2bb09456 (diff)
downloadgnunet-7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b.tar.gz
gnunet-7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b.zip
- Added path compression parameter to DFA construction API
- Moved NFA construction to internal header - Added regex simulation profiler (for profiling the NFA, that results by merging several DFAs in the DHT, in a database)
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r--src/regex/test_regex_iterate_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c
index 72847476b..09abdb7c7 100644
--- a/src/regex/test_regex_iterate_api.c
+++ b/src/regex/test_regex_iterate_api.c
@@ -188,7 +188,7 @@ main (int argc, char *argv[])
188 ctx.string_count = rxstr[i].string_count; 188 ctx.string_count = rxstr[i].string_count;
189 ctx.strings = rxstr[i].strings; 189 ctx.strings = rxstr[i].strings;
190 ctx.match_count = 0; 190 ctx.match_count = 0;
191 dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex)); 191 dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex), 0);
192 GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx); 192 GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx);
193 num_transitions = 193 num_transitions =
194 GNUNET_REGEX_get_transition_count (dfa) - dfa->start->transition_count; 194 GNUNET_REGEX_get_transition_count (dfa) - dfa->start->transition_count;
@@ -234,7 +234,7 @@ main (int argc, char *argv[])
234 ctx.strings = rxstr[i].strings; 234 ctx.strings = rxstr[i].strings;
235 ctx.match_count = 0; 235 ctx.match_count = 0;
236 236
237 dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex)); 237 dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex), 0);
238 GNUNET_REGEX_dfa_add_multi_strides (NULL, dfa, 2); 238 GNUNET_REGEX_dfa_add_multi_strides (NULL, dfa, 2);
239 GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx); 239 GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx);
240 240