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.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/regex/regex_test_lib.h b/src/regex/regex_test_lib.h
index fe4b30498..a0ad0723a 100644
--- a/src/regex/regex_test_lib.h
+++ b/src/regex/regex_test_lib.h
@@ -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,14 +106,15 @@ 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{
117 /** 118 /**
118 * Default. Do nothing special. 119 * Default. Do nothing special.
119 */ 120 */
@@ -141,9 +142,9 @@ enum REGEX_TEST_GraphSavingOptions {
141 * mode 142 * mode
142 */ 143 */
143void 144void
144REGEX_TEST_automaton_save_graph(struct REGEX_INTERNAL_Automaton *a, 145REGEX_TEST_automaton_save_graph (struct REGEX_INTERNAL_Automaton *a,
145 const char *filename, 146 const char *filename,
146 enum REGEX_TEST_GraphSavingOptions options); 147 enum REGEX_TEST_GraphSavingOptions options);
147 148
148 149
149 150