aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/memory.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-11 08:56:46 +0000
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-08-21 23:48:24 +0000
commitf740ad3774c1adc7844451dd561c7de143766635 (patch)
tree9a3fca50cbcac9b78a4be880cadac30ff6b5d174 /src/memory.c
parente3af05db9554662a5a8f3b15ebbe1dc5697643f8 (diff)
downloadsciteco-f740ad3774c1adc7844451dd561c7de143766635.tar.gz
fully support NetBSD with its native libcurses
* It requires a forced refresh on startup (even though that should be the default). Otherwise, it wouldn't print the info line correctly. * Redirect stdin and pass it to newterm() to fix key queuing. Probably necessary for supporting ncurses on NetBSD as well. * Avoid doupdate() if screen is too small: fixes crashes for very small windows. * Updated Scintilla: There were some implicit typing assumptions, that are broken by this platform.
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/memory.c b/src/memory.c
index 90a5dd8..264c235 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -304,6 +304,10 @@ static guint teco_memory_usage = 0;
*/
#ifdef REPLACE_MALLOC
+#ifndef G_ATOMIC_LOCK_FREE
+#warning "malloc() replacement will be very slow!"
+#endif
+
void * __attribute__((used))
malloc(size_t size)
{