From 1a2b743f6b4022dada4eeaa96ac47a5c1a2429f5 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Wed, 8 Jul 2020 18:32:15 +0000 Subject: Import bmake-20200704 from ChangeLog: (most of this by rillig@) o lots of style and white-space cleanup o lots more unit tests for variable modifiers o simplified description of some functions o str.c: refactor Str_Match o var.c: debugging output for :@ constify VarModify parameter fix :hash modifier on 16-bit platforms remove unnecessary forward declarations refactor ApplyModifier_SysV to have less indentation simplify code for :E and :R clean up code for :H and :T refactor ApplyModifiers * var.c: we need stdint.h on some platforms to get uint32_t * unit-test/Makefile: we need to supress the specific error for RE substitution error in modmisc, since it varies accross different OS. --- lst.lib/lstDatum.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lst.lib/lstDatum.c') diff --git a/lst.lib/lstDatum.c b/lst.lib/lstDatum.c index 6e2d9ad0e73be..c8ccb558f3dc1 100644 --- a/lst.lib/lstDatum.c +++ b/lst.lib/lstDatum.c @@ -1,4 +1,4 @@ -/* $NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $ */ +/* $NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -33,14 +33,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $"; +static char rcsid[] = "$NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $"; #else #include #ifndef lint #if 0 static char sccsid[] = "@(#)lstDatum.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $"); +__RCSID("$NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $"); #endif #endif /* not lint */ #endif @@ -69,9 +69,8 @@ void * Lst_Datum(LstNode ln) { if (ln != NULL) { - return ((ln)->datum); + return ln->datum; } else { return NULL; } } - -- cgit v1.2.3