[m-rev.] for review: fix failure of debugger/tailrec1

Julien Fischer jfischer at opturion.com
Thu Jun 26 17:19:42 AEST 2025


On Thu, 26 Jun 2025 at 17:11, Zoltan Somogyi <zoltan.somogyi at runbox.com> wrote:
>
...
>
> > Fix failure of debugger/tailrec1.
>
> In what circumstances did it fail?

The generated C code does not compile on testing.mercurylang.org:

tailrec1.m:60:17: error: call to undeclared function
'mercury_get_byte'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
   60 |     while ((c = mercury_get_byte((MercuryFilePtr) Stream)) != EOF &&
      |                 ^
tailrec1.m:60:17: error: call to undeclared function
'mercury_get_byte'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
   60 |     while ((c = mercury_get_byte((MercuryFilePtr) Stream)) != EOF &&

> Please document this, because
> I don't recall my own bootchecks ever showing this failure.

Shall do. Whether it fails or just generates a warning will depend on
how your C compiler
is configured.

Julien.


More information about the reviews mailing list