trivial diff: fix a #ifdef problem
Zoltan Somogyi
zs at cs.mu.OZ.AU
Thu Mar 11 17:32:16 AEDT 1999
runtime/mercury_label.c:
Move the declaration of a local static function, so that it is
covered by the same #ifdef as are its definition and use.
Zoltan.
Index: mercury_label.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_label.c,v
retrieving revision 1.11
diff -u -b -u -r1.11 mercury_label.c
--- mercury_label.c 1998/09/21 09:05:23 1.11
+++ mercury_label.c 1999/02/11 05:18:24
@@ -87,8 +87,6 @@
#ifdef MR_NEED_ENTRY_LABEL_INFO
-static int compare_entry_addr(const void *e1, const void *e2);
-
void
MR_insert_entry_label(const char *name, Code *addr,
const MR_Stack_Layout_Entry *entry_layout)
@@ -106,7 +104,6 @@
#endif
#ifdef MR_NEED_ENTRY_LABEL_ARRAY
-
if (entry_array_next >= entry_array_size) {
entry_array_size *= 2;
entry_array = realloc(entry_array,
@@ -127,6 +124,8 @@
#endif
#ifdef MR_NEED_ENTRY_LABEL_ARRAY
+
+static int compare_entry_addr(const void *e1, const void *e2);
static int
compare_entry_addr(const void *e1, const void *e2)
More information about the developers
mailing list