Mercurial > hg > octave-kai > gnulib-hg
changeset 2060:d2d217c54abf
(my_strftime): Some old compilers object to
'\a', so don't bother optimizing for it.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 02 Jan 2000 07:09:54 +0000 |
parents | fd23388cc67f |
children | 9d01db7d1495 |
files | lib/strftime.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strftime.c +++ b/lib/strftime.c @@ -493,7 +493,7 @@ 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 @@ 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;