From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 29 06:22:51 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 9C24E16A403 for ; Thu, 29 Jun 2006 06:22:51 +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 49A7A447C6 for ; Thu, 29 Jun 2006 06:22:51 +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 k5T6KqEk034200; Wed, 28 Jun 2006 23:20:52 -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 k5T6KlC5034194; Wed, 28 Jun 2006 23:20:47 -0700 (PDT) (envelope-from sgk) Date: Wed, 28 Jun 2006 23:20:47 -0700 From: Steve Kargl To: Randall Hyde Message-ID: <20060629062047.GA34074@troutmask.apl.washington.edu> References: <20060628181045.GA54915@curry.mchp.siemens.de> <44wtb12fu0.fsf@be-well.ilk.org> <004301c69b1d$164b5370$6302a8c0@pentiv> <20060629021028.GA31866@troutmask.apl.washington.edu> <004201c69b3e$915bada0$6302a8c0@pentiv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004201c69b3e$915bada0$6302a8c0@pentiv> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: FLEX, was Re: Return value of malloc(0) 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: Thu, 29 Jun 2006 06:22:51 -0000 On Wed, Jun 28, 2006 at 10:40:45PM -0700, Randall Hyde wrote: > > > > > > > Without seeing the code or the actual error message, I'm > > guessing the answer is 42. Perhaps, some detail might > > be appropriate. > > I seriously doubt seeing the code will do much good. > Here's the offending line: > > YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), > yy_n_chars, num_to_read ); Hopefully, people who use your product give better bug reports. I don't know whether I should laugh or cry. > gcc -DfreeBSD -c -o lex.yy.o lex.yy.c > > and it stops with "syntax error before numeric constant". Does your code include all the required header files? This looks like a namespace pollution problem. -- Steve