1 /* $Id$ */ 2 3 #ifndef _BEDBUG_H 4 #define _BEDBUG_H 5 6 #ifndef NULL 7 #define NULL 0 8 #endif 9 10 #define _USE_PROTOTYPES 11 12 #ifndef isblank 13 #define isblank(c) isspace((int)(c)) 14 #endif 15 16 #ifndef __P 17 #if defined(_USE_PROTOTYPES) && (defined(__STDC__) || defined(__cplusplus)) 18 #define __P(protos) protos /* full-blown ANSI C */ 19 #else 20 #define __P(protos) () /* traditional C preprocessor */ 21 #endif 22 #endif 23 24 #define assert( condition ) if( (condition) ) _exit(0) 25 26 #endif /* _BEDBUG_H */ 27 28 29 /* 30 * Copyright (c) 2001 William L. Pitts 31 * All rights reserved. 32 * 33 * Redistribution and use in source and binary forms are freely 34 * permitted provided that the above copyright notice and this 35 * paragraph and the following disclaimer are duplicated in all 36 * such forms. 37 * 38 * This software is provided "AS IS" and without any express or 39 * implied warranties, including, without limitation, the implied 40 * warranties of merchantability and fitness for a particular 41 * purpose. 42 */ 43