[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5590] zero_mem removed
From: |
Gavin D. Smith |
Subject: |
[5590] zero_mem removed |
Date: |
Tue, 20 May 2014 22:27:42 +0000 |
Revision: 5590
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5590
Author: gavin
Date: 2014-05-20 22:27:41 +0000 (Tue, 20 May 2014)
Log Message:
-----------
zero_mem removed
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/info.h
trunk/info/t/Init-intera.inc
trunk/info/window.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-05-19 22:38:12 UTC (rev 5589)
+++ trunk/ChangeLog 2014-05-20 22:27:41 UTC (rev 5590)
@@ -1,3 +1,11 @@
+2014-05-20 Gavin Smith <address@hidden>
+
+ * info/window.c (window_initialize_windows): Use xzalloc to
+ allocate an object with all bytes 0.
+ * info/info.h (zero_mem): Removed.
+
+ * info/t/Init-intera: Extra line of output reporting on progress.
+
2014-05-19 Gavin Smith <address@hidden>
* info/t/Init-intera.inc: Confirm pts file exists before redirecting
Modified: trunk/info/info.h
===================================================================
--- trunk/info/info.h 2014-05-19 22:38:12 UTC (rev 5589)
+++ trunk/info/info.h 2014-05-20 22:27:41 UTC (rev 5590)
@@ -77,26 +77,6 @@
#define add_element_to_array add_pointer_to_array
-#if !defined (zero_mem) && defined (HAVE_MEMSET)
-# define zero_mem(mem, length) memset (mem, 0, length)
-#endif /* !zero_mem && HAVE_MEMSET */
-
-#if !defined (zero_mem) && defined (HAVE_BZERO)
-# define zero_mem(mem, length) bzero (mem, length)
-#endif /* !zero_mem && HAVE_BZERO */
-
-#if !defined (zero_mem)
-# define zero_mem(mem, length) \
- do { \
- register int zi; \
- register unsigned char *place; \
- \
- place = (unsigned char *)mem; \
- for (zi = 0; zi < length; zi++) \
- place[zi] = 0; \
- } while (0)
-#endif /* !zero_mem */
-
/* A structure associating the nodes visited in a particular window. */
typedef struct {
Modified: trunk/info/t/Init-intera.inc
===================================================================
--- trunk/info/t/Init-intera.inc 2014-05-19 22:38:12 UTC (rev 5589)
+++ trunk/info/t/Init-intera.inc 2014-05-20 22:27:41 UTC (rev 5590)
@@ -31,5 +31,6 @@
usleep 1000 2>/dev/null || sleep 1
done
+echo "Redirecting standard file descriptors to $PTS_DEVICE."
exec 0>$PTS_DEVICE 1<&0 2<&0
Modified: trunk/info/window.c
===================================================================
--- trunk/info/window.c 2014-05-19 22:38:12 UTC (rev 5589)
+++ trunk/info/window.c 2014-05-20 22:27:41 UTC (rev 5590)
@@ -57,15 +57,11 @@
void
window_initialize_windows (int width, int height)
{
- the_screen = xmalloc (sizeof (WINDOW));
- the_echo_area = xmalloc (sizeof (WINDOW));
- windows = xmalloc (sizeof (WINDOW));
+ the_screen = xzalloc (sizeof (WINDOW));
+ the_echo_area = xzalloc (sizeof (WINDOW));
+ windows = xzalloc (sizeof (WINDOW));
active_window = windows;
- zero_mem (the_screen, sizeof (WINDOW));
- zero_mem (the_echo_area, sizeof (WINDOW));
- zero_mem (active_window, sizeof (WINDOW));
-
/* None of these windows has a goal column yet. */
the_echo_area->goal_column = -1;
active_window->goal_column = -1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5590] zero_mem removed,
Gavin D. Smith <=