Subject: Re: tnftpd on Linux and needing a yacc
To: Jeremy C. Reed <reed@reedmedia.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-pkg
Date: 04/03/2004 11:13:23
--KCYLV/G9v6mwUdXt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Apr 02, 2004 at 05:09:25PM -0800, Jeremy C. Reed wrote:
  | On Sat, 3 Apr 2004, Luke Mewburn wrote:
  |=20
  | > Is "GNU yacc" (bison ?) trying to be "helpful" and name the files
  | > as foo.[ch] from foo.y, instead of y.tab.c/y.tab.h ?
  |=20
  | It appears to make foo.tab.[ch] as seen here:
  |=20
  | reed@puget:/usr/pkgsrc/net/tnftpd/work.puget$ find . -name "y.tab*"
  |=20
  | reed@puget:/usr/pkgsrc/net/tnftpd/work.puget$ find . -name "*.y*"
  | ./tnftpd-20031217/src/ftpcmd.y
  |=20
  | reed@puget:/usr/pkgsrc/net/tnftpd/work.puget$ find . -name "ftpcmd.*"
  | ./tnftpd-20031217/src/ftpcmd.y
  | ./tnftpd-20031217/src/ftpcmd.tab.c
  | ./tnftpd-20031217/src/ftpcmd.tab.h
  |=20
  | reed@puget:/usr/pkgsrc/net/tnftpd/work.puget$ find . -name "ftpcmd.*" -=
ls
  | 228577   38 -rw-r--r--   1 reed     reed        37944 Dec  9 17:52
  | ./tnftpd-20031217/src/ftpcmd.y
  | 228599   89 -rw-r--r--   1 reed     reed        90201 Apr  2 10:41
  | ./tnftpd-20031217/src/ftpcmd.tab.c
  | 228600    5 -rw-r--r--   1 reed     reed         4426 Apr  2 10:41
  | ./tnftpd-20031217/src/ftpcmd.tab.h

So
	yacc -d foo.y
is acting as if POSIX yacc's -b option is set, a la:
	yacc -b foo -d foo.y
"how helpful".

--KCYLV/G9v6mwUdXt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAbg+zpBhtmn8zJHIRAuYtAKCLBv9IS9kSBqimVQyfb/vV3x8RTQCgnmcY
KG17OD6wMpfozjGXjbkMpg0=
=ZHVl
-----END PGP SIGNATURE-----

--KCYLV/G9v6mwUdXt--