Mercurial > emacs
comparison lwlib/lwlib-utils.c @ 109428:5ba21f4a3d62
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Thu, 08 Jul 2010 22:47:34 +0000 |
parents | 750db9f3e6d8 |
children | 417b1e4d63cd |
comparison
equal
deleted
inserted
replaced
109427:9d1a0d3d72be | 109428:5ba21f4a3d62 |
---|---|
75 the procedure might add/delete elements, which would lose badly. | 75 the procedure might add/delete elements, which would lose badly. |
76 */ | 76 */ |
77 int nkids = cw->composite.num_children; | 77 int nkids = cw->composite.num_children; |
78 Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); | 78 Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); |
79 int i; | 79 int i; |
80 lwlib_bcopy ((char *) cw->composite.children, (char *) kids, | 80 memcpy ((char *) kids, (char *) cw->composite.children, |
81 sizeof (Widget) * nkids); | 81 sizeof (Widget) * nkids); |
82 for (i = 0; i < nkids; i++) | 82 for (i = 0; i < nkids; i++) |
83 /* This prevent us from using gadgets, why is it here? */ | 83 /* This prevent us from using gadgets, why is it here? */ |
84 /* if (XtIsWidget (kids [i])) */ | 84 /* if (XtIsWidget (kids [i])) */ |
85 { | 85 { |
86 /* do the kiddies first in case we're destroying */ | 86 /* do the kiddies first in case we're destroying */ |