From e35843d4765fa27825fe85c0437416d643b9769d Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 31 Oct 1992 00:35:08 +0000 Subject: * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to remap all malloc's to xmalloc's and all realloc's to xrealloc's. * c-exp.y, m2-exp.y: Add comment about how malloc/realloc are remapped to xmalloc/xrealloc, use only malloc/realloc in grammer file. Remove preprocessor defines that previously did remapping. --- gdb/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/Makefile.in') diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9e0c0c4..c4a5cda 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -673,6 +673,8 @@ c-exp.tab.c: $(srcdir)/c-exp.y -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ + -e 's/malloc/xmalloc/g' \ + -e 's/realloc/xrealloc/g' \ < y.tab.c > c-exp.tab.c -rm y.tab.c @@ -684,6 +686,8 @@ m2-exp.tab.c: $(srcdir)/m2-exp.y -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ + -e 's/malloc/xmalloc/g' \ + -e 's/realloc/xrealloc/g' \ < y.tab.c > m2-exp.tab.c -rm y.tab.c -- cgit v1.1