]> code.delx.au - gnu-emacs/blobdiff - src/strftime.c
(Vimage_types): Moved here from xfns.c.
[gnu-emacs] / src / strftime.c
index b89d3243624fb74d9103046e6d334bdf9bb34b23..f2a0e08ce9ed478b0d7d3529f9ff341c7c9c55a2 100644 (file)
@@ -98,7 +98,7 @@ extern char *tzname[];
 #endif
 
 #ifndef __P
-# if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
+# if defined (PROTOTYPES)
 #  define __P(args) args
 # else
 #  define __P(args) ()
@@ -508,7 +508,7 @@ my_strftime (s, maxsize, format, tp ut_argument)
        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 '-':
@@ -526,10 +526,11 @@ my_strftime (s, maxsize, format, tp ut_argument)
        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;