[binutils-gdb] Remove PRINT_LITERAL_FORM

Tom Tromey via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9d11e6baee1285a03e1eae2fcef4b57c81e8e1b8

commit 9d11e6baee1285a03e1eae2fcef4b57c81e8e1b8
Author: Tom Tromey <[email protected]>
Date:   Mon Mar 23 11:31:29 2026 -0600

    Remove PRINT_LITERAL_FORM
    
    The PRINT_LITERAL_FORM macro is unused.  This patch removes it.

Diff:
---
 gdb/language.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/gdb/language.h b/gdb/language.h
index 16ed3568e08..67e6ac438b6 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -767,17 +767,6 @@ typedef void lazily_set_language_ftype ();
 extern void lazily_set_language (lazily_set_language_ftype *fun);
 
 
-/* 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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.