mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. my_regex.h: Rename: regex/regex.h -> regex/my_regex.h client/mysqltest.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. os2/MySQL-Source.icc: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/Makefile.am: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/debug.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/debug.ih: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/engine.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/engine.ih: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/main.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/main.ih: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/regcomp.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/regerror.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/regerror.ih: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/my_regex.h: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/regexec.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/regfree.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. regex/reginit.c: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. sql/item_cmpfunc.cc: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. sql/item_cmpfunc.h: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. sql/mysqld.cc: Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib.
		
			
				
	
	
		
			39 lines
		
	
	
		
			753 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			753 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <my_global.h>
 | 
						|
#include <sys/types.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <stdlib.h>
 | 
						|
#include "my_regex.h"
 | 
						|
 | 
						|
#include "utils.h"
 | 
						|
#include "regex2.h"
 | 
						|
 | 
						|
/*
 | 
						|
 - regfree - free everything
 | 
						|
 = extern void regfree(regex_t *);
 | 
						|
 */
 | 
						|
void
 | 
						|
my_regfree(preg)
 | 
						|
my_regex_t *preg;
 | 
						|
{
 | 
						|
	register struct re_guts *g;
 | 
						|
 | 
						|
	if (preg->re_magic != MAGIC1)	/* oops */
 | 
						|
		return;			/* nice to complain, but hard */
 | 
						|
 | 
						|
	g = preg->re_g;
 | 
						|
	if (g == NULL || g->magic != MAGIC2)	/* oops again */
 | 
						|
		return;
 | 
						|
	preg->re_magic = 0;		/* mark it invalid */
 | 
						|
	g->magic = 0;			/* mark it invalid */
 | 
						|
 | 
						|
	if (g->strip != NULL)
 | 
						|
		free((char *)g->strip);
 | 
						|
	if (g->sets != NULL)
 | 
						|
		free((char *)g->sets);
 | 
						|
	if (g->setbits != NULL)
 | 
						|
		free((char *)g->setbits);
 | 
						|
	if (g->must != NULL)
 | 
						|
		free(g->must);
 | 
						|
	free((char *)g);
 | 
						|
}
 |