maint: assume C89 escape sequences

* src/ptx.c (unescape_string) [!__STDC__]: Assume compiler supports '\a'
and '\v' escape sequences.
This commit is contained in:
Collin Funk authored and Pádraig Brady committed 2024-09-04 11:40:44 +01:00
1 parent a4617a5bc1
commit 408301e4bc
1 file changed
-8
-8
View File
@@ -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;