]>
git.saurik.com Git - wxWidgets.git/blob - src/regex/regfree.c
1 #if defined(__MWERKS__) && !defined(__MACH__)
14 - regfree - free everything
15 = extern void regfree(regex_t *);
21 register struct re_guts
*g
;
23 if (preg
->re_magic
!= MAGIC1
) /* oops */
24 return; /* nice to complain, but hard */
27 if (g
== NULL
|| g
->magic
!= MAGIC2
) /* oops again */
29 preg
->re_magic
= 0; /* mark it invalid */
30 g
->magic
= 0; /* mark it invalid */
33 free((char *)g
->strip
);
35 free((char *)g
->sets
);
36 if (g
->setbits
!= NULL
)
37 free((char *)g
->setbits
);