mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
* configure.in: Invoke AM_LIB_DMALLOC.
* src/system.h: Use dmalloc. * src/LR0.c: Be sure to have pointers initialized to NULL. (allocate_itemsets): Allocate kernel_items only if needed.
This commit is contained in:
16
src/system.h
16
src/system.h
@@ -143,8 +143,6 @@ size_t strnlen PARAMS ((const char *s, size_t maxlen));
|
||||
# define LOCALEDIR "/usr/local/share/locale"
|
||||
#endif
|
||||
|
||||
#endif /* BISON_SYSTEM_H */
|
||||
|
||||
|
||||
/*-----------.
|
||||
| Booleans. |
|
||||
@@ -264,3 +262,17 @@ do { \
|
||||
# define BISON_HAIRY "c:/usr/local/lib/bison.hairy"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/*---------------------------------.
|
||||
| Debugging the memory allocator. |
|
||||
`---------------------------------*/
|
||||
|
||||
# if WITH_DMALLOC
|
||||
# define DMALLOC_FUNC_CHECK
|
||||
# include <dmalloc.h>
|
||||
|
||||
# endif /* WITH_DMALLOC */
|
||||
|
||||
|
||||
#endif /* BISON_SYSTEM_H */
|
||||
|
||||
Reference in New Issue
Block a user