public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* line directives from bison
@ 2000-03-27  8:52 Michael O'Brien
  2000-03-27  8:56 ` Chris Faylor
  0 siblings, 1 reply; 2+ messages in thread
From: Michael O'Brien @ 2000-03-27  8:52 UTC (permalink / raw)
  To: cygwin; +Cc: Michael O'Brien

Hola~

When using bison, the line directives, which are on by default, from the
command prompt, the resulting file contains:

#line 1 "f:\dir\file"

which is bogus (the \ need to be escaped). So, my options are to either run
the result through sed replacing '\' with "\\" or not use line directives
(which make debugging quite a pain)

I'm using the 20.1 version of cygnus. Anyone know if this bug is going to be
fixed anytime soon?

MO



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: line directives from bison
  2000-03-27  8:52 line directives from bison Michael O'Brien
@ 2000-03-27  8:56 ` Chris Faylor
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Faylor @ 2000-03-27  8:56 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 27, 2000 at 08:51:42AM -0800, Michael O'Brien wrote:
>Hola~
>
>When using bison, the line directives, which are on by default, from the
>command prompt, the resulting file contains:
>
>#line 1 "f:\dir\file"
>
>which is bogus (the \ need to be escaped). So, my options are to either run
>the result through sed replacing '\' with "\\" or not use line directives
>(which make debugging quite a pain)
>
>I'm using the 20.1 version of cygnus. Anyone know if this bug is going to be
>fixed anytime soon?

Don't use backward slashes in your filenames.  That should eliminate the
problem.

As far as whether this will be changed anytime soon, the answer is "Not unless
someone submits a patch."

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-27  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-27  8:52 line directives from bison Michael O'Brien
2000-03-27  8:56 ` Chris Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).