/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* hack.mon.c - version 1.0.3 */
/* $FreeBSD: src/games/hack/hack.mon.c,v 1.5 1999/11/16 10:26:37 marcel Exp $ */
-/* $DragonFly: src/games/hack/hack.mon.c,v 1.5 2006/08/21 19:45:32 pavalos Exp $ */
+/* $DragonFly: src/games/hack/hack.mon.c,v 1.6 2008/06/05 18:01:49 swildner Exp $ */
#include "hack.h"
#include "hack.mfndpos.h"
-#ifndef NULL
-#define NULL (char *) 0
-#endif
-
int warnlevel; /* used by movemon and dochugw */
long lastwarntime;
int lastwarnlev;
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* AIX requires this to be the first thing in the file. */
+
+/* $DragonFly: src/gnu/lib/libregex/regex.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
+
#if defined (_AIX) && !defined (REGEX_MALLOC)
#pragma alloca
#endif
#define ISUPPER(c) (isascii (c) && isupper (c))
#define ISXDIGIT(c) (isascii (c) && isxdigit (c))
-#ifndef NULL
-#define NULL 0
-#endif
-
/* We remove any previous definition of `SIGN_EXTEND_CHAR',
since ours (we hope) works properly with all combinations of
machines, compilers, `char' and `unsigned char' argument types.
* @(#)alloca.c 1.1
*/
+/* $DragonFly: src/gnu/lib/libregex/test/alloca.c,v 1.3 2008/06/05 18:01:49 swildner Exp $ */
+
#ifdef emacs
#include "config.h"
#ifdef static
typedef char *pointer; /* generic pointer type */
#endif
-#define NULL 0 /* null pointer constant */
-
extern void free();
extern pointer xmalloc();
-
+/* $DragonFly: src/gnu/lib/libregex/test/malloc-test.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
typedef struct {
unsigned *bits;
} bits_list_type;
#define BYTEWIDTH 8
-#define NULL 0
#define BITS_BLOCK_SIZE (sizeof (unsigned) * BYTEWIDTH)
#define BITS_BLOCK(position) ((position) / BITS_BLOCK_SIZE)
+/* $DragonFly: src/gnu/lib/libregex/test/xmalloc.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
+
#include <stdio.h>
extern char *malloc ();
-#ifndef NULL
-#define NULL 0
-#endif
-
void *
xmalloc (size)
unsigned size;
+/* $DragonFly: src/gnu/usr.bin/grep/getopt1.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
+
/* getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
Free Software Foundation, Inc.
#include <stdlib.h>
#endif
-#ifndef NULL
-#define NULL 0
-#endif
-
int
getopt_long (argc, argv, options, long_options, opt_index)
int argc;
+/* $DragonFly: src/gnu/usr.bin/sort/getopt1.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
+
/* getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987, 88, 89, 90, 91, 92, 1993, 1994
Free Software Foundation, Inc.
char *getenv ();
#endif
-#ifndef NULL
-#define NULL 0
-#endif
-
int
getopt_long (argc, argv, options, long_options, opt_index)
int argc;
* SUCH DAMAGE.
*
* $FreeBSD: src/lib/libstand/stand.h,v 1.18.2.8 2002/06/17 11:22:39 sobomax Exp $
- * $DragonFly: src/lib/libstand/stand.h,v 1.9 2007/06/18 05:13:37 dillon Exp $
+ * $DragonFly: src/lib/libstand/stand.h,v 1.10 2008/06/05 18:01:49 swildner Exp $
* From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $
*/
#define CHK(fmt, args...) printf("%s(%d): " fmt "\n", __func__, __LINE__ , ##args)
#define PCHK(fmt, args...) {printf("%s(%d): " fmt "\n", __func__, __LINE__ , ##args); getchar();}
-#ifndef NULL
-#define NULL 0
-#endif
-
/* Avoid unwanted userlandish components */
#define _KERNEL
#include <sys/errno.h>
* SUCH DAMAGE.
*
* $FreeBSD: src/lib/libstand/zalloc_defs.h,v 1.6 1999/08/28 00:05:35 peter Exp $
- * $DragonFly: src/lib/libstand/zalloc_defs.h,v 1.3 2005/03/13 15:10:03 swildner Exp $
+ * $DragonFly: src/lib/libstand/zalloc_defs.h,v 1.4 2008/06/05 18:01:49 swildner Exp $
*/
/*
#define Prototype extern
#define Library extern
-#ifndef NULL
-#define NULL ((void *)0)
-#endif
-
/*
* block extension for sbrk()
*/
* please let me know. <gwr@mc.com>
*
* $FreeBSD: src/libexec/bootpd/getether.c,v 1.9.2.3 2003/02/15 05:36:01 kris Exp $
- * $DragonFly: src/libexec/bootpd/getether.c,v 1.3 2004/02/13 03:49:47 dillon Exp $
+ * $DragonFly: src/libexec/bootpd/getether.c,v 1.4 2008/06/05 18:01:49 swildner Exp $
*/
#include <sys/types.h>
#include <sys/dlpi.h>
#include <stropts.h>
#include <string.h>
-#ifndef NULL
-#define NULL 0
-#endif
int
getether(ifname, eap)
SOFTWARE.
$FreeBSD: src/libexec/bootpd/hash.c,v 1.5 1999/08/28 00:09:18 peter Exp $
- $DragonFly: src/libexec/bootpd/hash.c,v 1.2 2003/06/17 04:27:07 dillon Exp $
+ $DragonFly: src/libexec/bootpd/hash.c,v 1.3 2008/06/05 18:01:49 swildner Exp $
************************************************************************/
#define TRUE 1
#define FALSE 0
-#ifndef NULL
-#define NULL 0
-#endif
/*
* This can be changed to make internal routines visible to debuggers, etc.
*
* @(#)malloc.c 5.11 (Berkeley) 2/23/91
* $FreeBSD: src/libexec/rtld-elf/malloc.c,v 1.3.2.3 2003/02/20 20:42:46 kan Exp $
- * $DragonFly: src/libexec/rtld-elf/malloc.c,v 1.2 2003/06/17 04:27:08 dillon Exp $
+ * $DragonFly: src/libexec/rtld-elf/malloc.c,v 1.3 2008/06/05 18:01:49 swildner Exp $
*/
/*
#define NEED_DEV_ZERO 1
#endif
-#define NULL 0
-
static void morecore();
static int findbucket();
*
* from: @(#)sprite.h 8.1 (Berkeley) 6/6/93
* $NetBSD: sprite.h,v 1.1 1999/11/23 05:28:22 mrg Exp $
- * $DragonFly: src/sbin/rcorder/sprite.h,v 1.1 2003/07/24 06:35:38 dillon Exp $
+ * $DragonFly: src/sbin/rcorder/sprite.h,v 1.2 2008/06/05 18:01:49 swildner Exp $
*/
/*
#define NIL ~0
#define USER_NIL 0
-#ifndef NULL
-#define NULL 0
-#endif /* NULL */
/*
* An address is just a pointer in C. It is defined as a character pointer
/*
* $FreeBSD: src/sys/boot/efi/include/efidef.h,v 1.2 2002/05/19 03:17:20 marcel Exp $
- * $DragonFly: src/sys/boot/efi/include/efidef.h,v 1.1 2003/11/10 06:08:32 dillon Exp $
+ * $DragonFly: src/sys/boot/efi/include/efidef.h,v 1.2 2008/06/05 18:01:49 swildner Exp $
*/
#ifndef _EFI_DEF_H
#define _EFI_DEF_H
#define FALSE ((BOOLEAN) 0)
#endif
-#ifndef NULL
- #define NULL ((VOID *) 0)
-#endif
-
typedef UINTN EFI_STATUS;
typedef UINT64 EFI_LBA;
typedef UINTN EFI_TPL;
/*
* $FreeBSD: src/sys/boot/ficl/i386/sysdep.h,v 1.8 2002/05/16 21:21:52 trhodes Exp $
- * $DragonFly: src/sys/boot/ficl/i386/sysdep.h,v 1.3 2003/11/10 06:08:33 dillon Exp $
+ * $DragonFly: src/sys/boot/ficl/i386/sysdep.h,v 1.4 2008/06/05 18:01:49 swildner Exp $
*/
#if !defined (__SYSDEP_H__)
#define UNS8 unsigned char
#endif
-#if !defined NULL
-#define NULL ((void *)0)
-#endif
-
/*
** FICL_UNS and FICL_INT must have the same size as a void* on
** the target system. A CELL is a union of void*, FICL_UNS, and
/* $FreeBSD: src/sys/dev/asr/osd_util.h,v 1.1.2.2 2001/08/23 05:21:29 scottl Exp $ */
-/* $DragonFly: src/sys/dev/raid/asr/osd_util.h,v 1.5 2004/02/12 00:00:19 dillon Exp $ */
+/* $DragonFly: src/sys/dev/raid/asr/osd_util.h,v 1.6 2008/06/05 18:01:49 swildner Exp $ */
/*
* Copyright (c) 1996-1999 Distributed Processing Technology Corporation
* All rights reserved.
} access_U;
#endif
-#if !defined (NULL)
- #define NULL 0
-#endif
-
/*Prototypes - function ----------------------------------------------------- */