[tin-dev] [tin 2.6.4] snapshots

Urs Janßen urs at tin.org
Sat Oct 19 22:54:59 CEST 2024


In I wrote:
> New snapshots available.

the following is needed to fix the build in the !USE_CURSES case. my bad.

=== modified file 'src/screen.c'
--- old/src/screen.c	2024-10-18 20:59:22 +0000
+++ new/src/screen.c	2024-10-19 20:49:01 +0000
@@ -380,9 +380,10 @@
 #endif /* MULTIBYTE_ABLE && !NO_LOCALE */
 			my_fputs("->", stdout);
 	} else {
-		char *buffer, *s;
-
+		char *s;
 #ifdef USE_CURSES
+		char *buffer;
+
 #	if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
 		buffer = my_malloc(MB_CUR_MAX * (size_t) (cCOLS + 1));
 #	else
@@ -440,8 +441,10 @@
 	if (tinrc.draw_arrow)
 		my_fputs("  ", stdout);
 	else {
+		char *s;
 #ifdef USE_CURSES
-		char *buffer, *s;
+		char *buffer;
+
 #	if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
 		buffer = my_malloc(MB_CUR_MAX * (size_t) (cCOLS + 1));
 #	else




More information about the tin-dev mailing list