From owner-freebsd-hackers Sat Apr 28 23:36:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 0E21537B422 for ; Sat, 28 Apr 2001 23:36:26 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 90F783E0B; Sat, 28 Apr 2001 23:36:25 -0700 (PDT) To: Jos Backus Cc: freebsd-hackers@freebsd.org Subject: Re: Port-related C++ question In-Reply-To: <20010428231807.G6731@lizzy.bugworks.com>; from josb@cncdsl.com on "Sat, 28 Apr 2001 23:18:07 -0700" Date: Sat, 28 Apr 2001 23:36:25 -0700 From: Dima Dorfman Message-Id: <20010429063625.90F783E0B@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jos Backus writes: > On Sat, Apr 28, 2001 at 09:32:51PM -0700, Dima Dorfman wrote: > > Jos Backus writes: > > > void stdin(const Config& config); <-=== line 99 > > > > `stdin' is a global variable which, surprisingly enough, refers to the > > standard input stream. Don't name a function after it and your > > problem should go away. > > Yeah, I am just puzzled as to how this can build at all on other platforms > (Linux?), unless they don't define this variable. I don't know how other systems do it, but I can imagine that they could define `stdin' as a real global variable--as compared to a #define in FreeBSD. Then the above just spams over the symbol. I don't know the details of C's scoping rules to know if that would work as they want it, but I guess it's possible. > > Thanks, > -- > Jos Backus _/ _/_/_/ "Modularity is not a hack." > _/ _/ _/ -- D. J. Bernstein > _/ _/_/_/ > _/ _/ _/ _/ > josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message