From: Andi Gutmans Date: Thu, 6 Jul 2000 23:31:19 +0000 (+0000) Subject: - Remove code which has never been used (neither in PHP 3) X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4eba5f1d391d9ef5a6f91d0497e61b10b4dcc0b5;p=php - Remove code which has never been used (neither in PHP 3) --- diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l index e3a2b635e1..192a4bd5ac 100644 --- a/Zend/zend-scanner.l +++ b/Zend/zend-scanner.l @@ -688,47 +688,6 @@ int yyFlexLexer::yylex() #endif - -/* redefine YY_INPUT to handle urls for win32*/ -#if 0 /*defined(ZEND_WIN32)*/ -#define YY_INPUT(buf,result,max_size) \ - if ( yyin->_tmpfname != "url" ){ \ - if ( yy_current_buffer->yy_is_interactive ) \ - { \ - int c = '*', n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - }else{ /* this is a url */ \ - int recv_char=0,socketd=0; \ - /*memset(buf,0,max_size);*/ \ - socketd=yyin->_file; \ - if ( yy_current_buffer->yy_is_interactive ) \ - { \ - int c = '*', n; \ - for ( n = 0; n < max_size && \ - ( (recv_char=recv( socketd,(char *)&c,1,0 ))) >0 && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( recv_char == SOCKET_ERROR ) \ - YY_FATAL_ERROR( "input from url in flex scanner failed" ); \ - result = n; \ - } \ - else if ((result = recv( socketd, (char *)buf, max_size, 0)) == SOCKET_ERROR) \ - YY_FATAL_ERROR( "input from url read in flex scanner failed" ); \ - } -#endif - %} LNUM [0-9]+