[m-rev.] diff: move attributes implementation from dotnet-foreign to main

Tyson Dowd trd at cs.mu.OZ.AU
Sat Aug 25 01:45:49 AEST 2001


> +:- pred output_custom_decl(custom_decl::in, ilasm_info::in, ilasm_info::out,
> +		io__state::di, io__state::uo) is det.
> +output_custom_decl(custom_decl(Type, MaybeOwner, StringOrBytes), 
> +		Info0, Info) -->
> +	io__write_string(".custom "),
> +
> +	( { MaybeOwner = yes(Owner) } ->
> +		io__write_string(" ("),
> +		output_custom_type(Owner, Info0, Info1),
> +		io__write_string(") ")
> +	;
> +		{ Info1 = Info0 }
> +	),
> +	output_custom_type(Type, Info1, Info),
> +	( { StringOrBytes = bytes(Bytes) } ->
> +		io__write_string(" = ("),
> +		io__write_list(Bytes, " ", output_hexbyte),
> +		io__write_string(")")
> +	;
> +		[]
> +	),
> +	io__write_string("\n").

I need to add code to call error here, as we don't handle the other
cases of custom_decls just yet.

Tyson.
--------------------------------------------------------------------------
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