summaryrefslogtreecommitdiff
path: root/src/regex/regex_test_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_test_lib.h')
-rw-r--r--src/regex/regex_test_lib.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/regex/regex_test_lib.h b/src/regex/regex_test_lib.h
index 226a0fbb6..fe4b30498 100644
--- a/src/regex/regex_test_lib.h
+++ b/src/regex/regex_test_lib.h
@@ -11,7 +11,7 @@
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Affero General Public License for more details. 13 * Affero General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Affero General Public License 15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -54,7 +54,7 @@ extern "C"
54 * @return A string with a single regex that matches any of the original regexes 54 * @return A string with a single regex that matches any of the original regexes
55 */ 55 */
56char * 56char *
57REGEX_TEST_combine (char * const regexes[], unsigned int alphabet_size); 57REGEX_TEST_combine(char * const regexes[], unsigned int alphabet_size);
58 58
59 59
60/** 60/**
@@ -67,7 +67,7 @@ REGEX_TEST_combine (char * const regexes[], unsigned int alphabet_size);
67 * @return A newly allocated, NULL terminated array of regexes. 67 * @return A newly allocated, NULL terminated array of regexes.
68 */ 68 */
69char ** 69char **
70REGEX_TEST_read_from_file (const char *filename); 70REGEX_TEST_read_from_file(const char *filename);
71 71
72 72
73/** 73/**
@@ -76,7 +76,7 @@ REGEX_TEST_read_from_file (const char *filename);
76 * @param regexes NULL-terminated array of regexes. 76 * @param regexes NULL-terminated array of regexes.
77 */ 77 */
78void 78void
79REGEX_TEST_free_from_file (char **regexes); 79REGEX_TEST_free_from_file(char **regexes);
80 80
81 81
82/** 82/**
@@ -93,7 +93,7 @@ REGEX_TEST_free_from_file (char **regexes);
93 * needs to be freed, otherwise. 93 * needs to be freed, otherwise.
94 */ 94 */
95char * 95char *
96REGEX_TEST_generate_random_regex (size_t rx_length, char *matching_str); 96REGEX_TEST_generate_random_regex(size_t rx_length, char *matching_str);
97 97
98 98
99/** 99/**
@@ -106,15 +106,14 @@ REGEX_TEST_generate_random_regex (size_t rx_length, char *matching_str);
106 * @return random string that needs to be freed. 106 * @return random string that needs to be freed.
107 */ 107 */
108char * 108char *
109REGEX_TEST_generate_random_string (size_t max_len); 109REGEX_TEST_generate_random_string(size_t max_len);
110 110
111 111
112/** 112/**
113 * Options for graph creation function 113 * Options for graph creation function
114 * REGEX_TEST_automaton_save_graph. 114 * REGEX_TEST_automaton_save_graph.
115 */ 115 */
116enum REGEX_TEST_GraphSavingOptions 116enum REGEX_TEST_GraphSavingOptions {
117{
118 /** 117 /**
119 * Default. Do nothing special. 118 * Default. Do nothing special.
120 */ 119 */
@@ -142,9 +141,9 @@ enum REGEX_TEST_GraphSavingOptions
142 * mode 141 * mode
143 */ 142 */
144void 143void
145REGEX_TEST_automaton_save_graph (struct REGEX_INTERNAL_Automaton *a, 144REGEX_TEST_automaton_save_graph(struct REGEX_INTERNAL_Automaton *a,
146 const char *filename, 145 const char *filename,
147 enum REGEX_TEST_GraphSavingOptions options); 146 enum REGEX_TEST_GraphSavingOptions options);
148 147
149 148
150 149