bison-patches
[Top][All Lists]
Advanced

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

Re: warn about conflicting skeleton-generated files


From: Hans Aberg
Subject: Re: warn about conflicting skeleton-generated files
Date: Thu, 14 Dec 2006 11:14:35 +0100

On 14 Dec 2006, at 07:54, Joel E. Denny wrote:

A point of ambiguity just occurred to me. What are relative file names relative to? For --skeleton, I think it's the current working directory.
For %skeleton, it seems like the grammar file directory, so that would
have to be prepended.

When I checked it (the right way) in 2.3a, there seems to be no difference: they are always relative the /usr/local/share/bison/ directory in my installation. There, I want a way to make it relative the directory 'bison' was invoked.

I propose:

1. If the file name does not contain `/', prepend `pkgdatadir/'.
2. If it does, don't.

So this might suffice for that. But what if one writes
  %skeleton "my/lalr.cc"
Would one not expect it to work like
  %skeleton "lalr.cc"
but checking in the subdirectory "my"?

(My, you are a patient guy!  :-)

Well, these discussions usually do prove useful.

And these seemingly silly little details are used rather intuitively, making important to set them correctly. :-)

  Hans Aberg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]