diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/regex/regex_internal_lib.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/regex/regex_internal_lib.h')
-rw-r--r-- | src/regex/regex_internal_lib.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/regex/regex_internal_lib.h b/src/regex/regex_internal_lib.h index 9cb925a17..531f998cc 100644 --- a/src/regex/regex_internal_lib.h +++ b/src/regex/regex_internal_lib.h | |||
@@ -64,9 +64,9 @@ struct REGEX_INTERNAL_Automaton; | |||
64 | * @return DFA, needs to be freed using #REGEX_INTERNAL_automaton_destroy(). | 64 | * @return DFA, needs to be freed using #REGEX_INTERNAL_automaton_destroy(). |
65 | */ | 65 | */ |
66 | struct REGEX_INTERNAL_Automaton * | 66 | struct REGEX_INTERNAL_Automaton * |
67 | REGEX_INTERNAL_construct_dfa(const char *regex, | 67 | REGEX_INTERNAL_construct_dfa (const char *regex, |
68 | const size_t len, | 68 | const size_t len, |
69 | unsigned int max_path_len); | 69 | unsigned int max_path_len); |
70 | 70 | ||
71 | 71 | ||
72 | /** | 72 | /** |
@@ -76,7 +76,7 @@ REGEX_INTERNAL_construct_dfa(const char *regex, | |||
76 | * @param a automaton to be destroyed. | 76 | * @param a automaton to be destroyed. |
77 | */ | 77 | */ |
78 | void | 78 | void |
79 | REGEX_INTERNAL_automaton_destroy(struct REGEX_INTERNAL_Automaton *a); | 79 | REGEX_INTERNAL_automaton_destroy (struct REGEX_INTERNAL_Automaton *a); |
80 | 80 | ||
81 | 81 | ||
82 | /** | 82 | /** |
@@ -88,8 +88,8 @@ REGEX_INTERNAL_automaton_destroy(struct REGEX_INTERNAL_Automaton *a); | |||
88 | * @return 0 if string matches, non 0 otherwise. | 88 | * @return 0 if string matches, non 0 otherwise. |
89 | */ | 89 | */ |
90 | int | 90 | int |
91 | REGEX_INTERNAL_eval(struct REGEX_INTERNAL_Automaton *a, | 91 | REGEX_INTERNAL_eval (struct REGEX_INTERNAL_Automaton *a, |
92 | const char *string); | 92 | const char *string); |
93 | 93 | ||
94 | 94 | ||
95 | /** | 95 | /** |
@@ -103,9 +103,9 @@ REGEX_INTERNAL_eval(struct REGEX_INTERNAL_Automaton *a, | |||
103 | * to construct the key | 103 | * to construct the key |
104 | */ | 104 | */ |
105 | size_t | 105 | size_t |
106 | REGEX_INTERNAL_get_first_key(const char *input_string, | 106 | REGEX_INTERNAL_get_first_key (const char *input_string, |
107 | size_t string_len, | 107 | size_t string_len, |
108 | struct GNUNET_HashCode * key); | 108 | struct GNUNET_HashCode *key); |
109 | 109 | ||
110 | 110 | ||
111 | /** | 111 | /** |
@@ -136,9 +136,9 @@ typedef void | |||
136 | * @param iterator_cls closure. | 136 | * @param iterator_cls closure. |
137 | */ | 137 | */ |
138 | void | 138 | void |
139 | REGEX_INTERNAL_iterate_all_edges(struct REGEX_INTERNAL_Automaton *a, | 139 | REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a, |
140 | REGEX_INTERNAL_KeyIterator iterator, | 140 | REGEX_INTERNAL_KeyIterator iterator, |
141 | void *iterator_cls); | 141 | void *iterator_cls); |
142 | 142 | ||
143 | 143 | ||
144 | /** | 144 | /** |
@@ -152,9 +152,9 @@ REGEX_INTERNAL_iterate_all_edges(struct REGEX_INTERNAL_Automaton *a, | |||
152 | * @param iterator_cls closure. | 152 | * @param iterator_cls closure. |
153 | */ | 153 | */ |
154 | void | 154 | void |
155 | REGEX_INTERNAL_iterate_reachable_edges(struct REGEX_INTERNAL_Automaton *a, | 155 | REGEX_INTERNAL_iterate_reachable_edges (struct REGEX_INTERNAL_Automaton *a, |
156 | REGEX_INTERNAL_KeyIterator iterator, | 156 | REGEX_INTERNAL_KeyIterator iterator, |
157 | void *iterator_cls); | 157 | void *iterator_cls); |
158 | 158 | ||
159 | 159 | ||
160 | 160 | ||
@@ -182,11 +182,11 @@ struct REGEX_INTERNAL_Search; | |||
182 | * Must be freed by calling #REGEX_INTERNAL_announce_cancel(). | 182 | * Must be freed by calling #REGEX_INTERNAL_announce_cancel(). |
183 | */ | 183 | */ |
184 | struct REGEX_INTERNAL_Announcement * | 184 | struct REGEX_INTERNAL_Announcement * |
185 | REGEX_INTERNAL_announce(struct GNUNET_DHT_Handle *dht, | 185 | REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, |
186 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv, | 186 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv, |
187 | const char *regex, | 187 | const char *regex, |
188 | uint16_t compression, | 188 | uint16_t compression, |
189 | struct GNUNET_STATISTICS_Handle *stats); | 189 | struct GNUNET_STATISTICS_Handle *stats); |
190 | 190 | ||
191 | 191 | ||
192 | /** | 192 | /** |
@@ -196,7 +196,7 @@ REGEX_INTERNAL_announce(struct GNUNET_DHT_Handle *dht, | |||
196 | * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. | 196 | * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. |
197 | */ | 197 | */ |
198 | void | 198 | void |
199 | REGEX_INTERNAL_reannounce(struct REGEX_INTERNAL_Announcement *h); | 199 | REGEX_INTERNAL_reannounce (struct REGEX_INTERNAL_Announcement *h); |
200 | 200 | ||
201 | 201 | ||
202 | /** | 202 | /** |
@@ -206,7 +206,7 @@ REGEX_INTERNAL_reannounce(struct REGEX_INTERNAL_Announcement *h); | |||
206 | * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. | 206 | * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. |
207 | */ | 207 | */ |
208 | void | 208 | void |
209 | REGEX_INTERNAL_announce_cancel(struct REGEX_INTERNAL_Announcement *h); | 209 | REGEX_INTERNAL_announce_cancel (struct REGEX_INTERNAL_Announcement *h); |
210 | 210 | ||
211 | 211 | ||
212 | /** | 212 | /** |
@@ -242,11 +242,11 @@ typedef void | |||
242 | * Must be freed by calling #REGEX_INTERNAL_search_cancel(). | 242 | * Must be freed by calling #REGEX_INTERNAL_search_cancel(). |
243 | */ | 243 | */ |
244 | struct REGEX_INTERNAL_Search * | 244 | struct REGEX_INTERNAL_Search * |
245 | REGEX_INTERNAL_search(struct GNUNET_DHT_Handle *dht, | 245 | REGEX_INTERNAL_search (struct GNUNET_DHT_Handle *dht, |
246 | const char *string, | 246 | const char *string, |
247 | REGEX_INTERNAL_Found callback, | 247 | REGEX_INTERNAL_Found callback, |
248 | void *callback_cls, | 248 | void *callback_cls, |
249 | struct GNUNET_STATISTICS_Handle *stats); | 249 | struct GNUNET_STATISTICS_Handle *stats); |
250 | 250 | ||
251 | /** | 251 | /** |
252 | * Stop search and free all data used by a #REGEX_INTERNAL_search() call. | 252 | * Stop search and free all data used by a #REGEX_INTERNAL_search() call. |
@@ -255,7 +255,7 @@ REGEX_INTERNAL_search(struct GNUNET_DHT_Handle *dht, | |||
255 | * @param h Handle returned by a previous #REGEX_INTERNAL_search() call. | 255 | * @param h Handle returned by a previous #REGEX_INTERNAL_search() call. |
256 | */ | 256 | */ |
257 | void | 257 | void |
258 | REGEX_INTERNAL_search_cancel(struct REGEX_INTERNAL_Search *h); | 258 | REGEX_INTERNAL_search_cancel (struct REGEX_INTERNAL_Search *h); |
259 | 259 | ||
260 | 260 | ||
261 | #if 0 /* keep Emacsens' auto-indent happy */ | 261 | #if 0 /* keep Emacsens' auto-indent happy */ |