=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/flex.1,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/lex/flex.1 2003/12/09 12:44:17 1.17 --- src/usr.bin/lex/flex.1 2004/02/03 21:20:17 1.18 *************** *** 1,4 **** ! .\" $OpenBSD: flex.1,v 1.17 2003/12/09 12:44:17 jmc Exp $ .\" .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. --- 1,4 ---- ! .\" $OpenBSD: flex.1,v 1.18 2004/02/03 21:20:17 espie Exp $ .\" .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. *************** *** 3498,3504 **** .Fn yy_switch_to_buffer , .Fn yy_create_buffer (though the first argument is an ! .Fa istream* object pointer and not a .Fa FILE* ) , .Fn yy_flush_buffer , --- 3498,3504 ---- .Fn yy_switch_to_buffer , .Fn yy_create_buffer (though the first argument is an ! .Fa std::istream* object pointer and not a .Fa FILE* ) , .Fn yy_flush_buffer , *************** *** 3506,3512 **** and .Fn yyrestart (again, the first argument is an ! .Fa istream* object pointer). .Pp The second class defined in --- 3506,3512 ---- and .Fn yyrestart (again, the first argument is an ! .Fa std::istream* object pointer). .Pp The second class defined in *************** *** 3517,3523 **** .Fa FlexLexer . It defines the following additional member functions: .Bl -tag -width Ds ! .It "yyFlexLexer(istream* arg_yyin = 0, ostream* arg_yyout = 0)" Constructs a .Fa yyFlexLexer object using the given streams for input and output. --- 3517,3523 ---- .Fa FlexLexer . It defines the following additional member functions: .Bl -tag -width Ds ! .It "yyFlexLexer(std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0)" Constructs a .Fa yyFlexLexer object using the given streams for input and output. *************** *** 3557,3563 **** that calls .Dq yyFlexLexer::LexerError() if called). ! .It "virtual void switch_streams(istream* new_in = 0, ostream* new_out = 0)" Reassigns .Fa yyin to --- 3557,3563 ---- that calls .Dq yyFlexLexer::LexerError() if called). ! .It "virtual void switch_streams(std::istream* new_in = 0, std::ostream* new_out = 0)" Reassigns .Fa yyin to *************** *** 3571,3577 **** deleting the previous input buffer if .Fa yyin is reassigned. ! .It int yylex(istream* new_in, ostream* new_out = 0) First switches the input streams via .Dq switch_streams(new_in, new_out) and then returns the value of --- 3571,3577 ---- deleting the previous input buffer if .Fa yyin is reassigned. ! .It int yylex(std::istream* new_in, std::ostream* new_out = 0) First switches the input streams via .Dq switch_streams(new_in, new_out) and then returns the value of