From: ceriel Date: Wed, 6 Dec 1989 12:38:18 +0000 (+0000) Subject: some small fixes X-Git-Tag: release-5-5~2021 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=58eaf6df5b48acdde769e2693e575a1385a268d1;p=ack.git some small fixes --- diff --git a/util/cmisc/tabgen.1 b/util/cmisc/tabgen.1 index d709a214b..039b63b12 100644 --- a/util/cmisc/tabgen.1 +++ b/util/cmisc/tabgen.1 @@ -21,8 +21,8 @@ directly followed by a list of indices for which the table to be generated has this value. This list of indices must be in a certain \fBinputformat\fP, characterized by a charactet. Currently, there is only one inputformat, "c". In this format, the indices -are characters. There are two special characters: '\e' and '-'. The -'\e' behaves like in a C-string, and the '-' describes a range, unless +are characters. There are two special characters: '\e' and '-'. The '\e' +behaves like in a C-string, and the '-' describes a range, unless it starts the list of indices. .PP Some examples of descriptions: diff --git a/util/cmisc/tabgen.c b/util/cmisc/tabgen.c index fecd6e091..85a838db7 100644 --- a/util/cmisc/tabgen.c +++ b/util/cmisc/tabgen.c @@ -296,7 +296,6 @@ quoted(pstr) } else { switch (*str++) { - case 'n': ch = '\n'; break; @@ -312,8 +311,12 @@ quoted(pstr) case 'f': ch = '\f'; break; + case 'v': + ch = '\v'; + break; default : - ch = *str; + ch = *(str - 1); + break; } } *pstr = str;