Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2006 11:34:41 -0700
From:      "Randall Hyde" <randyhyde@earthlink.net>
To:        <freebsd-hackers@freebsd.org>
Subject:   getc in BSD (was FLEX issues)
Message-ID:  <002501c69ecf$5967c6b0$6302a8c0@pentiv>
References:  <16887068.1151618963387.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net> <20060630081019.GB734@turion.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, having a little bit of time to play around with the issues I'm having
with Flex under GCC, I've determined that the problem occurs in the
following code fragment:

  for
  (
   n = 0;
    n < num_to_read
   &&  (
     c =
      getc    <<<Error occurs on this line
      (
       yyin
      )
    )
     !=
      (EOF) &&
    1
   && c != 'n';
   ++n
  )


The error reported is "syntax error before numeric constant".
This kind of gives me the impression that "getc" is defined a bit
differently under FreeBSD than other environments?  Any ideas?
Cheers,
Randy Hyde




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c69ecf$5967c6b0$6302a8c0>