]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Quote trailing '*' in type names (e.g., "void *")
authorTim Kientzle <kientzle@gmail.com>
Mon, 13 Apr 2009 21:21:44 +0000 (17:21 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 13 Apr 2009 21:21:44 +0000 (17:21 -0400)
SVN-Revision: 977

doc/mdoc2wiki.awk

index c22b4f64769c74b90afc5566c55c9a4e04d5dc57..271fbedf5c508cf4b630d51a5a095f0db2be039d 100755 (executable)
@@ -345,7 +345,9 @@ function splitwords(l, dest, n, o, w) {
     } else if(match(words[w],"^S[xy]$")) {
       add(".B " wtail())
     } else if(match(words[w],"^Tn$")) {
-      add("*" wtail() "*")
+      n=wtail()
+      gsub("\\*$", "`*`", n)
+      add("*" n "*")
     } else if(match(words[w],"^Ic$")) {
       add("\\fB")
       trailer="\\fP" trailer