"Fossies" - the Fresh Open Source Software Archive

Member "utils.h" (25 Nov 2004, 500 Bytes) of package /linux/privat/old/dirsync-1_11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "utils.h" see the Fossies "Dox" file reference documentation.

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