Re: getc in BSD (was FLEX issues)

2006-07-05 Thread Randall Hyde
-Original Message- >From: Steve Kargl <[EMAIL PROTECTED]> >Sent: Jul 4, 2006 11:40 AM >To: Randall Hyde <[EMAIL PROTECTED]> >Cc: freebsd-hackers@freebsd.org >Subject: Re: getc in BSD (was FLEX issues) > >On Mon, Jul 03, 2006 at 11:34:41AM -0700, Ran

Re: getc in BSD (was FLEX issues)

2006-07-04 Thread Steve Kargl
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 imp

Re: getc in BSD (was FLEX issues)

2006-07-03 Thread Giorgos Keramidas
On 2006-07-03 20:06, Mike Meyer <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, James Bailie <[EMAIL PROTECTED]> typed: > > Randall Hyde wrote: > > > This kind of gives me the impression that "getc" is defined a bit > > > differently under FreeBSD than other environments? Any ideas? > > Yes

Re: getc in BSD (was FLEX issues)

2006-07-03 Thread Mike Meyer
In <[EMAIL PROTECTED]>, James Bailie <[EMAIL PROTECTED]> typed: > Randall Hyde wrote: > > This kind of gives me the impression that "getc" is defined a bit > > differently under FreeBSD than other environments? Any ideas? > Yes. It's defined as a macro. Linux says that getc "may be implemented

Re: getc in BSD (was FLEX issues)

2006-07-03 Thread James Bailie
Randall Hyde wrote: > This kind of gives me the impression that "getc" is defined a bit > differently under FreeBSD than other environments? Any ideas? Yes. It's defined as a macro. -- James Bailie <[EMAIL PROTECTED]> http://www.jamesbailie.com ___

getc in BSD (was FLEX issues)

2006-07-03 Thread Randall Hyde
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<