Fix includes for kernel2cpu_rule_test
authorJens Steube <jens.steube@gmail.com>
Thu, 26 May 2016 10:21:08 +0000 (12:21 +0200)
committerJens Steube <jens.steube@gmail.com>
Thu, 26 May 2016 10:21:08 +0000 (12:21 +0200)
tools/rules_test/Makefile
tools/rules_test/cpu_rules.h
tools/rules_test/kernel2cpu_rule_test.c

index 8bb90a5..19e25ce 100644 (file)
@@ -5,7 +5,7 @@
 
 GCC     := gcc
 ROOT    := ../..
-CFLAGS  := -O2 -s -pipe -W -Wall -std=c99 -I$(ROOT)/include/
+CFLAGS  := -O2 -s -pipe -W -Wall -std=c99 -I$(ROOT)/include/ -I$(ROOT)/OpenCL/
 LIBS    :=
 TARGET  := kernel2cpu_rule_test
 INCLUDE := $(ROOT)/src/rp_kernel_on_cpu.c cpu_rules.c
index fcb36fa..32e36e2 100644 (file)
@@ -6,7 +6,8 @@
 #ifndef CPU_RULES_H
 #define CPU_RULES_H
 
-#include <common.h>
+#include "common.h"
+#include "inc_rp.h"
 #include "rp_cpu.h"
 
 #define BLOCK_SIZE               64
index acc1a0e..15b6c4d 100644 (file)
@@ -3,15 +3,13 @@
  * License.....: MIT
  */
 
-#include <common.h>
-
-#define RULES_PER_PLAIN_MIN  1
+#define RULES_PER_PLAIN_MIN 1
 #define RULES_PER_PLAIN_MAX 99
-#define RP_GEN_FUNC_MIN      1
-#define RP_GEN_FUNC_MAX      4
+#define RP_GEN_FUNC_MIN     1
+#define RP_GEN_FUNC_MAX     4
 #define PW_MAX              32
 #define LINE_SIG_LEN        RP_GEN_FUNC_MAX * 2 + 1
-3
+
 int max_len = 0;
 
 #include "cpu_rules.h"
@@ -61,7 +59,7 @@ int main (int argc, char **argv)
 
   char *rule_buf = (char *) malloc (HCBUFSIZ);
 
-  char *line_buf = (char *) mymalloc (HCBUFSIZ);
+  char *line_buf = (char *) malloc (HCBUFSIZ);
 
   int rp_gen_func_min = RP_GEN_FUNC_MIN;
   int rp_gen_func_max = RP_GEN_FUNC_MAX;