From fb4400f08fb35bcfc1c9048316348f6bde80c02b Mon Sep 17 00:00:00 2001 From: gunboy001 Date: Tue, 19 Nov 2019 16:37:58 +0100 Subject: [PATCH] config file --- Makefile | 2 +- config.h | 6 ++++++ fbuffer.c | 1 + fbuffer.h | 2 -- ste.c | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 config.h diff --git a/Makefile b/Makefile index cda6f76..5ea17bc 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ LFLAGS=-lncursesw DFLAGS=-g -O0 -v -da -Q OBJ=ste.o fbuffer.o -DEPS=fbuffer.h +DEPS=fbuffer.h config.h ste: $(OBJ) $(CC) $(CFLAGS) $(OFLAGS) $(LFLAGS) -o $@ $^ diff --git a/config.h b/config.h new file mode 100644 index 0000000..b771f41 --- /dev/null +++ b/config.h @@ -0,0 +1,6 @@ +#ifndef _CONFIG_H_ +#define _CONFIG_H_ + +#define TABSIZE 4 // Tab size as used in render + +#endif \ No newline at end of file diff --git a/fbuffer.c b/fbuffer.c index 2325265..8cbd05b 100644 --- a/fbuffer.c +++ b/fbuffer.c @@ -1,4 +1,5 @@ #include "fbuffer.h" +#include "config.h" #include #include #include diff --git a/fbuffer.h b/fbuffer.h index 747e2ef..2bdfd8f 100644 --- a/fbuffer.h +++ b/fbuffer.h @@ -1,8 +1,6 @@ #ifndef _FBUFFER_H_ #define _FBUFFER_H_ -#define TABSIZE 4 // Tab size as used in render - /* Row structure, defines actual and * render chars, actual and render size * and difference between render and diff --git a/ste.c b/ste.c index ced5c65..86f567b 100644 --- a/ste.c +++ b/ste.c @@ -5,6 +5,7 @@ #include #include "fbuffer.h" +#include "config.h" /* defines */ #define CTRL(k) ((k) & 0x1f) // Control mask modifier