aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert1999-11-18 23:22:16 +0000
committerPaul Eggert1999-11-18 23:22:16 +0000
commit719f38ac954f3c7f56b9cd1c8e894fd4f83f9e02 (patch)
tree5cd4e839b43e88e0ba3a852d864c91cb64d06d06 /src
parent946173adb47e649dbcdfd905730a390cf7554357 (diff)
downloademacs-719f38ac954f3c7f56b9cd1c8e894fd4f83f9e02.tar.gz
emacs-719f38ac954f3c7f56b9cd1c8e894fd4f83f9e02.zip
(my_strftime): Some old compilers object to '\a', so don't bother
optimizing for it.
Diffstat (limited to 'src')
-rw-r--r--src/strftime.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/strftime.c b/src/strftime.c
index b89d3243624..00d50133b35 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -508,7 +508,7 @@ my_strftime (s, maxsize, format, tp ut_argument)
508 case '%': 508 case '%':
509 break; 509 break;
510 510
511 case '\a': case '\b': case '\t': case '\n': 511 case '\b': case '\t': case '\n':
512 case '\v': case '\f': case '\r': 512 case '\v': case '\f': case '\r':
513 case ' ': case '!': case '"': case '#': case '&': case'\'': 513 case ' ': case '!': case '"': case '#': case '&': case'\'':
514 case '(': case ')': case '*': case '+': case ',': case '-': 514 case '(': case ')': case '*': case '+': case ',': case '-':
@@ -526,10 +526,11 @@ my_strftime (s, maxsize, format, tp ut_argument)
526 case 'r': case 's': case 't': case 'u': case 'v': case 'w': 526 case 'r': case 's': case 't': case 'u': case 'v': case 'w':
527 case 'x': case 'y': case 'z': case '{': case '|': case '}': 527 case 'x': case 'y': case 'z': case '{': case '|': case '}':
528 case '~': 528 case '~':
529 /* The C Standard requires these 98 characters (plus '%') to 529 /* The C Standard requires these 97 characters (plus '%', '\a') to
530 be in the basic execution character set. None of these 530 be in the basic execution character set. None of these
531 characters can start a multibyte sequence, so they need 531 characters can start a multibyte sequence, so they need
532 not be analyzed further. */ 532 not be analyzed further. Some old compilers object to
533 '\a', so don't bother optimizing for it. */
533 add (1, *p = *f); 534 add (1, *p = *f);
534 continue; 535 continue;
535 536