~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/ascii/ascii.cc

  • Committer: Monty Taylor
  • Date: 2009-12-27 00:49:03 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091227004903-maw7ktxu6i6hye9b
Moved mem_root functions into drizzled::memory:: namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
plugin::Create_function<AsciiFunction> *asciiudf= NULL;
70
70
 
71
 
static int initialize(module::Context &context)
 
71
static int initialize(plugin::Registry &registry)
72
72
{
73
73
  asciiudf= new plugin::Create_function<AsciiFunction>("ascii");
74
 
  context.add(asciiudf);
 
74
  registry.add(asciiudf);
 
75
  return 0;
 
76
}
 
77
 
 
78
static int finalize(plugin::Registry &registry)
 
79
{
 
80
  registry.remove(asciiudf);
 
81
  delete asciiudf;
75
82
  return 0;
76
83
}
77
84
 
84
91
  "Return the ASCII value of a character",
85
92
  PLUGIN_LICENSE_GPL,
86
93
  initialize, /* Plugin Init */
 
94
  finalize,   /* Plugin Deinit */
 
95
  NULL,   /* status variables */
87
96
  NULL,   /* system variables */
88
97
  NULL    /* config options */
89
98
}