[m-rev.] diff: c_code formatting
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Aug 19 15:08:47 AEST 2002
On 18-Aug-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> compiler/llds_out.m:
> Do not add a newline at the end of such C code fragments.
I am worried that this might cause problems with examples where user
C code fragments are not terminated with a newline, such as
:- pragma foreign_decl(c, "#define FOO BAR").
:- pred foo is det.
:- pragma foreign_proc(foo, c, "// this is a C99 comment").
These are currently allowed and IMHO should be allowed.
Do they still work with this change?
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list