-# $OpenBSD: Makefile,v 1.59 2015/01/23 22:35:57 espie Exp $
+# $OpenBSD: Makefile,v 1.60 2015/10/14 13:50:22 espie Exp $
PROG= make
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
CDIAGFLAGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic \
-Wmissing-prototypes -Wdeclaration-after-statement -std=c99
-CDEFS+=-DHAS_BOOL_H
CDEFS+=-DHAS_PATHS_H
CDEFS+=-DHAS_EXTENDED_GETCWD
#CDEFS+=-DHAS_STATS
#ifndef DEFINES_H
#define DEFINES_H
-/* $OpenBSD: defines.h,v 1.14 2013/11/22 15:47:35 espie Exp $ */
+/* $OpenBSD: defines.h,v 1.15 2015/10/14 13:50:22 espie Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAS_STDBOOL_H
# include <stdbool.h>
-#else
-typedef int bool;
-# define false 0
-# define true 1
-#endif
/* define common types in an opaque way */
struct GNode_;
#ifndef _LST_H_
#define _LST_H_
-/* $OpenBSD: lst.h,v 1.29 2010/07/19 19:46:44 espie Exp $ */
+/* $OpenBSD: lst.h,v 1.30 2015/10/14 13:50:22 espie Exp $ */
/* $NetBSD: lst.h,v 1.7 1996/11/06 17:59:12 christos Exp $ */
/*
#endif
typedef void (*SimpleProc)(void *);
-typedef int (*FindProc)(void *, void *);
+typedef bool (*FindProc)(void *, void *);
typedef int (*ForEachNodeWhileProc)(LstNode, void *);
typedef int (*FindProcConst)(void *, const void *);
typedef void (*ForEachProc)(void *, void *);
-/* $OpenBSD: lstFindFrom.c,v 1.18 2010/07/19 19:46:44 espie Exp $ */
+/* $OpenBSD: lstFindFrom.c,v 1.19 2015/10/14 13:50:22 espie Exp $ */
/* $NetBSD: lstFindFrom.c,v 1.6 1996/11/06 17:59:40 christos Exp $ */
/*
LstNode tln;
for (tln = ln; tln != NULL; tln = tln->nextPtr)
- if ((*cProc)(tln->datum, d) == 0)
+ if (!(*cProc)(tln->datum, d))
return tln;
return NULL;
-/* $OpenBSD: main.c,v 1.114 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.115 2015/10/14 13:50:22 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
static void read_all_make_rules(bool, bool, Lst, struct dirs *);
static void read_makefile_list(Lst, struct dirs *);
-static int ReadMakefile(void *, void *);
+static bool ReadMakefile(void *, void *);
static void
record_option(int c, const char *arg)