1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-23 01:07:19 +02:00

(my_strftime): Some old compilers object to

'\a', so don't bother optimizing for it.
This commit is contained in:
Jim Meyering
2000-01-02 07:09:54 +00:00
parent d5d6d965ed
commit 05fcf7df27
+4 -3
View File
@@ -493,7 +493,7 @@ my_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp
case '%':
break;
case '\a': case '\b': case '\t': case '\n':
case '\b': case '\t': case '\n':
case '\v': case '\f': case '\r':
case ' ': case '!': case '"': case '#': case '&': case'\'':
case '(': case ')': case '*': case '+': case ',': case '-':
@@ -511,10 +511,11 @@ my_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp
case 'r': case 's': case 't': case 'u': case 'v': case 'w':
case 'x': case 'y': case 'z': case '{': case '|': case '}':
case '~':
/* The C Standard requires these 98 characters (plus '%') to
/* The C Standard requires these 97 characters (plus '%', '\a') to
be in the basic execution character set. None of these
characters can start a multibyte sequence, so they need
not be analyzed further. */
not be analyzed further. Some old compilers object to
'\a', so don't bother optimizing for it. */
add (1, *p = *f);
continue;