groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 21/34: [libgroff]: Drop support for `TRADITIONAL_CPP`.


From: G. Branden Robinson
Subject: [groff] 21/34: [libgroff]: Drop support for `TRADITIONAL_CPP`.
Date: Thu, 2 Sep 2021 02:48:36 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit cc2bea41accd62e0e2abb81a66d0fbe1faa26745
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Aug 28 10:19:20 2021 +1000

    [libgroff]: Drop support for `TRADITIONAL_CPP`.
    
    This means a C preprocessor that does not support the ANSI C89/ISO C90
    token concatenation operator "##".
    
    * src/include/itable.h:
    * src/include/ptable.h: Do it.
    
    * Makefile.am: Undocument preprocessor symbol.
---
 ChangeLog            | 11 +++++++++++
 Makefile.am          |  2 --
 src/include/itable.h |  8 ++------
 src/include/ptable.h |  8 ++------
 4 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f83b1a7..71f5e64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2021-08-28  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [libgroff]: Drop support for `TRADITIONAL_CPP`.  This means a C
+       preprocessor that does not support the ANSI C89/ISO C90
+       token concatenation operator "##".
+
+       * src/include/itable.h:
+       * src/include/ptable.h: Do it.
+
+       * Makefile.am: Undocument preprocessor symbol.
+
 2021-08-27  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [libgroff]: Drop `a_delete` preprocessor wrapper for the
diff --git a/Makefile.am b/Makefile.am
index e2ef2eb..9aea889 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -441,8 +441,6 @@ man7dir=$(manroot)/man$(man7ext)
 # uintmax_t=<value>            define to `unsigned long' or `unsigned long
 #                              long' if <inttypes.h> does not exist
 #
-# TRADITIONAL_CPP              if your C++ compiler uses a traditional
-#                              (Reiser) preprocessor
 # PAGE=A4                      if the printer's page size is A4
 # GHOSTSCRIPT=gs               the name (and directory if required) of the
 #                              ghostscript program
diff --git a/src/include/itable.h b/src/include/itable.h
index 3ea99f7..29745b9 100644
--- a/src/include/itable.h
+++ b/src/include/itable.h
@@ -20,12 +20,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <assert.h>
 
 // name2(a,b) concatenates two C identifiers.
-#ifdef TRADITIONAL_CPP
-# define name2(a,b) a/**/b
-#else /* not TRADITIONAL_CPP */
-# define name2(a,b) name2x(a,b)
-# define name2x(a,b) a ## b
-#endif /* not TRADITIONAL_CPP */
+#define name2(a,b) name2x(a,b)
+#define name2x(a,b) a ## b
 
 // 'class ITABLE(T)' is the type of a hash table mapping an integer (int >= 0)
 // to an object of type T.
diff --git a/src/include/ptable.h b/src/include/ptable.h
index 8ac7bda..4bcbefb 100644
--- a/src/include/ptable.h
+++ b/src/include/ptable.h
@@ -21,12 +21,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <string.h>
 
 // name2(a,b) concatenates two C identifiers.
-#ifdef TRADITIONAL_CPP
-# define name2(a,b) a/**/b
-#else /* not TRADITIONAL_CPP */
-# define name2(a,b) name2x(a,b)
-# define name2x(a,b) a ## b
-#endif /* not TRADITIONAL_CPP */
+#define name2(a,b) name2x(a,b)
+#define name2x(a,b) a ## b
 
 // 'class PTABLE(T)' is the type of a hash table mapping a string
 // (const char *) to an object of type T.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]