2 /* ###--------------------------------------------------------------### */
4 /* file : beh_addbepor.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_addbepor */
19 /* description : create a BEPOR structure at the top the list */
20 /* called func. : namealloc, mbkalloc */
21 /* ###--------------------------------------------------------------### */
23 bepor_list
*beh_addbepor (lastbepor
, name
, dir
, type
)
25 bepor_list
*lastbepor
; /* pointer on the last bepor structure */
26 char *name
; /* signal's name */
27 char dir
; /* signal's mode (I, O, B, Z, or T) */
28 char type
; /* signal'type mark (M or W) */
31 struct bepor
*ptbepor
;
33 name
= namealloc (name
);
35 ptbepor
= (struct bepor
*) mbkalloc (sizeof(struct bepor
));
37 ptbepor
->DIRECTION
= dir
;
39 ptbepor
->NEXT
= lastbepor
;