~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/math_functions/functions.cc

move COS() function into math_functions plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "plugin/math_functions/acos.h"
26
26
#include "plugin/math_functions/asin.h"
27
27
#include "plugin/math_functions/atan.h"
 
28
#include "plugin/math_functions/cos.h"
28
29
 
29
30
using namespace drizzled;
30
31
 
33
34
plugin::Create_function<drizzled::Item_func_asin> *asin_function= NULL;
34
35
plugin::Create_function<drizzled::Item_func_atan> *atan_function= NULL;
35
36
plugin::Create_function<drizzled::Item_func_atan> *atan2_function= NULL;
 
37
plugin::Create_function<drizzled::Item_func_cos> *cos_function= NULL;
36
38
 
37
39
static int init(drizzled::module::Context &context)
38
40
{
41
43
  asin_function= new plugin::Create_function<Item_func_asin>("asin");
42
44
  atan_function= new plugin::Create_function<Item_func_atan>("atan");
43
45
  atan2_function= new plugin::Create_function<Item_func_atan>("atan2");
 
46
  cos_function= new plugin::Create_function<Item_func_cos>("cos");
44
47
 
45
48
  context.add(abs_function);
46
49
  context.add(acos_function);
47
50
  context.add(asin_function);
48
51
  context.add(atan_function);
49
52
  context.add(atan2_function);
 
53
  context.add(cos_function);
50
54
 
51
55
  return 0;
52
56
}