1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix the coding style.

This commit is contained in:
kostja@bodhi.(none)
2007-07-20 19:52:25 +04:00
parent 6352d006a4
commit a6abf20f2e
2 changed files with 31 additions and 31 deletions

View File

@ -124,7 +124,7 @@ Lex_input_stream::Lex_input_stream(THD *thd,
m_tok_start_prev(NULL), m_tok_start_prev(NULL),
m_buf(buffer), m_buf(buffer),
m_buf_length(length), m_buf_length(length),
m_echo(true), m_echo(TRUE),
m_cpp_tok_start(NULL), m_cpp_tok_start(NULL),
m_cpp_tok_start_prev(NULL), m_cpp_tok_start_prev(NULL),
m_cpp_tok_end(NULL), m_cpp_tok_end(NULL),
@ -1200,7 +1200,7 @@ int MYSQLlex(void *arg, void *yythd)
{ {
lip->in_comment= DISCARD_COMMENT; lip->in_comment= DISCARD_COMMENT;
/* Accept '/' '*' '!', but do not keep this marker. */ /* Accept '/' '*' '!', but do not keep this marker. */
lip->set_echo(false); lip->set_echo(FALSE);
lip->yySkip(); lip->yySkip();
lip->yySkip(); lip->yySkip();
lip->yySkip(); lip->yySkip();
@ -1233,7 +1233,7 @@ int MYSQLlex(void *arg, void *yythd)
if (version <= MYSQL_VERSION_ID) if (version <= MYSQL_VERSION_ID)
{ {
/* Expand the content of the special comment as real code */ /* Expand the content of the special comment as real code */
lip->set_echo(true); lip->set_echo(TRUE);
state=MY_LEX_START; state=MY_LEX_START;
break; break;
} }
@ -1241,7 +1241,7 @@ int MYSQLlex(void *arg, void *yythd)
else else
{ {
state=MY_LEX_START; state=MY_LEX_START;
lip->set_echo(true); lip->set_echo(TRUE);
break; break;
} }
} }
@ -1261,7 +1261,7 @@ int MYSQLlex(void *arg, void *yythd)
if (! lip->eof()) if (! lip->eof())
lip->yySkip(); // remove last '/' lip->yySkip(); // remove last '/'
state = MY_LEX_START; // Try again state = MY_LEX_START; // Try again
lip->set_echo(true); lip->set_echo(TRUE);
break; break;
case MY_LEX_END_LONG_COMMENT: case MY_LEX_END_LONG_COMMENT:
if ((lip->in_comment != NO_COMMENT) && lip->yyPeek() == '/') if ((lip->in_comment != NO_COMMENT) && lip->yyPeek() == '/')
@ -1272,7 +1272,7 @@ int MYSQLlex(void *arg, void *yythd)
lip->set_echo(lip->in_comment == PRESERVE_COMMENT); lip->set_echo(lip->in_comment == PRESERVE_COMMENT);
lip->yySkipn(2); lip->yySkipn(2);
/* And start recording the tokens again */ /* And start recording the tokens again */
lip->set_echo(true); lip->set_echo(TRUE);
lip->in_comment=NO_COMMENT; lip->in_comment=NO_COMMENT;
state=MY_LEX_START; state=MY_LEX_START;
} }
@ -1297,7 +1297,7 @@ int MYSQLlex(void *arg, void *yythd)
lip->found_semicolon= lip->get_ptr(); lip->found_semicolon= lip->get_ptr();
thd->server_status|= SERVER_MORE_RESULTS_EXISTS; thd->server_status|= SERVER_MORE_RESULTS_EXISTS;
lip->next_state= MY_LEX_END; lip->next_state= MY_LEX_END;
lip->set_echo(true); lip->set_echo(TRUE);
return (END_OF_INPUT); return (END_OF_INPUT);
} }
state= MY_LEX_CHAR; // Return ';' state= MY_LEX_CHAR; // Return ';'
@ -1309,9 +1309,9 @@ int MYSQLlex(void *arg, void *yythd)
if (lip->eof()) if (lip->eof())
{ {
lip->yyUnget(); // Reject the last '\0' lip->yyUnget(); // Reject the last '\0'
lip->set_echo(false); lip->set_echo(FALSE);
lip->yySkip(); lip->yySkip();
lip->set_echo(true); lip->set_echo(TRUE);
lip->next_state=MY_LEX_END; // Mark for next loop lip->next_state=MY_LEX_END; // Mark for next loop
return(END_OF_INPUT); return(END_OF_INPUT);
} }