mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 06:47:17 +00:00
Added better warnings and error messages. Fixed bug with having
Estimated hours taken: 3 Added better warnings and error messages. Fixed bug with having pragma(c_code, ...) decs for different modes of the same pred, and with having clauses and pragma(c_code, ...) decs. hlds.m: Added a fields to the pred_info indicating whether the pred contained pragma(c_code, ...) decs, clauses, or was currently empty. Also updated the access predicates, and require a new argument for pred_info_init lambda.m: Pass the new argument to pred_info_init make_hlds.m: Improve error messages and warnings. Fix bug with pragma decs for different modes, and bug with clauses an pragmas for same pred.
This commit is contained in:
@@ -314,7 +314,7 @@ XXX this optimization temporarily disabled, see comment above
|
||||
clauses_info_init(Arity, ClausesInfo),
|
||||
pred_info_init(ModuleName, PredName, Arity, TVarSet,
|
||||
ArgTypes, Cond, LambdaContext, ClausesInfo, Status,
|
||||
no, PredInfo0),
|
||||
no, none, PredInfo0),
|
||||
|
||||
%
|
||||
% Create a single mode for the new predicate, and insert
|
||||
|
||||
Reference in New Issue
Block a user