summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-25 22:33:27 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-25 22:33:27 (GMT)
commit1d11927f65c4044f57ce85bf7cf4b7c66aaf8b47 (patch)
tree384c64317557c6eff00305abaeb1e1ef45ae8cb6 /Source
parentaa8d37bdc88d918526ae46e1755192794d7a964f (diff)
downloadCMake-1d11927f65c4044f57ce85bf7cf4b7c66aaf8b47.zip
CMake-1d11927f65c4044f57ce85bf7cf4b7c66aaf8b47.tar.gz
CMake-1d11927f65c4044f57ce85bf7cf4b7c66aaf8b47.tar.bz2
COMP: Removed yyunput function to avoid warning.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCommandArgumentLexer.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/Source/cmCommandArgumentLexer.cxx b/Source/cmCommandArgumentLexer.cxx
index bb9caf5..4799e1d 100644
--- a/Source/cmCommandArgumentLexer.cxx
+++ b/Source/cmCommandArgumentLexer.cxx
@@ -591,8 +591,6 @@ extern int cmCommandArgument_yywrap (yyscan_t yyscanner );
#endif
#endif
- static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
-
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
#endif
@@ -1224,44 +1222,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
return yy_is_jam ? 0 : yy_current_state;
}
- static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
-{
- register char *yy_cp;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- yy_cp = yyg->yy_c_buf_p;
-
- /* undo effects of setting up yytext */
- *yy_cp = yyg->yy_hold_char;
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register int number_to_move = yyg->yy_n_chars + 2;
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
-
- while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- *--yy_cp = (char) c;
-
- yyg->yytext_ptr = yy_bp;
- yyg->yy_hold_char = *yy_cp;
- yyg->yy_c_buf_p = yy_cp;
-}
-
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (yyscan_t yyscanner)