Hi,
From alloc.c:
--8<---------------cut
here---------------start------------->8---
#ifdef ERROR_CHECK_MALLOC
[...]
#define MALLOC_BEGIN() \
do \
{ \
assert (!in_malloc); \
assert (!regex_malloc_disallowed); \
in_malloc = 1; \
} \
while (0)
[...]
#else /* ERROR_CHECK_MALLOC */
#define MALLOC_BEGIN(block)
[...]
#endif /* ERROR_CHECK_MALLOC */
--8<---------------cut here---------------end--------------->8---
When ERROR_CHECK_MALLOC defined, compiling is ok - MALLOC_BEGIN is
running whithout args in functions xmalloc() and xcalloc(). When is not
defined, XEmacs is not compiled.
2005-02-23 Andrey Slusar <anrays(a)gmail.com>
* alloc.c (MALLOC_BEGIN): MALLOC_BEGIN is not reguire arg
`block'.
Index: src/alloc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/alloc.c,v
retrieving revision 1.106
diff -u -r1.106 alloc.c
--- src/alloc.c 2005/02/03 16:14:04 1.106
+++ src/alloc.c 2005/02/23 00:01:18
@@ -349,7 +349,7 @@
#else /* ERROR_CHECK_MALLOC */
-#define MALLOC_BEGIN(block)
+#define MALLOC_BEGIN()
#define FREE_OR_REALLOC_BEGIN(block)
#define MALLOC_END()
--
Regards,
Andrey.