~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 15:59:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705155949-7cojlehrjxt2ck95
Add const
Remove unused vars

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
                                   uint32_t length, char quote)
322
322
{
323
323
  LEX_STRING tmp;
324
 
  const char *from, *end;
325
 
  char *to;
326
324
  lip->yyUnget();                       // ptr points now after last token char
327
325
  tmp.length= lip->yytoklen=length;
328
326
  tmp.str=(char*) lip->m_session->mem.alloc(tmp.length+1);
329
 
  from= lip->get_tok_start() + skip;
330
 
  to= tmp.str;
331
 
  end= to+length;
 
327
  const char* from= lip->get_tok_start() + skip;
 
328
  char* to= (char*)tmp.str;
 
329
  const char* end= to+length;
332
330
 
333
331
  lip->m_cpp_text_start= lip->get_cpp_tok_start() + skip;
334
332
  lip->m_cpp_text_end= lip->m_cpp_text_start + length;