From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 4 00:06:54 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 BB94716A4DA for ; Tue, 4 Jul 2006 00:06:54 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 2284943D45 for ; Tue, 4 Jul 2006 00:06:53 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 14212 invoked by uid 1001); 4 Jul 2006 00:06:53 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 03 Jul 2006 20:06:53 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17577.45340.818482.432245@bhuda.mired.org> Date: Mon, 3 Jul 2006 20:06:52 -0400 To: James Bailie In-Reply-To: <44A9AC43.3090606@jamesbailie.com> References: <16887068.1151618963387.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net> <20060630081019.GB734@turion.vk2pj.dyndns.org> <002501c69ecf$5967c6b0$6302a8c0@pentiv> <44A9AC43.3090606@jamesbailie.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: freebsd-hackers@freebsd.org, Randall Hyde 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 00:06:54 -0000 In <44A9AC43.3090606@jamesbailie.com>, James Bailie 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 as a macro". Anything that needs a function should be using fgetc, not getc. But http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.