[m-dev.] for review: print parts of variables
Zoltan Somogyi
zs at cs.mu.OZ.AU
Tue Jul 18 14:52:38 AEST 2000
On 18-Jul-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > +/* ML_arg() is defined in std_util.m */
> > +extern bool ML_arg(MR_TypeInfo term_type_info, Word *term, int arg_index,
> > + MR_TypeInfo *arg_type_info_ptr, Word **arg_ptr);
>
> Rather than declaring this manually, it would be better to include
> the header file:
>
> #ifdef MR_HIGHLEVEL_CODE
> #include "mercury.std_util.h"
> #else
> #include "std_util.h"
> #endif
I have followed your other suggestions, but this one doesn't work, since
ML_arg is defined in included C code, not via an export pragma, and thus
isn't declared in std_util.h.
It is arguable that such C functions belong in the runtime, but there is
no point in addressing this outside the context of the reorganization of
the part of the library dealing with RTTI.
Zoltan.
--------------------------------------------------------------------------
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