Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/historical/nawk/dist Add translators for \v and \a ...



details:   https://anonhg.NetBSD.org/src/rev/b9df99fe42d8
branches:  trunk
changeset: 458573:b9df99fe42d8
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 01 13:17:42 2019 +0000

description:
Add translators for \v and \a per posix.

diffstat:

 external/historical/nawk/dist/tran.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 52df5fa38e74 -r b9df99fe42d8 external/historical/nawk/dist/tran.c
--- a/external/historical/nawk/dist/tran.c      Thu Aug 01 13:13:51 2019 +0000
+++ b/external/historical/nawk/dist/tran.c      Thu Aug 01 13:17:42 2019 +0000
@@ -498,6 +498,8 @@
                        case 'b':       *bp++ = '\b'; break;
                        case 'f':       *bp++ = '\f'; break;
                        case 'r':       *bp++ = '\r'; break;
+                       case 'v':       *bp++ = '\v'; break;
+                       case 'a':       *bp++ = '\a'; break;
                        default:
                                if (!isdigit(c)) {
                                        *bp++ = c;



Home | Main Index | Thread Index | Old Index