~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_wfile.c

Removed/replaced DBUG

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  register char * pos;
37
37
  char * buffer;
38
38
  WF_PACK *ret;
 
39
  DBUG_ENTER("wf_comp");
39
40
 
40
41
  not_pos= -1;                  /* Skip space and '!' in front */
41
42
  while (*str == ' ')
46
47
    while (*++str == ' ') {};
47
48
  }
48
49
  if (*str == 0)                                /* Empty == everything */
49
 
    return((WF_PACK *) NULL);
 
50
    DBUG_RETURN((WF_PACK *) NULL);
50
51
 
51
52
  ant=1;                                        /* Count filespecs */
52
53
  for (pos=str ; *pos ; pos++)
56
57
                                 sizeof(WF_PACK)+ (uint) strlen(str)+1,
57
58
                                 MYF(MY_WME)))
58
59
        == 0)
59
 
    return((WF_PACK *) NULL);
 
60
    DBUG_RETURN((WF_PACK *) NULL);
60
61
  ret->wild= (char **) (ret+1);
61
62
  buffer= (char *) (ret->wild+ant);
62
63
 
79
80
  else
80
81
    ret->not_pos=(uint) not_pos;
81
82
 
82
 
  return(ret);
 
83
  DBUG_PRINT("exit",("antal: %d  not_pos: %d",ret->wilds,ret->not_pos));
 
84
  DBUG_RETURN(ret);
83
85
} /* wf_comp */
84
86
 
85
87
 
89
91
{
90
92
  register uint i;
91
93
  register uint not_pos;
 
94
  DBUG_ENTER("wf_test");
92
95
 
93
96
  if (! wf_pack || wf_pack->wilds == 0)
94
 
    return(0);                  /* Everything goes */
 
97
    DBUG_RETURN(0);                     /* Everything goes */
95
98
 
96
99
  not_pos=wf_pack->not_pos;
97
100
  for (i=0 ; i < not_pos; i++)
98
101
    if (wild_compare(name,wf_pack->wild[i],0) == 0)
99
102
      goto found;
100
103
  if (i)
101
 
    return(1);                  /* No-match */
 
104
    DBUG_RETURN(1);                     /* No-match */
102
105
 
103
106
found:
104
107
/* Test that it isn't in not-list */
105
108
 
106
109
  for (i=not_pos ; i < wf_pack->wilds; i++)
107
110
    if (wild_compare(name,wf_pack->wild[i],0) == 0)
108
 
      return(1);
109
 
  return(0);
 
111
      DBUG_RETURN(1);
 
112
  DBUG_RETURN(0);
110
113
} /* wf_test */
111
114
 
112
115
 
114
117
 
115
118
void wf_end(WF_PACK *buffer)
116
119
{
 
120
  DBUG_ENTER("wf_end");
117
121
  if (buffer)
118
122
    my_free((uchar*) buffer,MYF(0));
119
 
  return;
 
123
  DBUG_VOID_RETURN;
120
124
} /* wf_end */