1 /****************************************************************************/
3 /* Chaine de CAO & VLSI AVERTEC */
5 /* Produit : AVERTEC global tools */
6 /* Fichier : inf_stb.c */
8 /* © copyright 2004 AVERTEC */
9 /* Tous droits reserves */
11 /* Auteur(s) : Antony PINTO */
13 /****************************************************************************/
18 /****************************************************************************/
20 /****************************************************************************/
21 /*{{{ inf_stb_parse_spec_alloc() */
24 /****************************************************************************/
26 inf_stb_parse_spec_alloc(inf_stb_p_s
*next
)
30 res
= mbkalloc(sizeof(inf_stb_p_s
));
32 res
->STABILITY
= NULL
;
41 /*}}}************************************************************************/
42 /*{{{ inf_stb_parse_spec_stab_alloc() */
45 /****************************************************************************/
47 inf_stb_parse_spec_stab_alloc(inf_stb_p_s_stab
*next
)
49 inf_stb_p_s_stab
*res
;
51 res
= mbkalloc(sizeof(inf_stb_p_s_stab
));
53 res
->TIME_LIST
= NULL
;
61 /*}}}************************************************************************/
62 /*{{{ inf_stb_parse_spec_free() */
65 /****************************************************************************/
67 inf_stb_parse_spec_free(inf_stb_p_s
*pt
)
70 pt
= inf_stb_parse_spec_del(pt
);
73 /*}}}************************************************************************/
74 /*{{{ inf_stb_parse_spec_stab_free() */
77 /****************************************************************************/
79 inf_stb_parse_spec_stab_free(inf_stb_p_s_stab
*pt
)
82 pt
= inf_stb_parse_spec_stab_del(pt
);
85 /*}}}************************************************************************/
86 /*{{{ inf_stb_parse_spec_del() */
89 /****************************************************************************/
91 inf_stb_parse_spec_del(inf_stb_p_s
*pt
)
96 inf_stb_parse_spec_stab_free(pt
->STABILITY
);
102 /*}}}************************************************************************/
103 /*{{{ inf_stb_parse_spec_stab_del() */
106 /****************************************************************************/
108 inf_stb_parse_spec_stab_del(inf_stb_p_s_stab
*pt
)
110 inf_stb_p_s_stab
*next
;
113 for (cl
=pt
->TIME_LIST
; cl
!=NULL
; cl
=cl
->NEXT
) mbkfree(cl
->DATA
);
114 freechain(pt
->TIME_LIST
);
120 /*}}}************************************************************************/
121 /*}}}************************************************************************/
122 inf_stb_p_s
* inf_stb_spec_exists(inf_stb_p_s
*pt
, inf_stb_p_s
*list
)
126 if (list
->CKNAME
==pt
->CKNAME
127 && list
->CKEDGE
==pt
->CKEDGE
128 && list
->SPECTYPE
==pt
->SPECTYPE
129 && list
->DATAEDGE
==pt
->DATAEDGE
130 && list
->HZOPTION
==pt
->HZOPTION
)