~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_wcomp.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-24 15:25:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2349.
  • Revision ID: olafvdspek@gmail.com-20110624152506-zivk37gp51e9w84u
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
      {
44
44
        wildstr++;
45
45
        if (str_is_pattern && *str++ != wild_prefix)
46
 
          return(1);
 
46
          return 1;
47
47
      }
48
48
      if (*wildstr++ != *str++)
49
 
        return(1);
 
49
        return 1;
50
50
    }
51
51
    if (! *wildstr )
52
52
      return(*str != 0);
53
53
    if (*wildstr++ == wild_one)
54
54
    {
55
55
      if (! *str || (str_is_pattern && *str == wild_many))
56
 
        return(1);                     /* One char; skip */
 
56
        return 1;                     /* One char; skip */
57
57
      if (*str++ == wild_prefix && str_is_pattern && *str)
58
58
        str++;
59
59
    }