summaryrefslogtreecommitdiff
path: root/usr.bin/xstr
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2007-11-02 12:07:07 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2007-11-02 12:07:07 +0000
commit46122f64a613f1ef232d4adbeeb4753d725e5102 (patch)
tree5a1508ccf76e6a467b64d5a0c7e3e54b3540d698 /usr.bin/xstr
parent237183f212ce8828514fa2be06c0bb1d7c18f3f1 (diff)
downloadsrc-test-46122f64a613f1ef232d4adbeeb4753d725e5102.tar.gz
src-test-46122f64a613f1ef232d4adbeeb4753d725e5102.zip
Markup revision.
Notes
Notes: svn path=/head/; revision=173280
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 befdcab380c49..22c46d17a37fe 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