gbranden pushed a commit to branch master
in repository groff.
commit 203e91bcf5c0a6e8244888e3dfe646dd1a8baa0e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jul 11 05:57:17 2025 -0500
src/preproc/pic/pic.ypp: Revert old workaround.
* src/preproc/pic/pic.ypp (object_spec): Revert "workaround for bug in
Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885)" on the
assumption that this compiler version has reached its end-of-support
date.
Partially reverts commit 6b46d10a28, 6 June 2003.
---
ChangeLog | 7 +++++++
src/preproc/pic/pic.ypp | 8 --------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5355fce85..0994aa3fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-07-11 G. Branden Robinson <[email protected]>
+
+ * src/preproc/pic/pic.ypp (object_spec): Revert "workaround for
+ bug in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev.
+ 1885)" on the assumption that this compiler version has reached
+ its end-of-support date.
+
2025-07-11 G. Branden Robinson <[email protected]>
* src/preproc/pic/pic.ypp: Fix code style nit. Give the
diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index 809c5a2cc..d9944be12 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -1195,16 +1195,8 @@ sprintf_args:
else {
double *oldv = $$.v;
$$.maxv *= 2;
-#if 0
$$.v = new double[$$.maxv];
memcpy($$.v, oldv, ($$.nv * sizeof(double)));
-#else
- // workaround for bug in Compaq C++ V6.5-033
- // for Compaq Tru64 UNIX V5.1A (Rev. 1885)
- double *foo = new double[$$.maxv];
- memcpy(foo, oldv, ($$.nv * sizeof(double)));
- $$.v = foo;
-#endif
delete[] oldv;
}
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit