~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/parser.cc

  • Committer: Brian Aker
  • Date: 2008-12-15 21:57:36 UTC
  • Revision ID: brian@tangent.org-20081215215736-hlzp4imvnuwu4mtn
Removed casting from a few operations (passing this so Mark can fix the
rest).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
{
26
26
  parser_t *p;
27
27
 
28
 
  p= (parser_t *) malloc(sizeof(parser_t));
29
 
  if (p == NULL) return 1;
 
28
  p= new parser_t;
 
29
 
 
30
  if (p == NULL) 
 
31
    return 1;
30
32
  memset(p, 0, sizeof(parser_t));
31
33
 
32
34
  plugin->data= (void *)p;
45
47
  return 0;
46
48
 
47
49
err:
48
 
  free(p);
 
50
  delete p;
 
51
 
49
52
  return 1;
50
53
}
51
54
 
64
67
    }
65
68
  }
66
69
 
67
 
  if (p) free(p);
 
70
  if (p) 
 
71
    delete p;
68
72
 
69
73
  return 0;
70
74
}