Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / beh / beh / beh_addbebux.c
1
2 /* ###--------------------------------------------------------------### */
3 /* */
4 /* file : beh_addbebux.c */
5 /* date : Sep 3 1993 */
6 /* version : v106 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
9 /* */
10 /* ###--------------------------------------------------------------### */
11
12 #include <stdio.h>
13 #include MUT_H
14 #include LOG_H
15 #include BEH_H
16
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_addbebux */
19 /* description : create a BEBUX structure at the top the list */
20 /* called func. : namealloc, mbkalloc */
21 /* ###--------------------------------------------------------------### */
22
23 bebux_list *beh_addbebux (lastbebux, name, biabl, binode, type, flags)
24
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) */
30 char flags;
31 {
32 struct bebux *ptbux;
33
34 name = namealloc (name);
35
36 ptbux = (struct bebux *) mbkalloc (sizeof(struct bebux));
37 ptbux->NAME = name;
38 ptbux->BIABL = biabl;
39 ptbux->BINODE = binode;
40 ptbux->TYPE = type;
41 ptbux->FLAGS = flags;
42 ptbux->NEXT = lastbebux;
43
44 return (ptbux);
45 }