sled

Једноставни уређивач текста
git clone https://git.sr.ht/~strahinja/sled
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 0876786611ec25450d4c57defb32d90c8dffa9ec
родитељ 064966a62fa3e31682b6dad26753042fe02181b9
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Sun,  3 Mar 2024 09:18:48 +0100

Remove _config.h redo cludge; add note about crontab -e to README

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MMakefile | 7++-----
MREADME | 3+++
Mdraw.c | 2+-
Msled.c | 4++--
измењених датотека: 4, додавања: 8(+), брисања: 8(-)

diff --git a/Makefile b/Makefile @@ -10,9 +10,6 @@ include config.mk all: $(PROG) $(MANPAGE) -_config.h: config.h - cp config.h _config.h - config.h: config.def.h [ ! -r config.h ] && cp config.def.h config.h || true @@ -22,13 +19,13 @@ date: version: sh lib/makeversion -sled.o: sled.c _config.h draw.h termbox.h util.h version.h +sled.o: sled.c config.h draw.h termbox.h util.h version.h $(MANPAGE): $(MANPAGE).in version date version.h: version.h.in version date -draw.o: draw.c _config.h draw.h termbox.h util.h version.h +draw.o: draw.c config.h draw.h termbox.h util.h version.h util.o: util.c termbox.h util.h diff --git a/README b/README @@ -58,6 +58,9 @@ Q: Why am I getting a "Permission denied" when trying to edit a file? A: You either can't access the directory for writing (and haven't disabled the creation of backups nor set BACKUP_FAIL_OK), or the file itself. +Q: How to get crontab -e to work? +A: Uncomment the BACKUP_FAIL_OK define in config.h. + License ------- diff --git a/draw.c b/draw.c @@ -10,7 +10,7 @@ #include "version.h" #include "util.h" #include "draw.h" -#include "_config.h" +#include "config.h" /* clang-format off */ static const char* help_title = "sled help"; diff --git a/sled.c b/sled.c @@ -19,12 +19,12 @@ #define SLED_C_GLOBALS #define ONLY_DEFS -#include "_config.h" +#include "config.h" #include "version.h" #include "util.h" #include "draw.h" #undef ONLY_DEFS -#include "_config.h" +#include "config.h" #define SEL_NOT_EMPTY(state) \ ((state->sel_start.row != state->sel_end.row) \