mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: assume C89 escape sequences
* src/ptx.c (unescape_string) [!__STDC__]: Assume compiler supports '\a' and '\v' escape sequences.
This commit is contained in:
1 parent
a4617a5bc1
commit
408301e4bc
1 file changed
-8
@@ -332,11 +332,7 @@ unescape_string (char *string)
|
||||
break;
|
||||
|
||||
case 'a': /* alert */
|
||||
#if __STDC__
|
||||
*cursor++ = '\a';
|
||||
#else
|
||||
*cursor++ = 7;
|
||||
#endif
|
||||
string++;
|
||||
break;
|
||||
|
||||
@@ -371,11 +367,7 @@ unescape_string (char *string)
|
||||
break;
|
||||
|
||||
case 'v': /* vertical tab */
|
||||
#if __STDC__
|
||||
*cursor++ = '\v';
|
||||
#else
|
||||
*cursor++ = 11;
|
||||
#endif
|
||||
string++;
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user