]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Mon, 9 May 1994 23:08:26 +0000 (23:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 9 May 1994 23:08:26 +0000 (23:08 +0000)
lwlib/lwlib-utils.c
lwlib/lwlib.c

index c6899b57af72b17028f6add1dd4cea26328121e4..c966e9645e5cc5bf8f8dbc4f6316402b27f33850 100644 (file)
@@ -17,11 +17,6 @@ You should have received a copy of the GNU General Public License
 along with GNU Emacs; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <memory.h>
-
 #include <X11/Xatom.h>
 #include <X11/IntrinsicP.h>
 #include <X11/ObjectP.h>
@@ -68,7 +63,7 @@ XtApplyToWidgets (w, proc, arg)
       int nkids = cw->composite.num_children;
       Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids);
       int i;
-      memcpy (kids, cw->composite.children, sizeof (Widget) * nkids);
+      bcopy (cw->composite.children, kids, sizeof (Widget) * nkids);
       for (i = 0; i < nkids; i++)
 /* This prevent us from using gadgets, why is it here? */
 /*     if (XtIsWidget (kids [i])) */
index 4e7e807f80d2e326ed8dae6334cc10794e42a4c2..b71943337c773dbba6c48f98be67040ee2a83009 100644 (file)
@@ -21,10 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef __STRICT_BSD__ /* ick */
 #endif
 
-#include <stdlib.h>
-#include <unistd.h>
 #include <sys/types.h>
-#include <string.h>
 #include <stdio.h>
 #include <ctype.h>
 #include "lwlib-int.h"
@@ -77,7 +74,7 @@ static void
 instanciate_widget_instance (/* widget_instance* instance */);
 
 \f/* utility functions for widget_instance and widget_info */
-static char *
+char *
 safe_strdup (s)
      char *s;
 {