]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: assume C89 escape sequences
authorCollin Funk <collin.funk1@gmail.com>
Wed, 4 Sep 2024 02:45:13 +0000 (19:45 -0700)
committerPádraig Brady <P@draigBrady.com>
Wed, 4 Sep 2024 10:40:44 +0000 (11:40 +0100)
* src/ptx.c (unescape_string) [!__STDC__]: Assume compiler supports '\a'
and '\v' escape sequences.

src/ptx.c

index 09397208c93fdf9b52cd42e355dbf1e634c56e7f..384e6670709b0fec3b6bf414963c58c14a823f05 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -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;