| 38 |
*/ |
*/ |
| 39 |
|
|
| 40 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
| 41 |
# include <config.h> |
#include <config.h> |
| 42 |
#endif |
#endif |
| 43 |
|
|
| 44 |
#include <ctype.h> |
#include <ctype.h> |
| 50 |
|
|
| 51 |
#include <sys/types.h> |
#include <sys/types.h> |
| 52 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 53 |
|
|
| 54 |
#ifdef HAVE_UNISTD_H |
#ifdef HAVE_UNISTD_H |
| 55 |
# include <unistd.h> |
#include <unistd.h> |
| 56 |
#endif |
#endif |
| 57 |
|
|
| 58 |
#include <pcre.h> |
#include <pcre.h> |
| 856 |
|
|
| 857 |
t = end_of_line(t, endptr, &endlinelength); |
t = end_of_line(t, endptr, &endlinelength); |
| 858 |
linelength = t - ptr - endlinelength; |
linelength = t - ptr - endlinelength; |
| 859 |
length = multiline? endptr - ptr : linelength; |
length = multiline? (size_t)(endptr - ptr) : linelength; |
| 860 |
|
|
| 861 |
/* Extra processing for Jeffrey Friedl's debugging. */ |
/* Extra processing for Jeffrey Friedl's debugging. */ |
| 862 |
|
|
| 1626 |
else /* Special case xxx=data */ |
else /* Special case xxx=data */ |
| 1627 |
{ |
{ |
| 1628 |
int oplen = equals - op->long_name; |
int oplen = equals - op->long_name; |
| 1629 |
int arglen = (argequals == NULL)? strlen(arg) : argequals - arg; |
int arglen = (argequals == NULL)? (int)strlen(arg) : argequals - arg; |
| 1630 |
if (oplen == arglen && strncmp(arg, op->long_name, oplen) == 0) |
if (oplen == arglen && strncmp(arg, op->long_name, oplen) == 0) |
| 1631 |
{ |
{ |
| 1632 |
option_data = arg + arglen; |
option_data = arg + arglen; |