commit 5f298263efe3a7df06b1275446967e56ca99e62d
parent b4b11228f9a7851bd47ceb8e9e31d8a3a857af79
Author: lumidify <nobody@lumidify.org>
Date: Sun, 26 Dec 2021 21:17:06 +0100
Change compilation flags; fix small issue with memory management
Diffstat:
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -59,7 +59,7 @@ CONFIGHDR = \
keys_command_config.h \
keys_config.h
-CFLAGS_LEDIT = -g -Wall -Wextra -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 xkbfile pangoxft xext`
+CFLAGS_LEDIT = ${CFLAGS} -g -Wall -Wextra -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 xkbfile pangoxft xext`
LDFLAGS_LEDIT = ${LDFLAGS} `pkg-config --libs x11 xkbfile pangoxft xext` -lm
all: ${BIN}
diff --git a/README b/README
@@ -1,6 +1,9 @@
WARNING: This is work in progress! A lot of bugs still need to be fixed
before this can be used as a real text editor.
+Note: The compiler flags currently still include -g to add debug symbols.
+This will be removed when ledit is officially released (if I remember...).
+
ledit is a vi-like text editor for people who switch between keyboard
layouts frequently and/or work with languages that require complex text
layout.
diff --git a/TODO b/TODO
@@ -6,3 +6,4 @@
* Try to copy vi behavior where the cursor jumps back to the original
column after moving over a line that was not as long as the original
cursor position.
+* Set X error handlers to also emergencydump
diff --git a/memory.c b/memory.c
@@ -100,7 +100,7 @@ ledit_reallocarray(void *optr, size_t nmemb, size_t size)
nmemb > 0 && SIZE_MAX / nmemb < size) {
err_overflow();
}
- return realloc(optr, size * nmemb);
+ return ledit_realloc(optr, size * nmemb);
}
void