From 02b27c92803de8b45ed3ee30e90d961eff841a9e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 28 Feb 2000 20:45:28 +0000 Subject: [PATCH] (ALERT_CHAR): New macro. (quotearg_buffer_restyled): Use it. --- lib/quotearg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/quotearg.c b/lib/quotearg.c index 3cdbfbd2d9..6e7ac8afed 100644 --- 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 #endif @@ -266,9 +272,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize, } 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; -- 2.30.2