groff-commit
[Top][All Lists]
Advanced

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

[groff] 17/34: Drop support for `ARRAY_DELETE_NEEDS_SIZE`.


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

gbranden pushed a commit to branch master
in repository groff.

commit bda851ae93e1979514b547e0e83992092719ab64
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Aug 28 09:45:16 2021 +1000

    Drop support for `ARRAY_DELETE_NEEDS_SIZE`.
    
    * src/include/lib.h [ARRAY_DELETE_NEEDS_SIZE]: Drop preprocessor
      conditional branch.  This abandons support for certain pre-ISO C++98
      compilers.  (According to a now-removed comment, unsized array
      deletion was documented in "ARM", meaning _The C++ Annotated Reference
      Manual_, published in 1989.)
    
    * Makefile.am: Undocument preprocessor symbol.
---
 ChangeLog         | 12 ++++++++++++
 Makefile.am       |  2 --
 src/include/lib.h |  8 --------
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 15b9448..ce33d2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2021-08-27  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [libgroff]: Drop support for `ARRAY_DELETE_NEEDS_SIZE`.
+
+       * src/include/lib.h [ARRAY_DELETE_NEEDS_SIZE]: Drop preprocessor
+       conditional branch.  This abandons support for certain pre-ISO
+       C++98 compilers.  (According to a now-removed comment, unsized
+       array deletion was documented in "ARM", meaning _The C++
+       Annotated Reference Manual_, published in 1989.)
+
+       * Makefile.am: Undocument preprocessor symbol.
+
+2021-08-27  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [libgroff]: Drop redefinition of `INT_MIN`.
 
        * src/include/lib.h: Drop redefinition of `INT_MIN`.  It was
diff --git a/Makefile.am b/Makefile.am
index 5303dae..e2ef2eb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -443,8 +443,6 @@ man7dir=$(manroot)/man$(man7ext)
 #
 # TRADITIONAL_CPP              if your C++ compiler uses a traditional
 #                              (Reiser) preprocessor
-# ARRAY_DELETE_NEEDS_SIZE      if your C++ doesn't understand `delete []'
-#
 # 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/lib.h b/src/include/lib.h
index 807a53f..6b2613e 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -134,13 +134,5 @@ const double PI = 3.14159265358979323846;
 
 /* ad_delete deletes an array of objects with destructors;
    a_delete deletes an array of objects without destructors */
-
-#ifdef ARRAY_DELETE_NEEDS_SIZE
-/* for 2.0 systems */
-#define ad_delete(size) delete [size]
-#define a_delete delete
-#else /* !ARRAY_DELETE_NEEDS_SIZE */
-/* for ARM systems */
 #define ad_delete(size) delete []
 #define a_delete delete []
-#endif /* !ARRAY_DELETE_NEEDS_SIZE */



reply via email to

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