From 58eaf6df5b48acdde769e2693e575a1385a268d1 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 6 Dec 1989 12:38:18 +0000 Subject: [PATCH] some small fixes --- util/cmisc/tabgen.1 | 4 ++-- util/cmisc/tabgen.c | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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; -- 2.34.1