From adb1f10baf6a7a7482c2dbed1276af5955fa40c0 Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 2 Oct 2013 09:21:34 +0300 Subject: [PATCH] cosmetix --- src/expand.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/expand.c b/src/expand.c index ccc2fa1..0a0420a 100644 --- a/src/expand.c +++ b/src/expand.c @@ -281,14 +281,14 @@ static const char *parse_modifier (const char *s, const char *e, LOL *lol, char int n; ++s; switch (*s++) { - case 't': if (rep != NULL) dstr_push_char(rep, '\t'); break; + case 'a': if (rep != NULL) dstr_push_char(rep, '\a'); break; + case 'b': if (rep != NULL) dstr_push_char(rep, '\b'); break; + case 'e': if (rep != NULL) dstr_push_char(rep, '\x1b'); break; + case 'f': if (rep != NULL) dstr_push_char(rep, '\f'); break; case 'n': if (rep != NULL) dstr_push_char(rep, '\n'); break; case 'r': if (rep != NULL) dstr_push_char(rep, '\r'); break; + case 't': if (rep != NULL) dstr_push_char(rep, '\t'); break; case 'v': if (rep != NULL) dstr_push_char(rep, '\v'); break; - case 'b': if (rep != NULL) dstr_push_char(rep, '\b'); break; - case 'a': if (rep != NULL) dstr_push_char(rep, '\a'); break; - case 'f': if (rep != NULL) dstr_push_char(rep, '\f'); break; - case 'e': if (rep != NULL) dstr_push_char(rep, '\x1b'); break; case 'x': if (s >= e) { printf("FATAL: invalid hex escape!\n"); exit(42); } n = digit(*s++, 16); /* first digit */ -- 2.11.4.GIT