Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=PA7ZmJSM; dkim=fail reason="signature verification failed" (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=RwlhOL2c Received: by mail.netbsd.org (Postfix, from userid 605) id D9FA784D01; Sun, 21 Apr 2024 21:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713736790; bh=0bD3qw573Uf0kW3JbKQOmqjxnbvUfmjvFuk4jENBD9w=; h=Date:From:Subject:To:List-Id:Reply-To:List-Unsubscribe; b=PA7ZmJSMq896jy8GCuREsQt60hKE+BleAXmJd6TXULVK2yXr/Isp5zoOnB4yvUyx0 dvfJZG6TEmnfAkysBRWyfeuTnpK0DjmYIXOQRo/mEpS/OORH4gag/R/qslCeBdR9O9 YWvYsFySTUo1f67euQ/BX+8sEdaCjL49MK16mEIU= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C135B84CFD for ; Sun, 21 Apr 2024 21:59:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 6tJ8psF49bLq for ; Sun, 21 Apr 2024 21:59:48 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 561E384CC8 for ; Sun, 21 Apr 2024 21:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713736788; bh=0bD3qw573Uf0kW3JbKQOmqjxnbvUfmjvFuk4jENBD9w=; h=Date:From:Subject:To:Reply-To; b=RwlhOL2cgaZ1ZOviDw2DWYgbGocSKDLnZlZOuOTPogMoJlDczaN2c8SfzUtV7qnXL A55tr5BIeDF271V6agXKG5Za6sb4/suTBWvUQ8B7GtKguCtDA9RPpjG5tXlp6FxeSK 2Oy7R4QaRSRLFUWMTuTYwBMv+och7qkN9jI7qtTo= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 47833FA2C; Sun, 21 Apr 2024 21:59:48 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 21 Apr 2024 21:59:48 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20240421215948.47833FA2C@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sun Apr 21 21:59:48 UTC 2024 Modified Files: src/usr.bin/make: var.c Log Message: make: trim down code for parsing the :gmtime and :localtime modifiers The :gmtime and :localtime modifiers are not used often and thus are not time-critical. Exchange the custom code that parses an integer from a substring for an additional memory allocation. Thanks sjg@ for suggesting to avoid the custom parsing code. To generate a diff of this commit: cvs rdiff -u -r1.1103 -r1.1104 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.