[m-dev.] for review: clean up MLDS init functions
Ralph Becket
rbeck at microsoft.com
Thu Nov 9 03:26:30 AEDT 2000
>From Fergus Henderson on 08/11/2000 16:12:45
> - mlds_output_init_main_fn(ModuleName, Defns).
> +mlds_output_calls_to_init_entry(_ModuleName, []) --> [].
> +mlds_output_calls_to_init_entry(ModuleName, [FuncDefn | FuncDefns]) -->
> + { FuncDefn = mlds__defn(EntityName, _, _, _) },
> + io__write_string("\tMR_init_entry("),
> + mlds_output_fully_qualified_name(qual(ModuleName, EntityName)),
> + io__write_string(");\n"),
> + mlds_output_calls_to_init_entry(ModuleName, FuncDefns).
> [...]
It's probably too late to change things now, but it seems to me that
the pretty-printing library could go a long way to making this more
readable and maintainable.
Or is that taking a sledgehammer to a walnut?
--
Ralph Becket | MSR Cambridge | rbeck at microsoft.com
--------------------------------------------------------------------------
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