summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorWalter Harms <wharms@bfs.de>2019-04-04 21:46:55 +0200
committerWalter Harms <wharms@bfs.de>2019-04-04 21:46:55 +0200
commit76ed3193af4416324a18795fe3bee4fb37e9791f (patch)
tree9e13862755f33a965c467f39f370c25f1ed7b9e8 /man
parentb01eaa82c190b390f6a0de74668ed88a41b3d6b8 (diff)
downloadxorg-lib-libXt-76ed3193af4416324a18795fe3bee4fb37e9791f.tar.gz
replace the use of .Ds/.De macro with the std. RS/.RE macro
this make way to remove all private macro definitions from the header. Now only plain man macros are used.
Diffstat (limited to 'man')
-rw-r--r--man/XtMalloc.man10
-rw-r--r--man/XtPopdown.man5
-rw-r--r--man/XtPopup.man8
-rw-r--r--man/XtSetArg.man10
4 files changed, 17 insertions, 16 deletions
diff --git a/man/XtMalloc.man b/man/XtMalloc.man
index c6932bc..e5af2f6 100644
--- a/man/XtMalloc.man
+++ b/man/XtMalloc.man
@@ -143,10 +143,9 @@ is a convenience macro that calls
.BR XtMalloc
with the following arguments specified:
.LP
-.Ds
-.ta .5i
+.RS .5i
((type *) XtMalloc((unsigned) sizeof(type))
-.De
+.RE
.LP
.BR XtNewString
returns a pointer to the allocated storage.
@@ -159,10 +158,9 @@ is a convenience macro that calls
.BR XtMalloc
with the following arguments specified:
.LP
-.Ds
-.ta .5i
+.RS .5i
(strcpy(XtMalloc((unsigned) strlen(str) + 1), str))
-.De
+.RE
.LP
The
.BR XtAsprintf
diff --git a/man/XtPopdown.man b/man/XtPopdown.man
index fc6348f..95b28c2 100644
--- a/man/XtPopdown.man
+++ b/man/XtPopdown.man
@@ -118,12 +118,13 @@ function casts the client data parameter to an
.BR XtPopdownID
pointer:
.LP
-.Ds
+.RS
+.nf
typedef struct {
Widget shell_widget;
Widget enable_widget;
} XtPopdownIDRec, *XtPopdownID;
-.De
+.RE
.LP
The shell_widget is the pop-up shell to pop down,
and the enable_widget is the widget that was used to pop it up.
diff --git a/man/XtPopup.man b/man/XtPopup.man
index 4c71156..6f994eb 100644
--- a/man/XtPopup.man
+++ b/man/XtPopup.man
@@ -120,9 +120,9 @@ or
.BR XtGrabExclusive ,
it calls:
.LP
-.Ds
+.RS
XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), False)
-.De
+.RE
.IP \(bu 5
Calls
.BR XtRealizeWidget
@@ -225,9 +225,9 @@ it is called with popup_shell as the parameter.
.IP \(bu 5
Calls:
.LP
-.Ds
+.RS
XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), spring_loaded)
-.De
+.RE
.IP \(bu 5
Calls
.BR XtRealizeWidget
diff --git a/man/XtSetArg.man b/man/XtSetArg.man
index e9a1807..6f141ed 100644
--- a/man/XtSetArg.man
+++ b/man/XtSetArg.man
@@ -90,7 +90,8 @@ The
function is usually used in a highly stylized manner to
minimize the probability of making a mistake; for example:
.LP
-.Ds
+.RS
+.nf
Arg args[20];
int n;
@@ -98,19 +99,20 @@ n = 0;
XtSetArg(args[n], XtNheight, 100); n++;
XtSetArg(args[n], XtNwidth, 200); n++;
XtSetValues(widget, args, n);
-.De
+.RE
.LP
Alternatively, an application can statically declare the argument list
and use
.BR XtNumber :
.LP
-.Ds
+.RS
+.nf
static Args args[] = {
{XtNheight, (XtArgVal) 100},
{XtNwidth, (XtArgVal) 200},
};
XtSetValues(Widget, args, XtNumber(args));
-.De
+.RE
.LP
Note that you should not use auto-increment or auto-decrement
within the first argument to