From 8e11a9b4250be3c3379c45fa820bff78d99d5946 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Wed, 13 Jan 2021 17:24:34 -0800 Subject: Import bmake-20210110 Quite a lot of churn on style, but lots of good work refactoring complicated functions and lots more unit-tests. Thanks mostly to rillig at NetBSD Some interesting entries from ChangeLog o .MAKE.{UID,GID} represent uid and gid running make. o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o add more unit tests for META MODE Change-Id: I4d3bcf08b4c864d98b343f602efe5a75dbfa7a94 --- make_malloc.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'make_malloc.h') diff --git a/make_malloc.h b/make_malloc.h index 551495fb6266..4dacc924c40f 100644 --- a/make_malloc.h +++ b/make_malloc.h @@ -1,4 +1,4 @@ -/* $NetBSD: make_malloc.h,v 1.13 2020/11/10 00:32:12 rillig Exp $ */ +/* $NetBSD: make_malloc.h,v 1.15 2020/12/30 10:03:16 rillig Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -41,14 +41,16 @@ char *bmake_strldup(const char *, size_t); char *bmake_strsedup(const char *, const char *); -/* Thin wrapper around free(3) to avoid the extra function call in case +/* + * Thin wrapper around free(3) to avoid the extra function call in case * p is NULL, to save a few machine instructions. * * The case of a NULL pointer happens especially often after Var_Value, - * since only environment variables need to be freed, but not others. */ + * since only environment variables need to be freed, but not others. + */ MAKE_INLINE void bmake_free(void *p) { - if (p != NULL) - free(p); + if (p != NULL) + free(p); } -- cgit v1.3