| 6 |
#include <string.h> |
#include <string.h> |
| 7 |
#include <stdlib.h> |
#include <stdlib.h> |
| 8 |
#include <errno.h> |
#include <errno.h> |
| 9 |
|
#include "config.h" |
| 10 |
#include "pcre.h" |
#include "pcre.h" |
| 11 |
|
|
|
|
|
| 12 |
#define FALSE 0 |
#define FALSE 0 |
| 13 |
#define TRUE 1 |
#define TRUE 1 |
| 14 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
#ifdef STRERROR_FROM_ERRLIST |
#ifndef HAVE_STRERROR |
| 36 |
/************************************************* |
/************************************************* |
| 37 |
* Provide strerror() for non-ANSI libraries * |
* Provide strerror() for non-ANSI libraries * |
| 38 |
*************************************************/ |
*************************************************/ |
| 50 |
if (n < 0 || n >= sys_nerr) return "unknown error number"; |
if (n < 0 || n >= sys_nerr) return "unknown error number"; |
| 51 |
return sys_errlist[n]; |
return sys_errlist[n]; |
| 52 |
} |
} |
| 53 |
#endif /* STRERROR_FROM_ERRLIST */ |
#endif /* HAVE_STRERROR */ |
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|