Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist /ext/standard basic_functions.curl_scanner_ex.c url_scanner_ex.h url_scanner_ex.re From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 10/17/00

:( 2nd try ... ):

Sascha Schumann wrote:
>
> On Tue, 17 Oct 2000, Jani Taskinen wrote:
>
> > On Mon, 16 Oct 2000, Sascha Schumann wrote:
> >
> > >-#line 201
> > >+#line 226
> >
> > Are these #line directives really needed? Since they cause
> > trouble when using e.g. Sun CC. Isn't there some modifier
> > for re2c which disables these? At least the distributions
> > should have these stripped off.
>
> Those are necessary for debugging.
>
> We can stick an appropiate grep into genfiles to filter out
> that debugging information.

i think the 'standard' syntax for the #line directive is

   #line lineno "filename"

although GNU cpp will accept both

at least flex and bison emmit #line directives with both line
and filename, for example in zend-scanner.l -> zend-scanner.c
and zend-parser.y -> zend-parser.c, and i haven't heard of any
trouble with theese files

so it seems like re2c is to blame here and we should try to
fix the cause and not the symptoms ...

--
Hartmut Holzgraefe  hartmut <email protected>  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der Buchmesse in Frankfurt, Halle 4.0, Stand D 1117 und auf der Systems in München , Halle C2, Stand 126

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>