summaryrefslogtreecommitdiffstats
path: root/usr.bin/xstr
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2007-11-02 12:07:07 +0000
committerru <ru@FreeBSD.org>2007-11-02 12:07:07 +0000
commitecd0890251dda8b629abdd6516230e72a983a682 (patch)
tree5a1508ccf76e6a467b64d5a0c7e3e54b3540d698 /usr.bin/xstr
parentf4c243dde1ed70de7b75005ff9ac8295a7b1bf55 (diff)
downloadFreeBSD-src-ecd0890251dda8b629abdd6516230e72a983a682.zip
FreeBSD-src-ecd0890251dda8b629abdd6516230e72a983a682.tar.gz
Markup revision.
Diffstat (limited to 'usr.bin/xstr')
-rw-r--r--usr.bin/xstr/xstr.128
1 files changed, 16 insertions, 12 deletions
diff --git a/usr.bin/xstr/xstr.1 b/usr.bin/xstr/xstr.1
index befdcab..22c46d1 100644
--- a/usr.bin/xstr/xstr.1
+++ b/usr.bin/xstr/xstr.1
@@ -63,10 +63,12 @@ Extract the strings from the C source
or the standard input
.Pq Fl ,
replacing
-string references by expressions of the form (&xstr[number])
-for some number.
+string references by expressions of the form
+.Li (&xstr[number])
+for some
+.Ar number .
An appropriate declaration of
-.Nm
+.Va xstr
is prepended to the file.
The resulting C text is placed in the file
.Pa x.c ,
@@ -83,11 +85,10 @@ Verbose mode.
After all components of a large program have been compiled a file
.Pa xs.c
declaring the common
-.Nm
+.Va xstr
space can be created by a command of the form
-.Bd -literal -offset indent
-xstr
-.Ed
+.Pp
+.Dl xstr
.Pp
The file
.Pa xs.c
@@ -122,8 +123,8 @@ An appropriate command sequence for running
after the C preprocessor is:
.Pp
.Bd -literal -offset indent -compact
-cc \-E name.c | xstr \-c \-
-cc \-c x.c
+cc -E name.c | xstr -c -
+cc -c x.c
mv x.o name.o
.Ed
.Pp
@@ -137,15 +138,18 @@ can avoid remaking
.Pa xs.o
unless truly necessary.
.Sh FILES
-.Bl -tag -width /tmp/xsxx* -compact
+.Bl -tag -width ".Pa /tmp/xs*" -compact
.It Pa strings
data base of strings
.It Pa x.c
massaged C source
.It Pa xs.c
-C source for definition of array `xstr'
+C source for definition of array
+.Va xstr
.It Pa /tmp/xs*
-temp file when `xstr name' does not touch
+temporary file when
+.Dq Li "xstr name"
+does not touch
.Pa strings
.El
.Sh SEE ALSO
OpenPOWER on IntegriCloud