[m-dev.] for review: direct retry

Peter Ross petdr at miscrit.be
Mon Oct 16 19:33:53 AEDT 2000


On Mon, Oct 16, 2000 at 12:56:40PM +1100, Zoltan Somogyi wrote:
> On 13-Oct-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > How does `MR_saved_r1(save_area)' differ from `saved_reg(save_area, 1)',
> > where saved_reg() is the existing macro defined in mercury_regs.h?
> > Other than by having an `MR_' prefix, of course ;-)
> 
> By my knowing about it :-(
> 
> > > +	MR_EvalMethod		MR_sle_eval_method:8;
> > 
> > Standard ANSI/ISO C does not allow enum bitfields.
> 
> Ah. I could easily fix this, by making the field of type MR_int_least8_t and
> casting it where it is referenced, but I would prefer not to. It would not be
> too bad for this field, since it is used only once or twice, but I want to
> make type_ctor_rep another 8-bit enum field, and *that* is used in lots of
> places.
> 
> Is this likely to be a problem in practice? Does MSVC support enum bitfields?
> 
I have no idea, and I cannot test it until I get to MC (I am
currently located at KUL, working with Nancy on integrating her
structure reuse analysis) which will not be for at least another week.

Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list