[BusyBox-cvs] busybox/editors vi.c,1.25,1.26
Glenn McGrath
bug1 at busybox.net
Mon Dec 2 21:18:13 UTC 2002
Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv22039/editors
Modified Files:
vi.c
Log Message:
last_patch_69, 8 bit clean and other fixes from Vladimir N. Oleynik
Index: vi.c
===================================================================
RCS file: /var/cvs/busybox/editors/vi.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- vi.c 28 Nov 2002 11:27:23 -0000 1.25
+++ vi.c 2 Dec 2002 21:18:08 -0000 1.26
@@ -87,6 +87,12 @@
#include "busybox.h"
#endif /* STANDALONE */
+#ifdef CONFIG_LOCALE_SUPPORT
+#define Isprint(c) isprint((c))
+#else
+#define Isprint(c) ( (c) >= ' ' && (c) != 127 && (c) != ((unsigned char)'\233') )
+#endif
+
#ifndef TRUE
#define TRUE ((int)1)
[...1334 lines suppressed...]
+ alarm(0);
+ printf(buf, "\n\n%d: \'%c\' %s\n\n\n%s[Hit return to continue]%s",
+ totalcmds, last_input_char, msg, SOs, SOn);
+ fflush(stdout);
+ while (read(0, d, 1) > 0) {
+ if (d[0] == '\n' || d[0] == '\r')
+ break;
+ }
+ alarm(3);
+ }
+ tim = (time_t) time((time_t *) 0);
+ if (tim >= (oldtim + 3)) {
+ sprintf((char *) status_buffer,
+ "Tot=%d: M=%d N=%d I=%d D=%d Y=%d P=%d U=%d size=%d",
+ totalcmds, M, N, I, D, Y, P, U, end - text + 1);
+ oldtim = tim;
+ }
+ return;
+}
+#endif /* CONFIG_FEATURE_VI_CRASHME */
More information about the busybox-cvs
mailing list