diff options
| author | Richard M. Stallman | 1994-05-09 23:08:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-09 23:08:26 +0000 |
| commit | bb2ee72bdfdb7be9b587f494873a489a2bee1466 (patch) | |
| tree | a1c8d711c6d73a08fbc21d47b82fb79f9c94c4a3 /lwlib | |
| parent | 327bebe8044741384241bbe5c7c99904c3d748d8 (diff) | |
| download | emacs-bb2ee72bdfdb7be9b587f494873a489a2bee1466.tar.gz emacs-bb2ee72bdfdb7be9b587f494873a489a2bee1466.zip | |
*** empty log message ***
Diffstat (limited to 'lwlib')
| -rw-r--r-- | lwlib/lwlib-utils.c | 7 | ||||
| -rw-r--r-- | lwlib/lwlib.c | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index c6899b57af7..c966e9645e5 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c | |||
| @@ -17,11 +17,6 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | 17 | along with GNU Emacs; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | 19 | ||
| 20 | #include <stdlib.h> | ||
| 21 | #include <unistd.h> | ||
| 22 | #include <string.h> | ||
| 23 | #include <memory.h> | ||
| 24 | |||
| 25 | #include <X11/Xatom.h> | 20 | #include <X11/Xatom.h> |
| 26 | #include <X11/IntrinsicP.h> | 21 | #include <X11/IntrinsicP.h> |
| 27 | #include <X11/ObjectP.h> | 22 | #include <X11/ObjectP.h> |
| @@ -68,7 +63,7 @@ XtApplyToWidgets (w, proc, arg) | |||
| 68 | int nkids = cw->composite.num_children; | 63 | int nkids = cw->composite.num_children; |
| 69 | Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); | 64 | Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); |
| 70 | int i; | 65 | int i; |
| 71 | memcpy (kids, cw->composite.children, sizeof (Widget) * nkids); | 66 | bcopy (cw->composite.children, kids, sizeof (Widget) * nkids); |
| 72 | for (i = 0; i < nkids; i++) | 67 | for (i = 0; i < nkids; i++) |
| 73 | /* This prevent us from using gadgets, why is it here? */ | 68 | /* This prevent us from using gadgets, why is it here? */ |
| 74 | /* if (XtIsWidget (kids [i])) */ | 69 | /* if (XtIsWidget (kids [i])) */ |
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 4e7e807f80d..b71943337c7 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c | |||
| @@ -21,10 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 21 | #undef __STRICT_BSD__ /* ick */ | 21 | #undef __STRICT_BSD__ /* ick */ |
| 22 | #endif | 22 | #endif |
| 23 | 23 | ||
| 24 | #include <stdlib.h> | ||
| 25 | #include <unistd.h> | ||
| 26 | #include <sys/types.h> | 24 | #include <sys/types.h> |
| 27 | #include <string.h> | ||
| 28 | #include <stdio.h> | 25 | #include <stdio.h> |
| 29 | #include <ctype.h> | 26 | #include <ctype.h> |
| 30 | #include "lwlib-int.h" | 27 | #include "lwlib-int.h" |
| @@ -77,7 +74,7 @@ static void | |||
| 77 | instanciate_widget_instance (/* widget_instance* instance */); | 74 | instanciate_widget_instance (/* widget_instance* instance */); |
| 78 | 75 | ||
| 79 | /* utility functions for widget_instance and widget_info */ | 76 | /* utility functions for widget_instance and widget_info */ |
| 80 | static char * | 77 | char * |
| 81 | safe_strdup (s) | 78 | safe_strdup (s) |
| 82 | char *s; | 79 | char *s; |
| 83 | { | 80 | { |