~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/to_days.cc

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
#include CSTDINT_H
 
21
 
22
22
#include "drizzled/function/time/to_days.h"
23
23
#include "drizzled/error.h"
24
24
#include "drizzled/temporal.h"
25
25
 
 
26
namespace drizzled
 
27
{
 
28
 
26
29
/* 
27
30
 * We intepret the first argument as a DateTime and then convert
28
31
 * it to a Julian Day Number and return it.
48
51
   * error and return 0, setting the null_value flag to true.
49
52
   */
50
53
  /* Grab the first argument as a DateTime object */
51
 
  drizzled::DateTime temporal;
 
54
  DateTime temporal;
52
55
  Item_result arg0_result_type= args[0]->result_type();
53
56
  
54
57
  switch (arg0_result_type)
140
143
   * the appropriate end-point integer.
141
144
   */
142
145
  /* Grab the first argument as a DateTime object */
143
 
  drizzled::DateTime temporal;
 
146
  DateTime temporal;
144
147
  Item_result arg0_result_type= args[0]->result_type();
145
148
  
146
149
  switch (arg0_result_type)
253
256
    *incl_endp= true;
254
257
  return julian_day_number;
255
258
}
 
259
 
 
260
} /* namespace drizzled */