Browse Source

* reorganize headers in filters

master
Alex 'AdUser' Z 8 years ago
parent
commit
9b3de998c3
  1. 7
      src/filters/filter.h
  2. 6
      src/filters/pcre.c
  3. 6
      src/filters/preg.c

7
src/filters/filter.h

@ -4,7 +4,14 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#if defined(__linux__)
#include <alloca.h>
#endif
#include <assert.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ID_MAX 32 #define ID_MAX 32
#define PATTERN_MAX 256 #define PATTERN_MAX 256

6
src/filters/pcre.c

@ -4,12 +4,6 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <alloca.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "filter.h" #include "filter.h"
#include <pcre.h> #include <pcre.h>

6
src/filters/preg.c

@ -4,12 +4,6 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <alloca.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "filter.h" #include "filter.h"
#include <regex.h> #include <regex.h>

Loading…
Cancel
Save