diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-20 09:02:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-20 09:02:43 +0000 |
commit | 566b7539fcaf9c455da665cb641016d2cfbb1b47 (patch) | |
tree | eb12baa08d99313d6da7eb8c1be17c5e447f1586 /src/regex/perf-regex.c | |
parent | de9409f80dbfc5cc61a28316b271600e9da95cdc (diff) | |
download | gnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.tar.gz gnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.zip |
renaming symbols from libgnunetregextest to have the prefix REGEX_TEST
Diffstat (limited to 'src/regex/perf-regex.c')
-rw-r--r-- | src/regex/perf-regex.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/regex/perf-regex.c b/src/regex/perf-regex.c index 210b16b81..bc723b6cb 100644 --- a/src/regex/perf-regex.c +++ b/src/regex/perf-regex.c | |||
@@ -53,7 +53,7 @@ iter (void *cls, | |||
53 | const char *proof, | 53 | const char *proof, |
54 | int accepting, | 54 | int accepting, |
55 | unsigned int num_edges, | 55 | unsigned int num_edges, |
56 | const struct REGEX_ITERNAL_Edge *edges) | 56 | const struct REGEX_INTERNAL_Edge *edges) |
57 | { | 57 | { |
58 | unsigned int i; | 58 | unsigned int i; |
59 | 59 | ||
@@ -66,9 +66,9 @@ iter (void *cls, | |||
66 | } | 66 | } |
67 | 67 | ||
68 | static void | 68 | static void |
69 | print_dfa (struct REGEX_ITERNAL_Automaton* dfa) | 69 | print_dfa (struct REGEX_INTERNAL_Automaton* dfa) |
70 | { | 70 | { |
71 | REGEX_ITERNAL_iterate_all_edges (dfa, iter, NULL); | 71 | REGEX_INTERNAL_iterate_all_edges (dfa, iter, NULL); |
72 | } | 72 | } |
73 | 73 | ||
74 | /** | 74 | /** |
@@ -84,7 +84,7 @@ print_dfa (struct REGEX_ITERNAL_Automaton* dfa) | |||
84 | int | 84 | int |
85 | main (int argc, char *const *argv) | 85 | main (int argc, char *const *argv) |
86 | { | 86 | { |
87 | struct REGEX_ITERNAL_Automaton* dfa; | 87 | struct REGEX_INTERNAL_Automaton* dfa; |
88 | char **regexes; | 88 | char **regexes; |
89 | char *buffer; | 89 | char *buffer; |
90 | char *regex; | 90 | char *regex; |
@@ -98,14 +98,14 @@ main (int argc, char *const *argv) | |||
98 | usage(); | 98 | usage(); |
99 | return 1; | 99 | return 1; |
100 | } | 100 | } |
101 | regexes = REGEX_ITERNAL_read_from_file (argv[1]); | 101 | regexes = REGEX_TEST_read_from_file (argv[1]); |
102 | 102 | ||
103 | if (NULL == regexes) | 103 | if (NULL == regexes) |
104 | { | 104 | { |
105 | usage(); | 105 | usage(); |
106 | return 2; | 106 | return 2; |
107 | } | 107 | } |
108 | buffer = REGEX_ITERNAL_combine (regexes); | 108 | buffer = REGEX_TEST_combine (regexes); |
109 | 109 | ||
110 | GNUNET_asprintf (®ex, "GNVPN-0001-PAD(%s)(0|1)*", buffer); | 110 | GNUNET_asprintf (®ex, "GNVPN-0001-PAD(%s)(0|1)*", buffer); |
111 | size = strlen (regex); | 111 | size = strlen (regex); |
@@ -114,11 +114,11 @@ main (int argc, char *const *argv) | |||
114 | // return 0; | 114 | // return 0; |
115 | 115 | ||
116 | compression = atoi (argv[2]); | 116 | compression = atoi (argv[2]); |
117 | dfa = REGEX_ITERNAL_construct_dfa (regex, size, compression); | 117 | dfa = REGEX_INTERNAL_construct_dfa (regex, size, compression); |
118 | print_dfa (dfa); | 118 | print_dfa (dfa); |
119 | REGEX_ITERNAL_automaton_destroy (dfa); | 119 | REGEX_INTERNAL_automaton_destroy (dfa); |
120 | GNUNET_free (buffer); | 120 | GNUNET_free (buffer); |
121 | REGEX_ITERNAL_free_from_file (regexes); | 121 | REGEX_TEST_free_from_file (regexes); |
122 | GNUNET_free (regex); | 122 | GNUNET_free (regex); |
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |