Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/lex Try to fix cplusplus by adding std:: in some pla...



details:   https://anonhg.NetBSD.org/src/rev/54d9f6a59537
branches:  trunk
changeset: 555473:54d9f6a59537
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 18 17:02:27 2003 +0000

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

diffstat:

 usr.bin/lex/flex.skl |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (75 lines):

diff -r c6e2d56c3bc0 -r 54d9f6a59537 usr.bin/lex/flex.skl
--- a/usr.bin/lex/flex.skl      Tue Nov 18 15:57:13 2003 +0000
+++ b/usr.bin/lex/flex.skl      Tue Nov 18 17:02:27 2003 +0000
@@ -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 @@
 %-
        FILE *yy_input_file;
 %+
-       istream* yy_input_file;
+       std::istream* yy_input_file;
 %*
 
        char *yy_ch_buf;                /* input buffer */
@@ -657,7 +657,7 @@
        } /* 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 @@
        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 @@
 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 @@
 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 @@
 #endif
 
 %+
-void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )
+void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream* file )
 %*
 
        {



Home | Main Index | Thread Index | Old Index