trivial diff: Fix warnings about incompatible pointer types
Mark Anthony BROWN
dougl at cs.mu.OZ.AU
Sat Feb 20 18:03:34 AEDT 1999
Estimated hours taken: 0.2
runtime/mercury_stack_trace.h:
runtime/mercury_stack_trace.c:
Fix some warnings about incompatible pointer types.
Index: runtime/mercury_stack_trace.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_stack_trace.c,v
retrieving revision 1.26
diff -u -r1.26 mercury_stack_trace.c
--- mercury_stack_trace.c 1999/02/18 23:32:51 1.26
+++ mercury_stack_trace.c 1999/02/20 06:24:48
@@ -19,11 +19,11 @@
static void MR_dump_stack_record_frame(FILE *fp,
const MR_Stack_Layout_Entry *,
Word *base_sp, Word *base_curfr,
- void *print_stack_record(
+ void (*print_stack_record)(
FILE *, const MR_Stack_Layout_Entry *,
int, int, Word *, Word *));
static void MR_dump_stack_record_flush(FILE *fp,
- void *print_stack_record(
+ void (*print_stack_record)(
FILE *, const MR_Stack_Layout_Entry *,
int, int, Word *, Word *));
@@ -61,7 +61,7 @@
const char *
MR_dump_stack_from_layout(FILE *fp, const MR_Stack_Layout_Entry *entry_layout,
Word *det_stack_pointer, Word *current_frame, bool include_trace_data,
- void *print_stack_record(FILE *, const MR_Stack_Layout_Entry *,
+ void (*print_stack_record)(FILE *, const MR_Stack_Layout_Entry *,
int, int, Word *, Word *))
{
MR_Stack_Walk_Step_Result result;
@@ -284,7 +284,7 @@
static void
MR_dump_stack_record_frame(FILE *fp, const MR_Stack_Layout_Entry *entry_layout,
- Word *base_sp, Word *base_curfr, void *print_stack_record(
+ Word *base_sp, Word *base_curfr, void (*print_stack_record)(
FILE *, const MR_Stack_Layout_Entry *, int, int, Word *, Word *))
{
bool must_flush;
@@ -326,7 +326,7 @@
}
static void
-MR_dump_stack_record_flush(FILE *fp, void *print_stack_record(
+MR_dump_stack_record_flush(FILE *fp, void (*print_stack_record)(
FILE *, const MR_Stack_Layout_Entry *, int, int, Word *, Word *))
{
if (prev_entry_layout != NULL) {
Index: runtime/mercury_stack_trace.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_stack_trace.h,v
retrieving revision 1.15
diff -u -r1.15 mercury_stack_trace.h
--- mercury_stack_trace.h 1999/02/18 23:32:53 1.15
+++ mercury_stack_trace.h 1999/02/20 06:24:49
@@ -57,7 +57,7 @@
const MR_Stack_Layout_Entry *entry_layout,
Word *det_stack_pointer, Word *current_frame,
bool include_trace_data,
- void *print_stack_record(FILE *,
+ void (*print_stack_record)(FILE *,
const MR_Stack_Layout_Entry *,
int, int, Word *, Word *));
--
Mark Brown (dougl at cs.mu.oz.au) )O+ | For Microsoft to win,
MEngSc student, | the customer must lose
Dept of Computer Science, Melbourne Uni | -- Eric S. Raymond
More information about the developers
mailing list