home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / posix / regex / utils.h < prev   
Encoding:
C/C++ Source or Header  |  1995-06-13  |  551 b   |  20 lines

  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.