From 61885f04c61d9137baeaca5b03124c3f058bed86 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Sep 2003 09:23:22 +0000 Subject: [PATCH] * Re-renamed xm to motif (SVN rules). git-svn-id: svn://svn.zoy.org/elk/trunk@79 55e467fa-43c5-0310-a8a2-de718669efc6 --- configure.ac | 2 +- lib/xlib/client.c | 42 +++++++++++------------ lib/xlib/color.c | 6 ++-- lib/xwidgets/Makefile.am | 12 +++---- lib/xwidgets/mkwidget.scm | 4 +-- lib/xwidgets/{xm => motif}/ALIASES | 0 lib/xwidgets/{xm => motif}/Makefile.am | 0 lib/xwidgets/{xm => motif}/arrow-button.d | 0 lib/xwidgets/{xm => motif}/bulletin-brd.d | 0 lib/xwidgets/{xm => motif}/cascade-btn.d | 0 lib/xwidgets/{xm => motif}/command.d | 0 lib/xwidgets/{xm => motif}/drawing-area.d | 0 lib/xwidgets/{xm => motif}/drawn-button.d | 0 lib/xwidgets/{xm => motif}/file-selectn.d | 0 lib/xwidgets/{xm => motif}/form.d | 0 lib/xwidgets/{xm => motif}/frame.d | 0 lib/xwidgets/{xm => motif}/label.d | 0 lib/xwidgets/{xm => motif}/list.d | 0 lib/xwidgets/{xm => motif}/main-window.d | 0 lib/xwidgets/{xm => motif}/message-box.d | 0 lib/xwidgets/{xm => motif}/paned-window.d | 0 lib/xwidgets/{xm => motif}/push-button.d | 0 lib/xwidgets/{xm => motif}/row-column.d | 0 lib/xwidgets/{xm => motif}/scale.d | 0 lib/xwidgets/{xm => motif}/scroll-bar.d | 0 lib/xwidgets/{xm => motif}/scrolled-win.d | 0 lib/xwidgets/{xm => motif}/selectn-box.d | 0 lib/xwidgets/{xm => motif}/separator.d | 0 lib/xwidgets/{xm => motif}/shell.d | 0 lib/xwidgets/{xm => motif}/support.d | 0 lib/xwidgets/{xm => motif}/text.d | 0 lib/xwidgets/{xm => motif}/toggle-btn.d | 0 32 files changed, 33 insertions(+), 33 deletions(-) rename lib/xwidgets/{xm => motif}/ALIASES (100%) rename lib/xwidgets/{xm => motif}/Makefile.am (100%) rename lib/xwidgets/{xm => motif}/arrow-button.d (100%) rename lib/xwidgets/{xm => motif}/bulletin-brd.d (100%) rename lib/xwidgets/{xm => motif}/cascade-btn.d (100%) rename lib/xwidgets/{xm => motif}/command.d (100%) rename lib/xwidgets/{xm => motif}/drawing-area.d (100%) rename lib/xwidgets/{xm => motif}/drawn-button.d (100%) rename lib/xwidgets/{xm => motif}/file-selectn.d (100%) rename lib/xwidgets/{xm => motif}/form.d (100%) rename lib/xwidgets/{xm => motif}/frame.d (100%) rename lib/xwidgets/{xm => motif}/label.d (100%) rename lib/xwidgets/{xm => motif}/list.d (100%) rename lib/xwidgets/{xm => motif}/main-window.d (100%) rename lib/xwidgets/{xm => motif}/message-box.d (100%) rename lib/xwidgets/{xm => motif}/paned-window.d (100%) rename lib/xwidgets/{xm => motif}/push-button.d (100%) rename lib/xwidgets/{xm => motif}/row-column.d (100%) rename lib/xwidgets/{xm => motif}/scale.d (100%) rename lib/xwidgets/{xm => motif}/scroll-bar.d (100%) rename lib/xwidgets/{xm => motif}/scrolled-win.d (100%) rename lib/xwidgets/{xm => motif}/selectn-box.d (100%) rename lib/xwidgets/{xm => motif}/separator.d (100%) rename lib/xwidgets/{xm => motif}/shell.d (100%) rename lib/xwidgets/{xm => motif}/support.d (100%) rename lib/xwidgets/{xm => motif}/text.d (100%) rename lib/xwidgets/{xm => motif}/toggle-btn.d (100%) diff --git a/configure.ac b/configure.ac index c4b7701..b926870 100644 --- a/configure.ac +++ b/configure.ac @@ -409,7 +409,7 @@ AC_OUTPUT([ lib/xlib/Makefile lib/xwidgets/Makefile lib/xwidgets/xaw/Makefile - lib/xwidgets/xm/Makefile + lib/xwidgets/motif/Makefile scm/Makefile scm/slib.scm src/Makefile diff --git a/lib/xlib/client.c b/lib/xlib/client.c index 7159353..fbb7a98 100644 --- a/lib/xlib/client.c +++ b/lib/xlib/client.c @@ -32,7 +32,7 @@ static Object Sym_Wm_Hints, Sym_Size_Hints; -static Object P_Iconify_Window (w, scr) Object w, scr; { +static Object P_Iconify_Window (Object w, Object scr) { Check_Type (w, T_Window); if (!XIconifyWindow (WINDOW(w)->dpy, WINDOW(w)->win, Get_Screen_Number (WINDOW(w)->dpy, scr))) @@ -40,7 +40,7 @@ static Object P_Iconify_Window (w, scr) Object w, scr; { return Void; } -static Object P_Withdraw_Window (w, scr) Object w, scr; { +static Object P_Withdraw_Window (Object w, Object scr) { Check_Type (w, T_Window); if (!XWithdrawWindow (WINDOW(w)->dpy, WINDOW(w)->win, Get_Screen_Number (WINDOW(w)->dpy, scr))) @@ -48,7 +48,7 @@ static Object P_Withdraw_Window (w, scr) Object w, scr; { return Void; } -static Object P_Reconfigure_Wm_Window (w, scr, conf) Object w, scr, conf; { +static Object P_Reconfigure_Wm_Window (Object w, Object scr, Object conf) { unsigned long mask; Check_Type (w, T_Window); @@ -59,7 +59,7 @@ static Object P_Reconfigure_Wm_Window (w, scr, conf) Object w, scr, conf; { return Void; } -static Object P_Wm_Command (w) Object w; { +static Object P_Wm_Command (Object w) { int i, ac; char **av; Object s, ret, t; @@ -81,7 +81,7 @@ static Object P_Wm_Command (w) Object w; { return ret; } -static String_List_To_Text_Property (x, ret) Object x; XTextProperty *ret; { +static String_List_To_Text_Property (Object x, XTextProperty *ret) { register i, n; register char **s; Object t; @@ -99,7 +99,7 @@ static String_List_To_Text_Property (x, ret) Object x; XTextProperty *ret; { Alloca_End; } -static Object Text_Property_To_String_List (p) XTextProperty *p; { +static Object Text_Property_To_String_List (XTextProperty *p) { int n; register i; char **s; @@ -119,7 +119,7 @@ static Object Text_Property_To_String_List (p) XTextProperty *p; { return ret; } -static Object P_Get_Text_Property (w, a) Object w, a; { +static Object P_Get_Text_Property (Object w, Object a) { XTextProperty ret; Check_Type (w, T_Window); @@ -134,7 +134,7 @@ static Object P_Get_Text_Property (w, a) Object w, a; { return Text_Property_To_String_List (&ret); } -static Object P_Set_Text_Property (w, prop, a) Object w, prop, a; { +static Object P_Set_Text_Property (Object w, Object prop, Object a) { XTextProperty p; Check_Type (w, T_Window); @@ -145,7 +145,7 @@ static Object P_Set_Text_Property (w, prop, a) Object w, prop, a; { return Void; } -static Object P_Wm_Protocols (w) Object w; { +static Object P_Wm_Protocols (Object w) { Atom *p; int i, n; Object ret; @@ -169,7 +169,7 @@ static Object P_Wm_Protocols (w) Object w; { return ret; } -static Object P_Set_Wm_Protocols (w, v) Object w, v; { +static Object P_Set_Wm_Protocols (Object w, Object v) { Atom *p; int i, n; Alloca_Begin; @@ -190,7 +190,7 @@ static Object P_Set_Wm_Protocols (w, v) Object w, v; { return Void; } -static Object P_Wm_Class (w) Object w; { +static Object P_Wm_Class (Object w) { Object ret, x; XClassHint c; GC_Node; @@ -221,7 +221,7 @@ static Object P_Wm_Class (w) Object w; { return ret; } -static Object P_Set_Wm_Class (w, name, class) Object w, name, class; { +static Object P_Set_Wm_Class (Object w, Object name, Object class) { XClassHint c; Check_Type (w, T_Window); @@ -231,7 +231,7 @@ static Object P_Set_Wm_Class (w, name, class) Object w, name, class; { return Void; } -static Object P_Set_Wm_Command (w, cmd) Object w, cmd; { +static Object P_Set_Wm_Command (Object w, Object cmd) { register i, n; register char **argv; Object c; @@ -250,7 +250,7 @@ static Object P_Set_Wm_Command (w, cmd) Object w, cmd; { return Void; } -static Object P_Wm_Hints (w) Object w; { +static Object P_Wm_Hints (Object w) { XWMHints *p; Check_Type (w, T_Window); @@ -267,7 +267,7 @@ static Object P_Wm_Hints (w) Object w; { WINDOW(w)->dpy, (unsigned long)WMH.flags); } -static Object P_Set_Wm_Hints (w, h) Object w, h; { +static Object P_Set_Wm_Hints (Object w, Object h) { unsigned long mask; Check_Type (w, T_Window); @@ -277,7 +277,7 @@ static Object P_Set_Wm_Hints (w, h) Object w, h; { return Void; } -static Object P_Size_Hints (w, a) Object w, a; { +static Object P_Size_Hints (Object w, Object a) { long supplied; Check_Type (w, T_Window); @@ -299,7 +299,7 @@ static Object P_Size_Hints (w, a) Object w, a; { WINDOW(w)->dpy, (unsigned long)SZH.flags); } -static Object P_Set_Size_Hints (w, a, h) Object w, a, h; { +static Object P_Set_Size_Hints (Object w, Object a, Object h) { unsigned long mask; Check_Type (w, T_Window); @@ -316,7 +316,7 @@ static Object P_Set_Size_Hints (w, a, h) Object w, a, h; { return Void; } -static Object P_Icon_Sizes (w) Object w; { +static Object P_Icon_Sizes (Object w) { XIconSize *p; int i, n; Object v; @@ -348,7 +348,7 @@ static Object P_Icon_Sizes (w) Object w; { return v; } -static Object P_Set_Icon_Sizes (w, v) Object w, v; { +static Object P_Set_Icon_Sizes (Object w, Object v) { register i, n; XIconSize *p; Alloca_Begin; @@ -377,7 +377,7 @@ static Object P_Set_Icon_Sizes (w, v) Object w, v; { return Void; } -static Object P_Transient_For (w) Object w; { +static Object P_Transient_For (Object w) { Window win; Disable_Interrupts; @@ -387,7 +387,7 @@ static Object P_Transient_For (w) Object w; { return Make_Window (0, WINDOW(w)->dpy, win); } -static Object P_Set_Transient_For (w, pw) Object w, pw; { +static Object P_Set_Transient_For (Object w, Object pw) { Check_Type (w, T_Window); XSetTransientForHint (WINDOW(w)->dpy, WINDOW(w)->win, Get_Window (pw)); return Void; diff --git a/lib/xlib/color.c b/lib/xlib/color.c index 3bc5f7e..9e11dd8 100644 --- a/lib/xlib/color.c +++ b/lib/xlib/color.c @@ -32,14 +32,14 @@ Generic_Predicate (Color) -static Color_Equal (x, y) Object x, y; { +static Color_Equal (Object x, Object y) { register XColor *p = &COLOR(x)->c, *q = &COLOR(y)->c; return p->red == q->red && p->green == q->green && p->blue == q->blue; } Generic_Print (Color, "#[color %lu]", POINTER(x)) -Object Make_Color (r, g, b) unsigned int r, g, b; { +Object Make_Color (unsigned int r, unsigned int g, unsigned int b) { Object c; c = Find_Object (T_Color, (GENERIC)0, Match_X_Obj, r, g, b); @@ -54,7 +54,7 @@ Object Make_Color (r, g, b) unsigned int r, g, b; { return c; } -XColor *Get_Color (c) Object c; { +XColor *Get_Color (Object c) { Check_Type (c, T_Color); return &COLOR(c)->c; } diff --git a/lib/xwidgets/Makefile.am b/lib/xwidgets/Makefile.am index ac5467f..d0f9c51 100644 --- a/lib/xwidgets/Makefile.am +++ b/lib/xwidgets/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = xaw xm +SUBDIRS = xaw motif NULL = @@ -6,17 +6,17 @@ include ../xlib/Include.am EXTRA_DIST = MISSING mkwidget.scm -pkglib_LTLIBRARIES = xaw.la xm.la +pkglib_LTLIBRARIES = xaw.la motif.la xaw_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB) xaw_la_CFLAGS = -I$(srcdir)/../xlib @XAW_CFLAGS@ xaw_la_LDFLAGS = -module -avoid-version xaw_la_LIBADD = $(top_builddir)/src/libelk.la @XAW_LIBS@ -xm_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB) -xm_la_CFLAGS = -I$(srcdir)/../xlib @XM_CFLAGS@ -xm_la_LDFLAGS = -module -avoid-version -xm_la_LIBADD = $(top_builddir)/src/libelk.la @XM_LIBS@ +motif_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB) +motif_la_CFLAGS = -I$(srcdir)/../xlib @XM_CFLAGS@ +motif_la_LDFLAGS = -module -avoid-version +motif_la_LIBADD = $(top_builddir)/src/libelk.la @XM_LIBS@ extensions_HEADERS = xt.h extensionsdir = $(pkgincludedir)/extensions diff --git a/lib/xwidgets/mkwidget.scm b/lib/xwidgets/mkwidget.scm index e8735cb..34bac4f 100644 --- a/lib/xwidgets/mkwidget.scm +++ b/lib/xwidgets/mkwidget.scm @@ -24,13 +24,13 @@ (set! type-name name) (format f "#include \"../xt.h\"~%") (case widget-set - (xm + (motif (format f "#include ~%"))) (if (and (not (eqv? include "")) (not (null? include))) (begin (define dir) (case widget-set - (xm + (motif (set! dir "Xm")) (xaw (set! dir "X11/Xaw"))) diff --git a/lib/xwidgets/xm/ALIASES b/lib/xwidgets/motif/ALIASES similarity index 100% rename from lib/xwidgets/xm/ALIASES rename to lib/xwidgets/motif/ALIASES diff --git a/lib/xwidgets/xm/Makefile.am b/lib/xwidgets/motif/Makefile.am similarity index 100% rename from lib/xwidgets/xm/Makefile.am rename to lib/xwidgets/motif/Makefile.am diff --git a/lib/xwidgets/xm/arrow-button.d b/lib/xwidgets/motif/arrow-button.d similarity index 100% rename from lib/xwidgets/xm/arrow-button.d rename to lib/xwidgets/motif/arrow-button.d diff --git a/lib/xwidgets/xm/bulletin-brd.d b/lib/xwidgets/motif/bulletin-brd.d similarity index 100% rename from lib/xwidgets/xm/bulletin-brd.d rename to lib/xwidgets/motif/bulletin-brd.d diff --git a/lib/xwidgets/xm/cascade-btn.d b/lib/xwidgets/motif/cascade-btn.d similarity index 100% rename from lib/xwidgets/xm/cascade-btn.d rename to lib/xwidgets/motif/cascade-btn.d diff --git a/lib/xwidgets/xm/command.d b/lib/xwidgets/motif/command.d similarity index 100% rename from lib/xwidgets/xm/command.d rename to lib/xwidgets/motif/command.d diff --git a/lib/xwidgets/xm/drawing-area.d b/lib/xwidgets/motif/drawing-area.d similarity index 100% rename from lib/xwidgets/xm/drawing-area.d rename to lib/xwidgets/motif/drawing-area.d diff --git a/lib/xwidgets/xm/drawn-button.d b/lib/xwidgets/motif/drawn-button.d similarity index 100% rename from lib/xwidgets/xm/drawn-button.d rename to lib/xwidgets/motif/drawn-button.d diff --git a/lib/xwidgets/xm/file-selectn.d b/lib/xwidgets/motif/file-selectn.d similarity index 100% rename from lib/xwidgets/xm/file-selectn.d rename to lib/xwidgets/motif/file-selectn.d diff --git a/lib/xwidgets/xm/form.d b/lib/xwidgets/motif/form.d similarity index 100% rename from lib/xwidgets/xm/form.d rename to lib/xwidgets/motif/form.d diff --git a/lib/xwidgets/xm/frame.d b/lib/xwidgets/motif/frame.d similarity index 100% rename from lib/xwidgets/xm/frame.d rename to lib/xwidgets/motif/frame.d diff --git a/lib/xwidgets/xm/label.d b/lib/xwidgets/motif/label.d similarity index 100% rename from lib/xwidgets/xm/label.d rename to lib/xwidgets/motif/label.d diff --git a/lib/xwidgets/xm/list.d b/lib/xwidgets/motif/list.d similarity index 100% rename from lib/xwidgets/xm/list.d rename to lib/xwidgets/motif/list.d diff --git a/lib/xwidgets/xm/main-window.d b/lib/xwidgets/motif/main-window.d similarity index 100% rename from lib/xwidgets/xm/main-window.d rename to lib/xwidgets/motif/main-window.d diff --git a/lib/xwidgets/xm/message-box.d b/lib/xwidgets/motif/message-box.d similarity index 100% rename from lib/xwidgets/xm/message-box.d rename to lib/xwidgets/motif/message-box.d diff --git a/lib/xwidgets/xm/paned-window.d b/lib/xwidgets/motif/paned-window.d similarity index 100% rename from lib/xwidgets/xm/paned-window.d rename to lib/xwidgets/motif/paned-window.d diff --git a/lib/xwidgets/xm/push-button.d b/lib/xwidgets/motif/push-button.d similarity index 100% rename from lib/xwidgets/xm/push-button.d rename to lib/xwidgets/motif/push-button.d diff --git a/lib/xwidgets/xm/row-column.d b/lib/xwidgets/motif/row-column.d similarity index 100% rename from lib/xwidgets/xm/row-column.d rename to lib/xwidgets/motif/row-column.d diff --git a/lib/xwidgets/xm/scale.d b/lib/xwidgets/motif/scale.d similarity index 100% rename from lib/xwidgets/xm/scale.d rename to lib/xwidgets/motif/scale.d diff --git a/lib/xwidgets/xm/scroll-bar.d b/lib/xwidgets/motif/scroll-bar.d similarity index 100% rename from lib/xwidgets/xm/scroll-bar.d rename to lib/xwidgets/motif/scroll-bar.d diff --git a/lib/xwidgets/xm/scrolled-win.d b/lib/xwidgets/motif/scrolled-win.d similarity index 100% rename from lib/xwidgets/xm/scrolled-win.d rename to lib/xwidgets/motif/scrolled-win.d diff --git a/lib/xwidgets/xm/selectn-box.d b/lib/xwidgets/motif/selectn-box.d similarity index 100% rename from lib/xwidgets/xm/selectn-box.d rename to lib/xwidgets/motif/selectn-box.d diff --git a/lib/xwidgets/xm/separator.d b/lib/xwidgets/motif/separator.d similarity index 100% rename from lib/xwidgets/xm/separator.d rename to lib/xwidgets/motif/separator.d diff --git a/lib/xwidgets/xm/shell.d b/lib/xwidgets/motif/shell.d similarity index 100% rename from lib/xwidgets/xm/shell.d rename to lib/xwidgets/motif/shell.d diff --git a/lib/xwidgets/xm/support.d b/lib/xwidgets/motif/support.d similarity index 100% rename from lib/xwidgets/xm/support.d rename to lib/xwidgets/motif/support.d diff --git a/lib/xwidgets/xm/text.d b/lib/xwidgets/motif/text.d similarity index 100% rename from lib/xwidgets/xm/text.d rename to lib/xwidgets/motif/text.d diff --git a/lib/xwidgets/xm/toggle-btn.d b/lib/xwidgets/motif/toggle-btn.d similarity index 100% rename from lib/xwidgets/xm/toggle-btn.d rename to lib/xwidgets/motif/toggle-btn.d