summaryrefslogtreecommitdiffstats
path: root/generic/regfree.c
blob: 71263ab708dd2fb1653754528a7ff80f8f7003d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * regfree - free an RE
 *
 * Copyright © 1998, 1999 Henry Spencer.  All rights reserved.
 *
 * Development of this software was funded, in part, by Cray Research Inc.,
 * UUNET Communications Services Inc., Sun Microsystems Inc., and Scriptics
 * Corporation, none of whom are responsible for the results.  The author
 * thanks all of them.
 *
 * Redistribution and use in source and binary forms -- with or without
 * modification -- are permitted for any purpose, provided that
 * redistributions in source form retain this entire copyright notice and
 * indicate the origin and nature of any modifications.
 *
 * I'd appreciate being given credit for this package in the documentation of
 * software which uses it, but that is not a requirement.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
 * HENRY SPENCER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * You might think that this could be incorporated into regcomp.c, and that
 * would be a reasonable idea... except that this is a generic function (with
 * a generic name), applicable to all compiled REs regardless of the size of
 * their characters, whereas the stuff in regcomp.c gets compiled once per
 * character size.
 */

#include "regguts.h"

/*
 - regfree - free an RE (generic function, punts to RE-specific function)
 *
 * Ignoring invocation with NULL is a convenience.
 */
void
regfree(
    regex_t *re)
{
    if (re == NULL) {
	return;
    }
    (*((struct fns *)re->re_fns)->free)(re);
}

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 78
 * End:
 */
ef='/oss-git/tcl.git/log/tests/auto-files.zip?h=minor&id=1391eda7dbac51c1b094b2f769849dcf3a8586d7'>logstatsplain d---------auto098logstatsplain -rw-r--r--autoMkindex.test11684logstatsplain -rw-r--r--basic.test32597logstatsplain -rw-r--r--binary.test109973logstatsplain -rw-r--r--chan.test10110logstatsplain -rw-r--r--chanio.test257363logstatsplain -rw-r--r--clock.test1923015logstatsplain -rw-r--r--cmdAH.test59619logstatsplain -rw-r--r--cmdIL.test31116logstatsplain -rw-r--r--cmdInfo.test3690logstatsplain -rw-r--r--cmdMZ.test18504logstatsplain -rw-r--r--compExpr-old.test36048logstatsplain -rw-r--r--compExpr.test17903logstatsplain -rw-r--r--compile.test39541logstatsplain -rw-r--r--concat.test1589logstatsplain -rw-r--r--config.test2181logstatsplain -rw-r--r--coroutine.test28808logstatsplain -rw-r--r--dcall.test1402logstatsplain -rw-r--r--dict.test65199logstatsplain -rw-r--r--dstring.test14165logstatsplain -rw-r--r--encoding.test28785logstatsplain -rw-r--r--env.test10923logstatsplain -rw-r--r--error.test37471logstatsplain -rw-r--r--eval.test2291logstatsplain -rw-r--r--event.test28780logstatsplain -rw-r--r--exec.test28502logstatsplain -rw-r--r--execute.test36780logstatsplain -rw-r--r--expr-old.test47684logstatsplain -rw-r--r--expr.test351866logstatsplain -rw-r--r--fCmd.test87791logstatsplain -rw-r--r--fileName.test57029logstatsplain -rw-r--r--fileSystem.test35690logstatsplain -rw-r--r--fileSystemEncoding.test1331logstatsplain -rw-r--r--for-old.test1883logstatsplain -rw-r--r--for.test39362logstatsplain -rw-r--r--foreach.test7601logstatsplain -rw-r--r--format.test24464logstatsplain -rw-r--r--get.test5705logstatsplain -rw-r--r--history.test9643logstatsplain -rw-r--r--http.test42031logstatsplain -rw-r--r--http11.test34671logstatsplain -rw-r--r--httpPipeline.test23955logstatsplain -rw-r--r--httpTest.tcl17864logstatsplain -rw-r--r--httpTestScript.tcl13570logstatsplain -rw-r--r--httpcookie.test25596logstatsplain -rw-r--r--httpd6426logstatsplain -rw-r--r--httpd11.tcl8488logstatsplain -rw-r--r--if-old.test4756logstatsplain -rw-r--r--if.test30208logstatsplain -rw-r--r--incr-old.test2772logstatsplain -rw-r--r--incr.test18348logstatsplain -rw-r--r--indexObj.test8857logstatsplain -rw-r--r--info.test80913logstatsplain -rw-r--r--init.test7035logstatsplain -rw-r--r--internals.tcl3111logstatsplain -rw-r--r--interp.test104527logstatsplain -rw-r--r--io.test264130logstatsplain -rw-r--r--ioCmd.test127520logstatsplain -rw-r--r--ioTrans.test59725logstatsplain -rw-r--r--iogt.test25098logstatsplain -rw-r--r--join.test1699logstatsplain -rw-r--r--lindex.test13900logstatsplain -rw-r--r--link.test33077logstatsplain -rw-r--r--linsert.test3621logstatsplain -rw-r--r--list.test5295logstatsplain -rw-r--r--listObj.test7297logstatsplain -rw-r--r--llength.test1260logstatsplain -rw-r--r--lmap.test12913logstatsplain -rw-r--r--load.test10528logstatsplain -rw-r--r--lpop.test4062logstatsplain -rw-r--r--lrange.test10769logstatsplain -rw-r--r--lrepeat.test1935logstatsplain -rw-r--r--lreplace.test7650logstatsplain -rw-r--r--lsearch.test25847logstatsplain -rw-r--r--lset.test17025logstatsplain -rw-r--r--lsetComp.test16193logstatsplain