aboutsummaryrefslogtreecommitdiff
path: root/src/regex/perf-regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/perf-regex.c')
-rw-r--r--src/regex/perf-regex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regex/perf-regex.c b/src/regex/perf-regex.c
index 823601c84..3f1e77115 100644
--- a/src/regex/perf-regex.c
+++ b/src/regex/perf-regex.c
@@ -41,7 +41,7 @@
41 * @param num_edges number of edges leaving current state. 41 * @param num_edges number of edges leaving current state.
42 * @param edges edges leaving current state. 42 * @param edges edges leaving current state.
43 */ 43 */
44static void 44static void
45print_edge (void *cls, 45print_edge (void *cls,
46 const struct GNUNET_HashCode *key, 46 const struct GNUNET_HashCode *key,
47 const char *proof, 47 const char *proof,
@@ -64,7 +64,7 @@ print_edge (void *cls,
64 64
65/** 65/**
66 * The main function of the regex performace test. 66 * The main function of the regex performace test.
67 * 67 *
68 * Read a set of regex from a file, combine them and create a DFA from the 68 * Read a set of regex from a file, combine them and create a DFA from the
69 * resulting combined regex. 69 * resulting combined regex.
70 * 70 *
@@ -86,7 +86,7 @@ main (int argc, char *const *argv)
86 if (3 != argc) 86 if (3 != argc)
87 { 87 {
88 fprintf (stderr, 88 fprintf (stderr,
89 "Usage: %s REGEX_FILE COMPRESSION\n", 89 "Usage: %s REGEX_FILE COMPRESSION\n",
90 argv[0]); 90 argv[0]);
91 return 1; 91 return 1;
92 } 92 }
@@ -104,9 +104,9 @@ main (int argc, char *const *argv)
104 GNUNET_asprintf (&regex, "GNUNET_REGEX_PROFILER_(%s)(0|1)*", buffer); 104 GNUNET_asprintf (&regex, "GNUNET_REGEX_PROFILER_(%s)(0|1)*", buffer);
105 size = strlen (regex); 105 size = strlen (regex);
106 106
107 fprintf (stderr, 107 fprintf (stderr,
108 "Combined regex (%ld bytes):\n%s\n", 108 "Combined regex (%ld bytes):\n%s\n",
109 size, 109 size,
110 regex); 110 regex);
111 dfa = REGEX_INTERNAL_construct_dfa (regex, size, compression); 111 dfa = REGEX_INTERNAL_construct_dfa (regex, size, compression);
112 printf ("********* ALL EDGES *********'\n"); 112 printf ("********* ALL EDGES *********'\n");