2 /* ###--------------------------------------------------------------### */
4 /* file : beh_addbebux.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_addbebux */
19 /* description : create a BEBUX structure at the top the list */
20 /* called func. : namealloc, mbkalloc */
21 /* ###--------------------------------------------------------------### */
23 bebux_list
*beh_addbebux (lastbebux
, name
, biabl
, binode
, type
, flags
)
25 bebux_list
*lastbebux
; /* pointer on the last bebux structure */
26 char *name
; /* signal's name */
27 biabl_list
*biabl
; /* signal's expression (ABL) */
28 binode_list
*binode
; /* signal's expression (BDD) */
29 char type
; /* signal's type mark (M or W) */
34 name
= namealloc (name
);
36 ptbux
= (struct bebux
*) mbkalloc (sizeof(struct bebux
));
39 ptbux
->BINODE
= binode
;
42 ptbux
->NEXT
= lastbebux
;