diff options
author | 2004-12-13 16:42:41 +0000 | |
---|---|---|
committer | 2004-12-13 16:42:41 +0000 | |
commit | 73119a24164fb6be862e42c150e37dc39c51594d (patch) | |
tree | 6caff8b5bcb373ebae6c6e86a2f97f23f1b3a6eb | |
parent | Restore sp before calling snptreef() so the error message contains (diff) | |
download | wireguard-openbsd-73119a24164fb6be862e42c150e37dc39c51594d.tar.xz wireguard-openbsd-73119a24164fb6be862e42c150e37dc39c51594d.zip |
Dead meat.
-rw-r--r-- | sys/arch/mac68k/dev/bounds.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/arch/mac68k/dev/bounds.h b/sys/arch/mac68k/dev/bounds.h deleted file mode 100644 index d76876568e0..00000000000 --- a/sys/arch/mac68k/dev/bounds.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $OpenBSD: bounds.h,v 1.2 1996/05/26 18:35:19 briggs Exp $ */ -/* $NetBSD: bounds.h,v 1.3 1995/04/21 02:47:47 briggs Exp $ */ - -#if defined(CHECKBOUNDS) - -#undef CHECKBOUNDS - -/* This requires ANSI C stringification. */ -#define CHECKBOUNDS(a, i) { \ - if ( (((a) + (i)) < (a)) || \ - (((a) + (i)) >= ((a) + (sizeof(a) / sizeof(*(a))))) ) { \ - printf("index " #i " (%d) exceeded bounds of " #a \ - ", '%s' line %d.\n", (i), __FILE__, __LINE__); \ - printf("halting...\n"); \ - /*asm(" stop #0x2700");*/ \ - } \ -} - -#define CHECKPOINTER(a, p) { \ - if ( ((p) < (a)) || \ - ((p) >= ((a) + (sizeof(a) / sizeof(*(a))))) ) { \ - printf("pointer " #p " (0x%X) exceeded bounds of " #a \ - " (0x%X), '%s' line %d.\n", \ - (p), (a), __FILE__, __LINE__); \ - printf("halting...\n"); \ - /*asm(" stop #0x2700");*/ \ - } \ -} - -#else /* !defined(CHECKBOUNDS) */ - -#define CHECKBOUNDS(a, i) -#define CHECKPOINTER(a, p) - -#endif /* defined(CHECKBOUNDS) */ |