mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[qs_parse] Removed register
This commit is contained in:
parent
edddb70200
commit
e53adb8349
@ -9,10 +9,10 @@
|
|||||||
#define HEX2DEC(x) (((x)>='0'&&(x)<='9') ? (x)-48 : ((x)>='A'&&(x)<='F') ? (x)-55 : ((x)>='a'&&(x)<='f') ? (x)-87 : 0)
|
#define HEX2DEC(x) (((x)>='0'&&(x)<='9') ? (x)-48 : ((x)>='A'&&(x)<='F') ? (x)-55 : ((x)>='a'&&(x)<='f') ? (x)-87 : 0)
|
||||||
#define ISQSCHR(x) ((((x)=='=')||((x)=='#')||((x)=='&')||((x)=='\0')) ? 0 : 1)
|
#define ISQSCHR(x) ((((x)=='=')||((x)=='#')||((x)=='&')||((x)=='\0')) ? 0 : 1)
|
||||||
|
|
||||||
int qs_strncmp(const char * s, const char * qs, register size_t n)
|
int qs_strncmp(const char * s, const char * qs, size_t n)
|
||||||
{
|
{
|
||||||
int i=0;
|
int i=0;
|
||||||
register unsigned char u1, u2, unyb, lnyb;
|
unsigned char u1, u2, unyb, lnyb;
|
||||||
|
|
||||||
while(n-- > 0)
|
while(n-- > 0)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
/* Similar to strncmp, but handles URL-encoding for either string */
|
/* Similar to strncmp, but handles URL-encoding for either string */
|
||||||
int qs_strncmp(const char * s, const char * qs, register size_t n);
|
int qs_strncmp(const char * s, const char * qs, size_t n);
|
||||||
|
|
||||||
|
|
||||||
/* Finds the beginning of each key/value pair and stores a pointer in qs_kv.
|
/* Finds the beginning of each key/value pair and stores a pointer in qs_kv.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user