Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2006 11:40:05 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Randall Hyde <randyhyde@earthlink.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: getc in BSD (was FLEX issues)
Message-ID:  <20060704184005.GA29544@troutmask.apl.washington.edu>
In-Reply-To: <002501c69ecf$5967c6b0$6302a8c0@pentiv>
References:  <16887068.1151618963387.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net> <20060630081019.GB734@turion.vk2pj.dyndns.org> <002501c69ecf$5967c6b0$6302a8c0@pentiv>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 03, 2006 at 11:34:41AM -0700, Randall Hyde wrote:
> 
> 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?

As others have stated, getc() is implemented via a macro,
which may depend on other macros.  In reading the flex 
NEWS file, I ran across the -Cr option.  I added this 
option to your flex command, and the hla.flx file is 
processed and produces a compilable lex.yy.c.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060704184005.GA29544>