gbranden pushed a commit to branch master
in repository groff.
commit 3d3fa82224e90880434dfb86b301a82dc3708c54
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jan 3 18:47:04 2024 -0600
[libgroff]: Annotate future direction.
---
src/include/itable.h | 3 +++
src/include/ptable.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/include/itable.h b/src/include/itable.h
index e3190c512..61af83894 100644
--- a/src/include/itable.h
+++ b/src/include/itable.h
@@ -22,6 +22,9 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <assert.h>
+// This groffism can be replaced with std::unordered_map<int, T> if/when
+// we migrate to C++11.
+
// '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 36d1f4540..b5a5d42e7 100644
--- a/src/include/ptable.h
+++ b/src/include/ptable.h
@@ -23,6 +23,9 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <assert.h>
#include <string.h>
+// This groffism can be replaced with
+// std::unordered_map<const char *, T> if/when we migrate to C++11.
+
// 'class PTABLE(T)' is the type of a hash table mapping a string
// (const char *) to an object of type T.
//
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit