From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 25 Jul 2003 07:12:11 +0000 (+0000)
Subject: Let the user specify how to allocate and free memory.
X-Git-Tag: BISON-2_0~228
X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/137437c6db9608a500ae602a526a28bd40c063d0

Let the user specify how to allocate and free memory.
---

diff --git a/ChangeLog b/ChangeLog
index 6be71c9f..7695097c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-07-25  Paul Eggert  <eggert@twinsun.com>
+
+	Let the user specify how to allocate and free memory.
+	Derived from a suggestion by Frank Heckenbach in
+	<http://mail.gnu.org/archive/html/bison-patches/2003-06/msg00041.html>.
+	* data/glr.c (YYFREE, YYMALLOC, YYREALLOC): New macros.
+	All uses of free, malloc, realloc changed to use these macros,
+	and unnecessary casts removed.
+	* data/yacc.c (YYFREE, YYMALLOC): Likewise.
+
 2003-07-06  Matthias Mann  <MatthiasMann@gmx.de>
 
 	* data/lalr1.cc (operator<<(std::ostream&, const Position&)):
@@ -122,7 +132,7 @@
 	Allow states with only a default reduction, rather than failing
 	(I can't quite reconstruct why these were not allowed before).
 
-        Fixes to avoid problem that $-N rules in GLR parsers can cause
+	Fixes to avoid problem that $-N rules in GLR parsers can cause
 	buffer overruns, corrupting state.
 
 	* src/output.c (prepare_rules): Output max_left_semantic_context