diff options
Diffstat (limited to 'src/regex/regex_test_lib.h')
-rw-r--r-- | src/regex/regex_test_lib.h | 19 |
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 | */ |
56 | char * | 56 | char * |
57 | REGEX_TEST_combine(char * const regexes[], unsigned int alphabet_size); | 57 | REGEX_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 | */ |
69 | char ** | 69 | char ** |
70 | REGEX_TEST_read_from_file(const char *filename); | 70 | REGEX_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 | */ |
78 | void | 78 | void |
79 | REGEX_TEST_free_from_file(char **regexes); | 79 | REGEX_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 | */ |
95 | char * | 95 | char * |
96 | REGEX_TEST_generate_random_regex(size_t rx_length, char *matching_str); | 96 | REGEX_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 | */ |
108 | char * | 108 | char * |
109 | REGEX_TEST_generate_random_string(size_t max_len); | 109 | REGEX_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 | */ |
116 | enum REGEX_TEST_GraphSavingOptions { | 116 | enum 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 | */ |
143 | void | 144 | void |
144 | REGEX_TEST_automaton_save_graph(struct REGEX_INTERNAL_Automaton *a, | 145 | REGEX_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 | ||