2 /* ###--------------------------------------------------------------### */
4 /* file : beh_frebeaux.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_frebeaux */
19 /* description : delete a list of BEAUX structures and all objects */
20 /* pointed by any os BEAUXs in the list */
21 /* called func. : mbkfree */
22 /* ###--------------------------------------------------------------### */
24 void beh_frebeaux (listbeaux
)
26 struct beaux
*listbeaux
; /* list of beaux to be deleted */
29 struct beaux
*ptbeaux
;
31 /* ###------------------------------------------------------### */
32 /* for each object of the list, first delete pointed objects */
33 /* then, delete the object itself */
34 /* ###------------------------------------------------------### */
36 while (listbeaux
!= NULL
)
38 freeExpr (listbeaux
->ABL
);
41 listbeaux
= listbeaux
->NEXT
;