summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-08-16 09:51:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-08-16 09:51:17 +0000
commit77da7331d998a614d9b8e71c919afc8ab7e8168b (patch)
treec8974ffe4dc501688221dc55041b902a224e825f
parent1f3aa1eb615112fd40061f39498636b5fb649b04 (diff)
downloadmandoc-77da7331d998a614d9b8e71c919afc8ab7e8168b.tar.gz
Remove \*(C+ from the pre-predefined strings. It is always `ds'-defined
when being used in manuals. Since we now support `ds', it's no longer necessary to account for it. From a bug report originally by Thomas Jeunet.
-rw-r--r--TODO4
-rw-r--r--chars.c2
-rw-r--r--chars.in1
-rw-r--r--man.31
4 files changed, 5 insertions, 3 deletions
diff --git a/TODO b/TODO
index 3df7a1c0..1ec7bc92 100644
--- a/TODO
+++ b/TODO
@@ -179,3 +179,7 @@ Several areas can be cleaned up to make mandoc even faster. These are
in OpenBSD ksh(1) gives the wrong width
because "\e" is one character in groff, two in mandoc
+- Now that `ds' is minimally supported, we can get rid of some
+ predefined strings. \*(C+ has already been thrown out. Track these
+ down and whack them. Look in e.g. gcc.1 for the top-level `ds'
+ invocations. These are reproduced across most crappy GNU manuals.
diff --git a/chars.c b/chars.c
index ce561d4a..cb8d01c8 100644
--- a/chars.c
+++ b/chars.c
@@ -40,7 +40,7 @@ struct ln {
#define CHARS_BOTH (CHARS_CHAR | CHARS_STRING)
};
-#define LINES_MAX 370
+#define LINES_MAX 369
#define CHAR(in, ch, code) \
{ NULL, (in), (ch), (code), CHARS_CHAR },
diff --git a/chars.in b/chars.in
index 84049645..b67b2ba7 100644
--- a/chars.in
+++ b/chars.in
@@ -353,7 +353,6 @@ STRING("--", "--", 8212)
STRING("PI", "pi", 960)
STRING("L\"", "``", 8220)
STRING("R\"", "\'\'", 8221)
-STRING("C+", "C++", 0)
STRING("C`", "`", 8216)
STRING("C\'", "\'", 8217)
STRING("Aq", "\'", 39)
diff --git a/man.3 b/man.3
index 828acb5f..ca4fce9b 100644
--- a/man.3
+++ b/man.3
@@ -116,7 +116,6 @@ documents to be correctly formatted:
\e*(PI (pi),
\e*(L" (left double-quote),
\e*(R" (right double-quote),
-\e*(C+ (C++),
\e*(C` (left single-quote),
\e*(C' (right single-quote),
\e*(Aq (apostrophe),