Use NAME_MAX when available. Don't try to fake a FILE on DragonFly. The implementation of textsw_scanf can be improved, it is very defensively and slow ATM, the snprintf usage should be portable. Fix a number of prototype mismatches, e.g. variable argument functions can conflict with K&R prototypes. Bump revision since the package "compiled" before, e.g. build errors where ignored.
22 lines
645 B
Text
22 lines
645 B
Text
$NetBSD: patch-cz,v 1.2 2006/01/05 18:25:57 joerg Exp $
|
|
|
|
--- lib/libxview/textsw/txt_input.c.orig Tue Jun 29 07:17:42 1993
|
|
+++ lib/libxview/textsw/txt_input.c Thu Dec 20 10:09:17 2001
|
|
@@ -40,8 +40,6 @@ static char sccsid[] = "@(#)txt_inpu
|
|
#include <stdlib.h>
|
|
#endif /* SVR4 */
|
|
|
|
-extern int errno;
|
|
-
|
|
Pkg_private Xv_Cursor move_cursor, dup_cursor; /* laf */
|
|
Pkg_private void termsw_menu_set();
|
|
Pkg_private Key_map_handle textsw_do_filter();
|
|
@@ -57,6 +55,8 @@ static void textsw_do_undo();
|
|
Pkg_private void textsw_implicit_commit_doit();
|
|
#endif
|
|
|
|
+static int textsw_do_newline();
|
|
+
|
|
#define SPACE_CHAR 0x20
|
|
|
|
Pkg_private int
|