From nobody Mon Feb 06 21:30:21 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9fYp2Hqxz3nRvH for ; Mon, 6 Feb 2023 21:30:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9fYn6r4qz45yr; Mon, 6 Feb 2023 21:30:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675719022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/AKwRxGYC7v4WOxKr3gecPmSkNI1muLehC26loXBwiI=; b=wBRA8OdCCdK8GW/SqLzgdMXxUz1y6eZadO6Wi6UVXg5nPtxLXxkwJ/MoUJd4IrtnKrlaIy RnY/IVVELqF2vH5apCNmMANndl4dh8tV06x5ajWn33JMMN/68axzxjB09Vukuhl+Jd/rM2 BRV4m2BPIqfWSIvubbND3PENS+74hE2LhtnOoF/CJ+uxf0zA6WyCXGMsGWroHVPJYrshLO rxkIA5CRsauYbTVLMOF3DCfNUmgBvg5lO+IWsAYdWqUcvVUFXR/+9NzZfRbv+pnxIe+2+X 0WjzlKlOnKB83PpvmYAjHuZsUHBEbHoHnL7BsmwFDkUaCoeqzCmnH6+L8bMWfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675719022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/AKwRxGYC7v4WOxKr3gecPmSkNI1muLehC26loXBwiI=; b=J8wSROciAYA8HKWZVPBo9niRFLdEXztqJyBZIWG6+GhJ5M8pPQls9HevOT6T5Zzc4YPfY2 bfRd1LuaUvyzbMDHW1OZFZxME3Xe88Js/8QxM+nybRJEWpPBRr7AiXs2fyAzge8ZlveGe9 3E/Zu3lod24+Uyw6voxddzZFzeXezuSX5H0WF3FNN31o3CG5sgPSdGO9X+16JjOmpA5NpP D7y4vwlRdO8xj/imCCEJiIDIjLQxlpyJzvKh41/KiJMisEwCMOUq6v6ZvjvT7LGdpysbEO fWIpv6mk9DtnI5Slow7LgcH6w2EQKgLznC34pnwaIVFkQq2kKOVpQlOdZadd+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675719022; a=rsa-sha256; cv=none; b=ZLATwtRYz5OH2Vw+cbIH81xbAMnVlJ+r6GRHuLseIH6oYZOGyZHHjKdrblabdV2WsSVU1i tgwmouutJKi2pID1wdFPIjLy5MHjPTlBA/O/sLPilDGm/OM8/zz3BSG6jjXBmbJsGuVQz9 1NFlnyTL7RL10h7vt3TDqnTea1kXSCcvLCEXW0DPMRgZOqiSThtPMgbnU/kMGYjfv92q9l Xs1y3gbCkDtfTjIdHKeAgDpZUlD7ZJAbuxPAUVbWzE/SjZ9pGPciFSxBIusIwcfvLFLKCG Zo7zY7U3yQkdWtVkHRmmD0/DJdAz1Wtk6ODCvEBGhd4ZvE15O7FbqXVDNxaUyQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9fYn5TmZzqg5; Mon, 6 Feb 2023 21:30:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 316LULR5087399; Mon, 6 Feb 2023 21:30:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316LULt0087398; Mon, 6 Feb 2023 21:30:21 GMT (envelope-from git) Date: Mon, 6 Feb 2023 21:30:21 GMT Message-Id: <202302062130.316LULt0087398@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: =?utf-8?Q?Stefan=20E=C3=9Fer?= Subject: git: 5bf60291f46d - Create tag vendor/bc/6.1.0 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/tags/vendor/bc/6.1.0 X-Git-Reftype: annotated tag X-Git-Commit: 5bf60291f46d9da5b4310754778146d6110b5feb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The annotated tag vendor/bc/6.1.0 has been created by se: URL: https://cgit.FreeBSD.org/src/tag/?h=vendor/bc/6.1.0 tag vendor/bc/6.1.0 Tagger: Stefan Eßer TaggerDate: 2023-01-28 20:00:56 +0000 Tag version 6.1.0 commit 0b671e8cf134e605567a6b8091958c1f1dfc5140 Author: Stefan Eßer AuthorDate: 2023-01-28 19:59:18 +0000 Commit: Stefan Eßer CommitDate: 2023-01-28 19:59:18 +0000 vendor/bc: import version 6.1.0 This is a production release that fixes a discrepancy from the bc standard, a couple of memory bugs, and adds new features. The discrepancy from the bc standard was with regards to the behavior of the quit command. This bc used to quit whenever it encountered quit during parsing, even if it was parsing a full file. Now, bc only quits when encountering quit after it has executed all executable statements up to that point. This behavior is slightly different from GNU bc, but users will only notice the difference if they put quit on the same line as other statements. The first memory bug could be reproduced by assigning a string to a non-local variable in a function, then redefining the function with use of the same non-local variable, which would still refer to a string in the previous version of the function. The second memory bug was caused by passing an array argument to the asciify() built-in function. In certain cases, that was wrongly allowed, and the interpreter just assumed everything was correct and accessed memory. Now that arrays are allowed as arguments (see below), this is not an issue. The first feature was the addition of the is_number() built-in function (u in dc) that returns 1 if the runtime argument is a number and 0 otherwise. The second feature was the addition of the is_string() built-in function (t in dc) that returns 1 if the runtime argument is a string and 0 otherwise. These features were added because I realized that type-checking is necessary now that strings can be assigned to variables in bc and because they've always been assignable to variables in dc. The last added feature is the ability of the asciify() built-in function in bc to convert a full array of numbers into a string. This means that character-by-character printing will not be necessary, and more strings than just single-character ones will be able to be created.