Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / beh / beh / beh_frebebux.c
1
2 /* ###--------------------------------------------------------------### */
3 /* */
4 /* file : beh_frebebux.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_frebebux */
19 /* description : delete a list of BEBUX structures and all objects */
20 /* pointed by any os BEBUXs in the list */
21 /* called func. : mbkfree */
22 /* ###--------------------------------------------------------------### */
23
24 void beh_frebebux (listbebux)
25
26 struct bebux *listbebux; /* list of bebux to be deleted */
27
28 {
29 struct bebux *ptbebux;
30
31 /* ###------------------------------------------------------### */
32 /* for each object of the list, first delete pointed objects */
33 /* then, delete the object itself */
34 /* ###------------------------------------------------------### */
35
36 while (listbebux != NULL)
37 {
38 beh_frebiabl (listbebux->BIABL);
39 beh_frebinode (listbebux->BINODE);
40
41 ptbebux = listbebux;
42 listbebux = listbebux->NEXT;
43 mbkfree (ptbebux);
44 }
45
46 }