diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-04-20 12:35:09 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-04-20 12:35:09 +0000 |
commit | 6c889a1786be40c0d023e8971411bc327af352c6 (patch) | |
tree | a43fc51276c677f82e29bab330edb865e057174e /src/regex/test_regex_iterate_api.c | |
parent | 24875cb6766ad147e23f248b17afa889b3d0a099 (diff) | |
download | gnunet-6c889a1786be40c0d023e8971411bc327af352c6.tar.gz gnunet-6c889a1786be40c0d023e8971411bc327af352c6.zip |
recursion for dfa construction
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r-- | src/regex/test_regex_iterate_api.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c index 39959641d..52cd12cb6 100644 --- a/src/regex/test_regex_iterate_api.c +++ b/src/regex/test_regex_iterate_api.c | |||
@@ -27,14 +27,15 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_regex_lib.h" | 28 | #include "gnunet_regex_lib.h" |
29 | 29 | ||
30 | void key_iterator(void *cls, const GNUNET_HashCode *key, const char *proof, | 30 | void |
31 | int accepting, unsigned int num_edges, | 31 | key_iterator (void *cls, const GNUNET_HashCode * key, const char *proof, |
32 | const struct GNUNET_REGEX_Edge *edges) | 32 | int accepting, unsigned int num_edges, |
33 | const struct GNUNET_REGEX_Edge *edges) | ||
33 | { | 34 | { |
34 | int i; | 35 | int i; |
35 | 36 | ||
36 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Iterating...\n"); | 37 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Iterating...\n"); |
37 | for (i=0; i<num_edges; i++) | 38 | for (i = 0; i < num_edges; i++) |
38 | { | 39 | { |
39 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Edge %i: %s\n", i, edges[i].label); | 40 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Edge %i: %s\n", i, edges[i].label); |
40 | } | 41 | } |