|
Revision 1294, 0.6 kB
(checked in by whmoseley, 5 years ago)
|
* Jose, I had to comment out snowball's use of swish-e's efree, emalloc, etc.
so I could build swish-e with memory debugging turned on. I don't see any
reason to make external code use swish-e's memory allocation functions (libs
like libxml2 don't either). But if you do then we would need to include mem.h
as well.
* Fixed a memory leak when destroying a swish handle...the index file name was not
freed nor was the index structure itself. Hard to imagine how I missed those.
* Fixed a leak in the way the example "libtest" program was cleaning up after an error.
(i.e. it wasn't).
* Added a new file config/acinclude.m4 with a macro to make setting those MEM_*
defines easier. (makes adding a --enable-foo option to configure easy.)
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
# ENABLE_DEFINE( variable, define variable, help message) |
|---|
| 2 |
# Provides an --enable-foo option and a way to set a acconfig.h define switch |
|---|
| 3 |
# e.g. ENABLE_DEFINE([memdebug], [MEM_DEBUG], [Memory Debugging]) |
|---|
| 4 |
#---------------------------------------------------------------- |
|---|
| 5 |
|
|---|
| 6 |
AC_DEFUN([ENABLE_DEFINE], |
|---|
| 7 |
[ AC_MSG_CHECKING([config option $1 for setting $2]) |
|---|
| 8 |
AC_ARG_ENABLE([$1], |
|---|
| 9 |
AC_HELP_STRING([--enable-$1], [$3]), |
|---|
| 10 |
, |
|---|
| 11 |
enableval=no) |
|---|
| 12 |
AC_MSG_RESULT($enableval) |
|---|
| 13 |
if test x"$enableval" != xno ; then |
|---|
| 14 |
AC_DEFINE([$2], 1, [$3]) |
|---|
| 15 |
fi]) |
|---|
| 16 |
|
|---|
| 17 |
|
|---|