]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Make FOR_EACH_SUPPORTED_FILTER() local to filter_common.c.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 6 Oct 2015 01:54:02 +0000 (01:54 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Jan 2016 11:58:52 +0000 (12:58 +0100)
The macro is only used in this .c file, so it should not be
public. This patch moves the macro from filter.h to filter_common.c.

filter.h
filter_common.c

index 7ae28fe4946a578b0d0f229359f740252de4b1b9..ab312f5d8d27ecc5eea55b8b127087bc9e8ac73c 100644 (file)
--- a/filter.h
+++ b/filter.h
@@ -140,8 +140,5 @@ static inline void write_int16_host_endian(char *buf, int val)
 
 DECLARE_FILTER_INITS
 
 
 DECLARE_FILTER_INITS
 
-/** Iterate over the array of supported filters. */
-#define FOR_EACH_SUPPORTED_FILTER(j)  for (j = 0; j < NUM_SUPPORTED_FILTERS; j++)
-
 /** The filter array, one structure for each supported filter. */
 extern struct filter filters[NUM_SUPPORTED_FILTERS];
 /** The filter array, one structure for each supported filter. */
 extern struct filter filters[NUM_SUPPORTED_FILTERS];
index 009ac936d55a7e398f623e6c374a4df68e5e06f4..53cde746001b6a42eb8e482addcd6231ad5560d5 100644 (file)
@@ -19,6 +19,9 @@
 #include "error.h"
 #include "string.h"
 
 #include "error.h"
 #include "string.h"
 
+/** Iterate over the array of supported filters. */
+#define FOR_EACH_SUPPORTED_FILTER(j)  for (j = 0; j < NUM_SUPPORTED_FILTERS; j++)
+
 /** The array of supported filters. */
 struct filter filters[NUM_SUPPORTED_FILTERS] = {FILTER_ARRAY};
 
 /** The array of supported filters. */
 struct filter filters[NUM_SUPPORTED_FILTERS] = {FILTER_ARRAY};