~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <stddef.h>
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
/*
26
29
  LEX_STRING -- a pair of a C-string and its length.
27
30
*/
37
40
#define STRING_WITH_LEN(X) (X), (static_cast<size_t>((sizeof(X) - 1)))
38
41
#define C_STRING_WITH_LEN(X) (const_cast<char *>((X))), (static_cast<size_t>((sizeof(X) - 1)))
39
42
 
 
43
} /* namespace drizzled */
40
44
 
41
45
#endif /* DRIZZLED_LEX_STRING_H */