bedbug.h 956 B

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