config file

master
Alessandro Mauri 5 years ago
parent 7ca58c594d
commit fb4400f08f
  1. 2
      Makefile
  2. 6
      config.h
  3. 1
      fbuffer.c
  4. 2
      fbuffer.h
  5. 1
      ste.c

@ -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 $@ $^

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

@ -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>

@ -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

@ -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

Loading…
Cancel
Save