~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_wcomp.c

Merged vcol stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Funktions for comparing with wild-cards */
17
17
 
18
 
#include "config.h"
19
 
 
20
 
#include "drizzled/internal/my_sys.h"
21
 
 
22
 
namespace drizzled
23
 
{
24
 
namespace internal
25
 
{
 
18
#include "mysys_priv.h"
26
19
 
27
20
        /* Test if a string is "comparable" to a wild-card string */
28
21
        /* returns 0 if the strings are "comparable" */
29
22
 
30
 
char wild_many='%';
31
 
char wild_one='_';
32
 
char wild_prefix= '\\';
 
23
char wild_many='*';
 
24
char wild_one='?';
 
25
char wild_prefix=0; /* QQ this can potentially cause a SIGSEGV */
33
26
 
34
27
int wild_compare(register const char *str, register const char *wildstr,
35
28
                 bool str_is_pattern)
93
86
  }
94
87
  return (*str != 0);
95
88
} /* wild_compare */
96
 
 
97
 
} /* namespace internal */
98
 
} /* namespace drizzled */