File: utils.h

package info (click to toggle)
php3 3%3A3.0.18-23.1woody3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 17,816 kB
  • ctags: 11,188
  • sloc: ansic: 108,475; sh: 2,509; php: 2,024; yacc: 1,887; makefile: 1,050; perl: 537; pascal: 238; awk: 90; cpp: 28; sql: 11
file content (24 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* $Id: utils.h,v 1.7 1999/11/12 20:57:49 sas Exp $ */

/* utility definitions */
#ifdef _POSIX2_RE_DUP_MAX
#define	DUPMAX	_POSIX2_RE_DUP_MAX
#else
#define	DUPMAX	255
#endif
#define	INFINITY	(DUPMAX + 1)
#define	NC		(CHAR_MAX - CHAR_MIN + 1)
typedef unsigned char uch;

/* switch off assertions (if not already off) if no REDEBUG */
#ifndef REDEBUG
#ifndef NDEBUG
#define	NDEBUG	/* no assertions please */
#endif
#endif
#include <assert.h>

/* for old systems with bcopy() but no memmove() */
#ifdef USEBCOPY
#define	memmove(d, s, c)	bcopy(s, d, c)
#endif