[COMMIT] Cast correctly, Dynarr_verify, Dynarr_verify_mod, no ERROR_CHECK_STRUCTURES
Aidan Kehoe
kehoea at parhasard.net
Sun Feb 7 18:36:48 EST 2010
APPROVE COMMIT
NOTE: This patch has been committed.
# HG changeset patch
# User Aidan Kehoe <kehoea at parhasard.net>
# Date 1265585661 0
# Node ID 4170f3809a2870c3a23b0398591e6255332a968c
# Parent 788c38f20376aedb486f823b63f6d5490da3cd48
Cast correctly, Dynarr_verify, Dynarr_verify_mod, no ERROR_CHECK_STRUCTURES
2010-02-07 Aidan Kehoe <kehoea at parhasard.net>
* lisp.h (Dynarr_verify, Dynarr_verify_mod):
If ERROR_CHECK_STRUCTURES is not defined, cast the argument in
these two macros; fixes the g++ build.
diff -r 788c38f20376 -r 4170f3809a28 src/ChangeLog
--- a/src/ChangeLog Sun Feb 07 23:31:50 2010 +0000
+++ b/src/ChangeLog Sun Feb 07 23:34:21 2010 +0000
@@ -1,3 +1,9 @@
+2010-02-07 Aidan Kehoe <kehoea at parhasard.net>
+
+ * lisp.h (Dynarr_verify, Dynarr_verify_mod):
+ If ERROR_CHECK_STRUCTURES is not defined, cast the argument in
+ these two macros; fixes the g++ build.
+
2010-02-07 Aidan Kehoe <kehoea at parhasard.net>
* fileio.c (Finsert_file_contents_internal):
diff -r 788c38f20376 -r 4170f3809a28 src/lisp.h
--- a/src/lisp.h Sun Feb 07 23:31:50 2010 +0000
+++ b/src/lisp.h Sun Feb 07 23:34:21 2010 +0000
@@ -1859,8 +1859,8 @@
dy->locked = 0; \
} while (0)
#else
-#define Dynarr_verify(d) (d)
-#define Dynarr_verify_mod(d) (d)
+#define Dynarr_verify(d) ((Dynarr *) d)
+#define Dynarr_verify_mod(d) ((Dynarr *) d)
#define Dynarr_lock(d) DO_NOTHING
#define Dynarr_unlock(d) DO_NOTHING
#endif /* ERROR_CHECK_STRUCTURES */
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
More information about the XEmacs-Patches
mailing list