[m-rev.] diff: fix runtime_opt
Zoltan Somogyi
zs at csse.unimelb.edu.au
Mon Dec 11 21:22:05 AEDT 2006
runtime/mercury_wrapper.c:
Fix the hard_coded/runtime_opts test case. The problem was that getopts
was returning '?' to indicate an unrecognized option, but due to the
increase in the number of long options recently, the ASCII code for '?'
was interpreted as the MR_TRACE_COUNT_FILE value in the MR_long_option
enum.
The fix is to raise all values of that enum out of the range of
ASCII codes.
Zoltan.
cvs diff: Diffing .
Index: mercury_wrapper.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_wrapper.c,v
retrieving revision 1.174
diff -u -b -r1.174 mercury_wrapper.c
--- mercury_wrapper.c 1 Dec 2006 04:53:43 -0000 1.174
+++ mercury_wrapper.c 11 Dec 2006 10:07:51 -0000
@@ -1023,7 +1023,7 @@
}
enum MR_long_option {
- MR_HEAP_SIZE,
+ MR_HEAP_SIZE = 256,
MR_HEAP_SIZE_KWORDS,
MR_DETSTACK_SIZE,
MR_DETSTACK_SIZE_KWORDS,
cvs diff: Diffing GETOPT
cvs diff: Diffing machdeps
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list