hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

regfree.c (1334B)


      1 /*
      2  * Changes by Gunnar Ritter, Freiburg i. Br., Germany, November 2002.
      3  *
      4  * Sccsid @(#)regfree.c	1.3 (gritter) 9/22/03
      5  */
      6 /*  UNIX(R) Regular Expresssion Library
      7  *
      8  *  Note: Code is released under the GNU LGPL
      9  *
     10  *  Copyright (C) 2001 Caldera International, Inc.
     11  *
     12  *  This library is free software; you can redistribute it and/or
     13  *  modify it under the terms of the GNU Lesser General Public
     14  *  License as published by the Free Software Foundation; either
     15  *  version 2 of the License, or (at your option) any later version.
     16  *
     17  *  This library is distributed in the hope that it will be useful,
     18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     20  *  Lesser General Public License for more details.
     21  *
     22  *  You should have received a copy of the GNU Lesser General Public
     23  *  License along with this library; if not, write to:
     24  *        Free Software Foundation, Inc.
     25  *        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     26  */
     27 
     28 /*	#include "synonyms.h"	*/
     29 #include "re.h"
     30 
     31 /*	#pragma weak regfree = _regfree	*/
     32 
     33 void
     34 regfree(regex_t *ep)
     35 {
     36 	if (ep->re_flags & REG_DFA)
     37 		libuxre_regdeldfa(ep->re_dfa);
     38 	if (ep->re_flags & REG_NFA)
     39 		libuxre_regdelnfa(ep->re_nfa);
     40 	if (ep->re_col != 0)
     41 		(void)libuxre_lc_collate(ep->re_col);
     42 }