Try to fix cplusplus by adding std:: in some places.

This commit is contained in:
christos 2003-11-18 17:02:27 +00:00
parent 28116d3012
commit 07c6ad20d0
1 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $NetBSD: flex.skl,v 1.16 2001/01/06 02:09:31 christos Exp $
* $NetBSD: flex.skl,v 1.17 2003/11/18 17:02:27 christos Exp $
*/
#define FLEX_SCANNER
@ -25,7 +25,7 @@
#include <stdlib.h>
%+
class istream;
class std::istream;
%*
#include <unistd.h>
@ -153,7 +153,7 @@ struct yy_buffer_state
%-
FILE *yy_input_file;
%+
istream* yy_input_file;
std::istream* yy_input_file;
%*
char *yy_ch_buf; /* input buffer */
@ -657,7 +657,7 @@ do_action: /* This label is used only to access EOF actions. */
} /* end of yylex */
%+
yyFlexLexer::yyFlexLexer( istream* arg_yyin, ostream* arg_yyout )
yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout )
{
yyin = arg_yyin;
yyout = arg_yyout;
@ -692,7 +692,7 @@ yyFlexLexer::~yyFlexLexer()
yy_delete_buffer( yy_current_buffer );
}
void yyFlexLexer::switch_streams( istream* new_in, ostream* new_out )
void yyFlexLexer::switch_streams( std::istream* new_in, std::ostream* new_out )
{
if ( new_in )
{
@ -1066,7 +1066,7 @@ void yyrestart( input_file )
FILE *input_file;
#endif
%+
void yyFlexLexer::yyrestart( istream* input_file )
void yyFlexLexer::yyrestart( std::istream* input_file )
%*
{
if ( ! yy_current_buffer )
@ -1137,7 +1137,7 @@ FILE *file;
int size;
#endif
%+
YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( istream* file, int size )
YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream* file, int size )
%*
{
YY_BUFFER_STATE b;
@ -1203,7 +1203,7 @@ FILE *file;
#endif
%+
void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )
void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream* file )
%*
{