/*
-** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2000.
+** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
** See ../LICENSE for license information.
**
*/
# ifndef idDecl_H
# define idDecl_H
-struct _idDecl
+struct s_idDecl
{
cstring id;
qtype typ;
+ functionClauseList clauses;
} ;
/*@constant null idDecl idDecl_undefined; @*/
extern void idDecl_free (/*@only@*/ idDecl p_t);
extern /*@only@*/ idDecl
idDecl_create (/*@only@*/ cstring p_s, /*@only@*/ qtype p_t);
+
+extern /*@only@*/ idDecl
+ idDecl_createClauses (/*@only@*/ cstring p_s, /*@only@*/ qtype p_t,
+ /*@only@*/ functionClauseList p_clauses);
+
extern /*@only@*/ cstring idDecl_unparse (idDecl p_d);
+extern /*@only@*/ cstring idDecl_unparseC (idDecl p_d);
extern /*@exposed@*/ qtype idDecl_getTyp (idDecl p_d);
extern void idDecl_setTyp (idDecl p_d, /*@only@*/ qtype p_c);
extern idDecl idDecl_expectFunction (/*@returned@*/ idDecl p_d);
extern idDecl idDecl_replaceCtype (/*@returned@*/ idDecl p_d, ctype p_c);
extern idDecl idDecl_fixBase (/*@returned@*/ idDecl p_t, qtype p_b);
extern idDecl idDecl_fixParamBase (/*@returned@*/ idDecl p_t, qtype p_b);
+
+extern void idDecl_addClauses (idDecl p_d, /*@only@*/ functionClauseList) /*@modifies p_d@*/ ;
+
extern ctype idDecl_getCtype (idDecl p_d) /*@*/ ;
extern /*@exposed@*/ qualList idDecl_getQuals (idDecl p_d) /*@*/ ;
+extern /*@exposed@*/ functionClauseList idDecl_getClauses (idDecl p_d) /*@*/ ;
extern /*@dependent@*/ /*@observer@*/ cstring idDecl_getName (idDecl p_t) /*@*/ ;
extern /*@observer@*/ cstring idDecl_observeId (idDecl p_d) /*@*/ ;