Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. /* utility definitions */
  3. #define DUPMAX          _POSIX2_RE_DUP_MAX      /* xxx is this right? */
  4. #define INFINITY        (DUPMAX + 1)
  5. #define NC              (CHAR_MAX - CHAR_MIN + 1)
  6. typedef unsigned char uch;
  7.  
  8. /* switch off assertions (if not already off) if no REDEBUG */
  9. #ifndef REDEBUG
  10. #ifndef NDEBUG
  11. #define NDEBUG  /* no assertions please */
  12. #endif
  13. #endif
  14. #include <assert.h>
  15.  
  16. /* for old systems with bcopy() but no memmove() */
  17. #ifdef USEBCOPY
  18. #define memmove(d, s, c)        bcopy(s, d, c)
  19. #endif
  20.