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/test_regex_graph_api.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/test_regex_graph_api.c')
-rw-r--r-- | src/regex/test_regex_graph_api.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/regex/test_regex_graph_api.c b/src/regex/test_regex_graph_api.c index a0d44fb2f..cc4370c85 100644 --- a/src/regex/test_regex_graph_api.c +++ b/src/regex/test_regex_graph_api.c | |||
@@ -74,7 +74,7 @@ int | |||
74 | main (int argc, char *argv[]) | 74 | main (int argc, char *argv[]) |
75 | { | 75 | { |
76 | int error; | 76 | int error; |
77 | struct REGEX_ITERNAL_Automaton *a; | 77 | struct REGEX_INTERNAL_Automaton *a; |
78 | unsigned int i; | 78 | unsigned int i; |
79 | const char *filename = "test_graph.dot"; | 79 | const char *filename = "test_graph.dot"; |
80 | 80 | ||
@@ -98,58 +98,58 @@ main (int argc, char *argv[]) | |||
98 | for (i = 0; i < 12; i++) | 98 | for (i = 0; i < 12; i++) |
99 | { | 99 | { |
100 | /* Check NFA graph creation */ | 100 | /* Check NFA graph creation */ |
101 | a = REGEX_ITERNAL_construct_nfa (regex[i], strlen (regex[i])); | 101 | a = REGEX_INTERNAL_construct_nfa (regex[i], strlen (regex[i])); |
102 | REGEX_ITERNAL_automaton_save_graph (a, filename, REGEX_ITERNAL_GRAPH_DEFAULT); | 102 | REGEX_TEST_automaton_save_graph (a, filename, REGEX_TEST_GRAPH_DEFAULT); |
103 | REGEX_ITERNAL_automaton_destroy (a); | 103 | REGEX_INTERNAL_automaton_destroy (a); |
104 | error += filecheck (filename); | 104 | error += filecheck (filename); |
105 | 105 | ||
106 | a = REGEX_ITERNAL_construct_nfa (regex[i], strlen (regex[i])); | 106 | a = REGEX_INTERNAL_construct_nfa (regex[i], strlen (regex[i])); |
107 | REGEX_ITERNAL_automaton_save_graph (a, filename, | 107 | REGEX_TEST_automaton_save_graph (a, filename, |
108 | REGEX_ITERNAL_GRAPH_DEFAULT | | 108 | REGEX_TEST_GRAPH_DEFAULT | |
109 | REGEX_ITERNAL_GRAPH_VERBOSE); | 109 | REGEX_TEST_GRAPH_VERBOSE); |
110 | REGEX_ITERNAL_automaton_destroy (a); | 110 | REGEX_INTERNAL_automaton_destroy (a); |
111 | error += filecheck (filename); | 111 | error += filecheck (filename); |
112 | 112 | ||
113 | a = REGEX_ITERNAL_construct_nfa (regex[i], strlen (regex[i])); | 113 | a = REGEX_INTERNAL_construct_nfa (regex[i], strlen (regex[i])); |
114 | REGEX_ITERNAL_automaton_save_graph (a, filename, | 114 | REGEX_TEST_automaton_save_graph (a, filename, |
115 | REGEX_ITERNAL_GRAPH_DEFAULT | | 115 | REGEX_TEST_GRAPH_DEFAULT | |
116 | REGEX_ITERNAL_GRAPH_COLORING); | 116 | REGEX_TEST_GRAPH_COLORING); |
117 | REGEX_ITERNAL_automaton_destroy (a); | 117 | REGEX_INTERNAL_automaton_destroy (a); |
118 | error += filecheck (filename); | 118 | error += filecheck (filename); |
119 | 119 | ||
120 | a = REGEX_ITERNAL_construct_nfa (regex[i], strlen (regex[i])); | 120 | a = REGEX_INTERNAL_construct_nfa (regex[i], strlen (regex[i])); |
121 | REGEX_ITERNAL_automaton_save_graph (a, filename, | 121 | REGEX_TEST_automaton_save_graph (a, filename, |
122 | REGEX_ITERNAL_GRAPH_DEFAULT | | 122 | REGEX_TEST_GRAPH_DEFAULT | |
123 | REGEX_ITERNAL_GRAPH_VERBOSE | | 123 | REGEX_TEST_GRAPH_VERBOSE | |
124 | REGEX_ITERNAL_GRAPH_COLORING); | 124 | REGEX_TEST_GRAPH_COLORING); |
125 | REGEX_ITERNAL_automaton_destroy (a); | 125 | REGEX_INTERNAL_automaton_destroy (a); |
126 | error += filecheck (filename); | 126 | error += filecheck (filename); |
127 | 127 | ||
128 | 128 | ||
129 | /* Check DFA graph creation */ | 129 | /* Check DFA graph creation */ |
130 | a = REGEX_ITERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); | 130 | a = REGEX_INTERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); |
131 | REGEX_ITERNAL_automaton_save_graph (a, filename, REGEX_ITERNAL_GRAPH_DEFAULT); | 131 | REGEX_TEST_automaton_save_graph (a, filename, REGEX_TEST_GRAPH_DEFAULT); |
132 | REGEX_ITERNAL_automaton_destroy (a); | 132 | REGEX_INTERNAL_automaton_destroy (a); |
133 | error += filecheck (filename); | 133 | error += filecheck (filename); |
134 | 134 | ||
135 | a = REGEX_ITERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); | 135 | a = REGEX_INTERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); |
136 | REGEX_ITERNAL_automaton_save_graph (a, filename, | 136 | REGEX_TEST_automaton_save_graph (a, filename, |
137 | REGEX_ITERNAL_GRAPH_DEFAULT | | 137 | REGEX_TEST_GRAPH_DEFAULT | |
138 | REGEX_ITERNAL_GRAPH_VERBOSE); | 138 | REGEX_TEST_GRAPH_VERBOSE); |
139 | REGEX_ITERNAL_automaton_destroy (a); | 139 | REGEX_INTERNAL_automaton_destroy (a); |
140 | error += filecheck (filename); | 140 | error += filecheck (filename); |
141 | 141 | ||
142 | a = REGEX_ITERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); | 142 | a = REGEX_INTERNAL_construct_dfa (regex[i], strlen (regex[i]), 0); |
143 | REGEX_ITERNAL_automaton_save_graph (a, filename, | 143 | REGEX_TEST_automaton_save_graph (a, filename, |
144 | REGEX_ITERNAL_GRAPH_DEFAULT | | 144 | REGEX_TEST_GRAPH_DEFAULT | |
145 | REGEX_ITERNAL_GRAPH_COLORING); | 145 | REGEX_TEST_GRAPH_COLORING); |
146 | REGEX_ITERNAL_automaton_destroy (a); | 146 | REGEX_INTERNAL_automaton_destroy (a); |
147 | error += filecheck (filename); | 147 | error += filecheck (filename); |
148 | 148 | ||
149 | 149 | ||
150 | a = REGEX_ITERNAL_construct_dfa (regex[i], strlen (regex[i]), 4); | 150 | a = REGEX_INTERNAL_construct_dfa (regex[i], strlen (regex[i]), 4); |
151 | REGEX_ITERNAL_automaton_save_graph (a, filename, REGEX_ITERNAL_GRAPH_DEFAULT); | 151 | REGEX_TEST_automaton_save_graph (a, filename, REGEX_TEST_GRAPH_DEFAULT); |
152 | REGEX_ITERNAL_automaton_destroy (a); | 152 | REGEX_INTERNAL_automaton_destroy (a); |
153 | error += filecheck (filename); | 153 | error += filecheck (filename); |
154 | 154 | ||
155 | } | 155 | } |