tChange compilation flags; fix small issue with memory management - ledit - Text editor (WIP)
HTML git clone git://lumidify.org/ledit.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 5f298263efe3a7df06b1275446967e56ca99e62d
DIR parent b4b11228f9a7851bd47ceb8e9e31d8a3a857af79
HTML Author: lumidify <nobody@lumidify.org>
Date: Sun, 26 Dec 2021 21:17:06 +0100
Change compilation flags; fix small issue with memory management
Diffstat:
M Makefile | 2 +-
M README | 3 +++
M TODO | 1 +
M memory.c | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
t@@ -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}
DIR diff --git a/README b/README
t@@ -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.
DIR diff --git a/TODO b/TODO
t@@ -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
DIR diff --git a/memory.c b/memory.c
t@@ -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