Mercurial > hg > octave-nkf > gnulib-hg
changeset 2299:8ed5c871e719
(ALERT_CHAR): New macro.
(quotearg_buffer_restyled): Use it.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 28 Feb 2000 20:45:28 +0000 |
parents | a138b3e25b61 |
children | da12e16454de |
files | lib/quotearg.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -44,6 +44,12 @@ # define UCHAR_MAX ((unsigned char) -1) #endif +#if HAVE_C_BACKSLASH_A +# define ALERT_CHAR '\a' +#else +# define ALERT_CHAR '\7' +#endif + #if HAVE_STDLIB_H # include <stdlib.h> #endif @@ -266,9 +272,7 @@ } break; -#if HAVE_C_BACKSLASH_A - case '\a': esc = 'a'; goto c_escape; -#endif + case ALERT_CHAR: esc = 'a'; goto c_escape; case '\b': esc = 'b'; goto c_escape; case '\f': esc = 'f'; goto c_escape; case '\n': esc = 'n'; goto c_and_shell_escape;