2 /* ###--------------------------------------------------------------### */
4 /* file : beh_addbeaux.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_addbeaux */
19 /* description : create a BEAUX structure at the top the list */
20 /* called func. : namealloc, mbkalloc */
21 /* ###--------------------------------------------------------------### */
23 struct beaux
*beh_addbeaux (struct beaux
*lastbeaux
, char *name
, struct chain
*abl_expr
, struct node
*bdd_expr
, long flags
)
28 name
= namealloc (name
);
30 ptaux
= (struct beaux
*) mbkalloc (sizeof(struct beaux
));
33 ptaux
->TIMER
= ptaux
->TIMEF
= 0;
34 ptaux
->TIMEVAR
= NULL
;
35 ptaux
->ABL
= abl_expr
;
36 ptaux
->NODE
= bdd_expr
;
37 ptaux
->NEXT
= lastbeaux
;