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:
David Jeffery
1995-11-20 09:57:24 +00:00
parent 1fdaa23c07
commit 970bf7b2f1
3 changed files with 115 additions and 52 deletions

View File

@@ -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