]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove PRINT_LITERAL_FORM
authorTom Tromey <tromey@adacore.com>
Mon, 23 Mar 2026 17:31:29 +0000 (11:31 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 23 Mar 2026 17:31:29 +0000 (11:31 -0600)
The PRINT_LITERAL_FORM macro is unused.  This patch removes it.

gdb/language.h

index 16ed3568e086c7c38929a4ed5c447d604fea9c94..67e6ac438b6a5d77ef0b3b7b80cd51088391c8b4 100644 (file)
@@ -767,17 +767,6 @@ typedef void lazily_set_language_ftype ();
 extern void lazily_set_language (lazily_set_language_ftype *fun);
 \f
 
-/* Test a character to decide whether it can be printed in literal form
-   or needs to be printed in another representation.  For example,
-   in C the literal form of the character with octal value 141 is 'a'
-   and the "other representation" is '\141'.  The "other representation"
-   is program language dependent.  */
-
-#define PRINT_LITERAL_FORM(c)          \
-  ((c) >= 0x20                         \
-   && ((c) < 0x7F || (c) >= 0xA0)      \
-   && (!sevenbit_strings || (c) < 0x80))
-
 /* Error messages */
 
 extern void range_error (const char *, ...) ATTRIBUTE_PRINTF (1, 2);