From 9f45ceb1288840f188608596c6fc4d4b6b2fee21 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Thu, 26 May 2016 12:21:08 +0200 Subject: [PATCH] Fix includes for kernel2cpu_rule_test --- tools/rules_test/Makefile | 2 +- tools/rules_test/cpu_rules.h | 3 ++- tools/rules_test/kernel2cpu_rule_test.c | 12 +++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tools/rules_test/Makefile b/tools/rules_test/Makefile index 8bb90a5..19e25ce 100644 --- a/tools/rules_test/Makefile +++ b/tools/rules_test/Makefile @@ -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 diff --git a/tools/rules_test/cpu_rules.h b/tools/rules_test/cpu_rules.h index fcb36fa..32e36e2 100644 --- a/tools/rules_test/cpu_rules.h +++ b/tools/rules_test/cpu_rules.h @@ -6,7 +6,8 @@ #ifndef CPU_RULES_H #define CPU_RULES_H -#include +#include "common.h" +#include "inc_rp.h" #include "rp_cpu.h" #define BLOCK_SIZE 64 diff --git a/tools/rules_test/kernel2cpu_rule_test.c b/tools/rules_test/kernel2cpu_rule_test.c index acc1a0e..15b6c4d 100644 --- a/tools/rules_test/kernel2cpu_rule_test.c +++ b/tools/rules_test/kernel2cpu_rule_test.c @@ -3,15 +3,13 @@ * License.....: MIT */ -#include - -#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; -- 2.25.1