From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 4 18:40:56 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97AF716A4DA for ; Tue, 4 Jul 2006 18:40:56 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49DBE43D46 for ; Tue, 4 Jul 2006 18:40:56 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.7/8.13.7) with ESMTP id k64Ie9wK029566; Tue, 4 Jul 2006 11:40:09 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.7/8.13.7/Submit) id k64Ie57W029565; Tue, 4 Jul 2006 11:40:05 -0700 (PDT) (envelope-from sgk) Date: Tue, 4 Jul 2006 11:40:05 -0700 From: Steve Kargl To: Randall Hyde Message-ID: <20060704184005.GA29544@troutmask.apl.washington.edu> References: <16887068.1151618963387.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net> <20060630081019.GB734@turion.vk2pj.dyndns.org> <002501c69ecf$5967c6b0$6302a8c0@pentiv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002501c69ecf$5967c6b0$6302a8c0@pentiv> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: getc in BSD (was FLEX issues) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 18:40:56 -0000 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