diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-11 08:56:46 +0000 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-21 23:48:24 +0000 |
commit | f740ad3774c1adc7844451dd561c7de143766635 (patch) | |
tree | 9a3fca50cbcac9b78a4be880cadac30ff6b5d174 /src/memory.c | |
parent | e3af05db9554662a5a8f3b15ebbe1dc5697643f8 (diff) | |
download | sciteco-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.c | 4 |
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) { |