summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'lwlib/lwlib-utils.c')
-rw-r--r--lwlib/lwlib-utils.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c
index 9dce513cb82..ea765cf5bd1 100644
--- a/lwlib/lwlib-utils.c
+++ b/lwlib/lwlib-utils.c
@@ -42,8 +42,7 @@ Boston, MA 02110-1301, USA. */
/* Redisplay the contents of the widget, without first clearing it. */
void
-XtNoClearRefreshWidget (widget)
- Widget widget;
+XtNoClearRefreshWidget (Widget widget)
{
XEvent event;
@@ -67,10 +66,7 @@ XtNoClearRefreshWidget (widget)
* Apply a function to all the subwidgets of a given widget recursively.
*/
void
-XtApplyToWidgets (w, proc, arg)
- Widget w;
- XtApplyToWidgetsProc proc;
- XtPointer arg;
+XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg)
{
if (XtIsComposite (w))
{
@@ -81,8 +77,8 @@ XtApplyToWidgets (w, proc, arg)
int nkids = cw->composite.num_children;
Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids);
int i;
- lwlib_bcopy ((char *) cw->composite.children, (char *) kids,
- sizeof (Widget) * nkids);
+ memcpy ((char *) kids, (char *) cw->composite.children,
+ sizeof (Widget) * nkids);
for (i = 0; i < nkids; i++)
/* This prevent us from using gadgets, why is it here? */
/* if (XtIsWidget (kids [i])) */
@@ -101,10 +97,7 @@ XtApplyToWidgets (w, proc, arg)
* Stop as soon as the function returns non NULL and returns this as a value.
*/
void *
-XtApplyUntilToWidgets (w, proc, arg)
- Widget w;
- XtApplyUntilToWidgetsProc proc;
- XtPointer arg;
+XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg)
{
void* result;
if (XtIsComposite (w))
@@ -130,9 +123,7 @@ XtApplyUntilToWidgets (w, proc, arg)
* Returns a copy of the list of all children of a composite widget
*/
Widget *
-XtCompositeChildren (widget, number)
- Widget widget;
- unsigned int* number;
+XtCompositeChildren (Widget widget, unsigned int *number)
{
CompositeWidget cw = (CompositeWidget)widget;
Widget* result;
@@ -153,15 +144,13 @@ XtCompositeChildren (widget, number)
}
Boolean
-XtWidgetBeingDestroyedP (widget)
- Widget widget;
+XtWidgetBeingDestroyedP (Widget widget)
{
return widget->core.being_destroyed;
}
void
-XtSafelyDestroyWidget (widget)
- Widget widget;
+XtSafelyDestroyWidget (Widget widget)
{
#if 0