From owner-freebsd-standards@FreeBSD.ORG Sat Apr 19 19:44:42 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6510637B401; Sat, 19 Apr 2003 19:44:42 -0700 (PDT) Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8532343FA3; Sat, 19 Apr 2003 19:44:36 -0700 (PDT) (envelope-from alexs@snark.ratmir.ru) Received: from snark.ratmir.ru (alexs@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.9/8.12.9) with ESMTP id h3K2iWC2073730; Sun, 20 Apr 2003 06:44:33 +0400 (MSD) (envelope-from alexs@snark.ratmir.ru) Received: (from alexs@localhost) by snark.ratmir.ru (8.12.9/8.12.9/Submit) id h3K2iUdZ073725; Sun, 20 Apr 2003 06:44:30 +0400 (MSD) Date: Sun, 20 Apr 2003 06:44:30 +0400 From: Alex Semenyaka To: Juli Mallett Message-ID: <20030420024430.GA73433@snark.ratmir.ru> References: <20030420011039.GC52081@snark.ratmir.ru> <20030420013400.GB52428@snark.ratmir.ru> <20030419205028.A78458@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030419205028.A78458@FreeBSD.org> User-Agent: Mutt/1.5.4i cc: freebsd-standards@FreeBSD.ORG cc: Alex Semenyaka Subject: Re: /bin/sh and 32-bit arithmetics [CORRECTED] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 02:44:42 -0000 On Sat, Apr 19, 2003 at 08:50:29PM -0500, Juli Mallett wrote: > might be for building i386 with 64-bit long (ha ha ha), and that By the way, it is not the option. First, as you can see, bacause of fixed size buffer. Second, there is a special hack (which I do not like and thus I've fixed it) in the original code when the value of the expression is passed as a returning value of yyparse(), which is int. Thus this hack 1) limits us to the type 'int' and 2) breaks the yyparse() semantics (yyparse should return YYACCEPT or YYABORT). Therefore it is not enough just to trbuild /bin/sh with different compilations options, some changes still should be done. Did I get it right that it is necessary to 1) fix '%qd' 2) fix C++-style comments 3) (possible) use explicit 64-bit type? SY, Alex