ncurses: enable hashmap (default) for scrolling optimizations and drop patch

This commit is contained in:
Chad Wagner 2023-10-23 19:55:53 -04:00
parent ed9dfe120f
commit 634cbc7786
No known key found for this signature in database
GPG Key ID: DF8D3D475337FA8E
2 changed files with 1 additions and 19 deletions

View File

@ -50,7 +50,7 @@ PKG_CONFIGURE_OPTS_TARGET="--without-ada \
--without-develop \
--disable-hard-tabs \
--disable-xmc-glitch \
--disable-hashmap \
--enable-hashmap \
--disable-safe-sprintf \
--disable-scroll-hints \
--enable-widec \

View File

@ -1,18 +0,0 @@
Fix USE_SCROLL_HINTS/USE_HASHMAP logic
--- a/ncurses/curses.priv.h 2018-12-16 02:16:58.000000000 +0100
+++ a/ncurses/curses.priv.h 2021-05-30 00:12:14.086528124 +0200
@@ -258,10 +258,9 @@ extern NCURSES_EXPORT(void *) _nc_memmov
/*
* Scroll hints are useless when hashmap is used
*/
-#if !USE_SCROLL_HINTS
-#if !USE_HASHMAP
-#define USE_SCROLL_HINTS 1
-#else
+#if USE_SCROLL_HINTS
+#if USE_HASHMAP
+#undef USE_SCROLL_HINTS
#define USE_SCROLL_HINTS 0
#endif
#endif