Here's a small bug fix to compiling external modules that declare new
lrecord types:
Index: lrecord.h
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/lrecord.h,v
retrieving revision 1.9
diff -u -r1.9 lrecord.h
--- lrecord.h 2001/04/12 18:24:00 1.9
+++ lrecord.h 2001/05/05 00:20:16
@@ -495,7 +495,7 @@
#define INIT_EXTERNAL_LRECORD_IMPLEMENTATION(type) do {
\
lrecord_type_##type = lrecord_type_count++;
\
- lrecord_##type.lrecord_type_index = lrecord_type_##type;
\
+ lrecord_##type.lrecord_type_index = (enum
lrecord_type)lrecord_type_##type; \
INIT_LRECORD_IMPLEMENTATION(type);
\
} while (0)
We just needed one more typecast to stop gcc from complaining about
casting an unsigned int to an enum lrecord_type.
Andrew
Show replies by date