config file

This commit is contained in:
Alessandro Mauri 2019-11-19 16:37:58 +01:00
parent 7ca58c594d
commit fb4400f08f
5 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@ LFLAGS=-lncursesw
DFLAGS=-g -O0 -v -da -Q DFLAGS=-g -O0 -v -da -Q
OBJ=ste.o fbuffer.o OBJ=ste.o fbuffer.o
DEPS=fbuffer.h DEPS=fbuffer.h config.h
ste: $(OBJ) ste: $(OBJ)
$(CC) $(CFLAGS) $(OFLAGS) $(LFLAGS) -o $@ $^ $(CC) $(CFLAGS) $(OFLAGS) $(LFLAGS) -o $@ $^

6
config.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_
#define TABSIZE 4 // Tab size as used in render
#endif

View File

@ -1,4 +1,5 @@
#include "fbuffer.h" #include "fbuffer.h"
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>

View File

@ -1,8 +1,6 @@
#ifndef _FBUFFER_H_ #ifndef _FBUFFER_H_
#define _FBUFFER_H_ #define _FBUFFER_H_
#define TABSIZE 4 // Tab size as used in render
/* Row structure, defines actual and /* Row structure, defines actual and
* render chars, actual and render size * render chars, actual and render size
* and difference between render and * and difference between render and

1
ste.c
View File

@ -5,6 +5,7 @@
#include <locale.h> #include <locale.h>
#include "fbuffer.h" #include "fbuffer.h"
#include "config.h"
/* defines */ /* defines */
#define CTRL(k) ((k) & 0x1f) // Control mask modifier #define CTRL(k) ((k) & 0x1f) // Control mask modifier