bug-bison
[Top][All Lists]
Advanced

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

Re: Bison 1.49a released


From: Hans Aberg
Subject: Re: Bison 1.49a released
Date: Sat, 1 Jun 2002 18:39:13 +0200

>The Bison team is happy to present its 1.49a snapshot.
...
>  ftp://alpha.gnu.org/gnu/bison/bison-1.49a.tar.gz   (862 kB)
>  ftp://alpha.gnu.org/gnu/bison/bison-1.49a.tar.bz2  (708 kB)

(Using my rather by now rather old (1999) MacOS pre-X MetroWerks
CodeWarrior C compiler, which is an IDE system, not using "make". This
system does not have pipe(), fork() etc, so I do not plan to make a working
compile, but only check how M4 is hooked up.)

- File muscle_tab.c, lines 75, 91:
  Error   : illegal constant expression
  muscle_tab.c line   muscle_entry_t pair = { key, NULL };
I don't think is (pre-C99 at least) ISO C. I think you have to write
  muscle_entry_t pair = { NULL, NULL };
  ...
  pair.key = key;

- File "output.c": Should probably
  #include "muscle_tab.h"
somewhere.

  - Same file, some syntactic errors:
  Error   : undefined identifier 'PKGDATADIR'
  output.c line 1041   bison_pkgdatadir = PKGDATADIR;

  Error   : undefined identifier 'skel_in'
  output.c line 1046   skel_in = readpipe (m4,

  Error   : undefined identifier 'skel_in'
  output.c line 1052   if (!skel_in)

  Error   : function has no prototype
  output.c line 1054   skel_lex ();

PKGDATADIR is perhaps written by config, which my system does not invoke
(it's not in config.hin, though). For readpipe(), skel_in & skel_lex(),
perhaps you compile with some C option on, not checking that labels are
defined, or "output.c" should include "scan-skel.c" or something (or write
a header "scan-skel.h" and compile "scan-skel.c" separately).

- File scan-skel.c:
Error   : undefined identifier 'EINTR'
line 985   num_to_read, skel_in))==0 && ((skel_in)->state.error)) { if(
errno != EINTR) { yy_fatal_error( "input in flex scanner fail

This means that your Flex file does not #include "errno.h" as it should.

Error   : function has no prototype
scan-skel.c line 1344   b->yy_is_interactive = file ? (isatty( fileno(file)
) > 0) : 0;

I think that this error happens, because you have not set
YY_NEVER_INTERACTIVE; then, I do not have fileno() on my system, causing
the error. But an interactive scanner is much slower than one that is not,
I recall, so it should probably be changed anyhow.

  Hans Aberg





reply via email to

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