~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to regex/utils.h

  • Committer: Brian Aker
  • Date: 2008-07-08 21:36:11 UTC
  • mfrom: (77.1.34 codestyle)
  • Revision ID: brian@tangent.org-20080708213611-b0k2zy8eldttqct3
Merging up Monty's changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* utility definitions */
2
 
#ifdef _POSIX2_RE_DUP_MAX
3
 
#define DUPMAX          _POSIX2_RE_DUP_MAX      /* xxx is this right? */
4
 
#else
5
 
#define DUPMAX          255
6
 
#endif
7
 
#define RE_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