Fix for strncasecmp
This commit is contained in:
parent
f93aed8031
commit
577fdbc8a5
|
@ -33,6 +33,7 @@
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
#else
|
#else
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,7 +50,7 @@
|
||||||
#define FCGI_stdout stdout
|
#define FCGI_stdout stdout
|
||||||
#define FCGI_stderr stderr
|
#define FCGI_stderr stderr
|
||||||
#define logstream stderr
|
#define logstream stderr
|
||||||
#endif //SERVER
|
#endif /*SERVER*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,14 +73,14 @@ char * get_fieldparam( char *stringptr, char *fieldname, char *fieldval);
|
||||||
void parse_cclose( char *src, query_param_t *query_param);
|
void parse_cclose( char *src, query_param_t *query_param);
|
||||||
void parse_metareq( char *field, query_param_t *query_param);
|
void parse_metareq( char *field, query_param_t *query_param);
|
||||||
|
|
||||||
// parse the requested components (parses forms like:a; a,b; a-b; a-b,c; a,b-c)
|
/* parse the requested components (parses forms like:a; a,b; a-b; a-b,c; a,b-c)*/
|
||||||
void parse_comps( char *field, query_param_t *query_param);
|
void parse_comps( char *field, query_param_t *query_param);
|
||||||
|
|
||||||
|
|
||||||
//! maximum length of field name
|
/** maximum length of field name*/
|
||||||
#define MAX_LENOFFIELDNAME 10
|
#define MAX_LENOFFIELDNAME 10
|
||||||
|
|
||||||
//! maximum length of field value
|
/** maximum length of field value*/
|
||||||
#define MAX_LENOFFIELDVAL 128
|
#define MAX_LENOFFIELDVAL 128
|
||||||
|
|
||||||
query_param_t * parse_query( char *query_string)
|
query_param_t * parse_query( char *query_string)
|
||||||
|
@ -268,7 +269,7 @@ void print_queryparam( query_param_t query_param)
|
||||||
|
|
||||||
void parse_cclose( char *src, query_param_t *query_param)
|
void parse_cclose( char *src, query_param_t *query_param)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
len = strlen( src);
|
len = strlen( src);
|
||||||
|
@ -293,7 +294,7 @@ void parse_metareq( char *field, query_param_t *query_param)
|
||||||
|
|
||||||
memset( req_box_prop, 0, 20);
|
memset( req_box_prop, 0, 20);
|
||||||
|
|
||||||
// req-box-prop
|
/* req-box-prop*/
|
||||||
ptr = strchr( field, '[');
|
ptr = strchr( field, '[');
|
||||||
ptr++;
|
ptr++;
|
||||||
src = ptr;
|
src = ptr;
|
||||||
|
|
Loading…
Reference in New Issue