Re: Re: cvs: php4 / php.ini-dist /ext/standard basic_functions.curl_scanner_ex.c url_scanner_ex.h url_scanner_ex.re
| From: | Hartmut Holzgraefe | Date: | Tue, 17 Oct 2000 09:43:16 +0000 |
| Subject: | Re: Re: cvs: php4 / php.ini-dist /ext/standard basic_functions.curl_scanner_ex.c url_scanner_ex.h url_scanner_ex.re | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-35231@lists.php.net to get a copy of this message | ||
:( 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@six.de 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