mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-14 14:58:06 +08:00
updated libopts to 5.18
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 29 bits for 46 character classifications
|
||||
* generated by char-mapper on 03/31/13 at 10:41:23
|
||||
* generated by char-mapper on 07/14/13 at 17:37:05
|
||||
*
|
||||
* This file contains the character classifications
|
||||
* used by AutoGen and AutoOpts for identifying tokens.
|
||||
@@ -103,7 +103,7 @@
|
||||
// file-name +dir-sep +suffix
|
||||
// end-token +nul-byte +whitespace
|
||||
// end-list-entry +comma +end-token
|
||||
// set-separator "|+" +end-list-entry
|
||||
// set-separator "|+-!" +end-list-entry
|
||||
// signed-number +inversion +dec-digit
|
||||
// make-script +dollar +newline
|
||||
// load-line-skip +horiz-white +option-marker
|
||||
@@ -489,7 +489,7 @@ spn_ag_char_map_chars(char const * p, unsigned int mask_ix)
|
||||
unsigned char const * v = ag_char_map_spanners[mask_ix];
|
||||
if (v == NULL)
|
||||
v = calc_ag_char_map_spanners(mask_ix);
|
||||
while (v[(unsigned char)*p]) p++;
|
||||
while (v[(unsigned)*p]) p++;
|
||||
return (char *)(uintptr_t)p;
|
||||
}
|
||||
|
||||
@@ -499,7 +499,7 @@ brk_ag_char_map_chars(char const * p, unsigned int mask_ix)
|
||||
unsigned char const * v = ag_char_map_spanners[mask_ix];
|
||||
if (v == NULL)
|
||||
v = calc_ag_char_map_spanners(mask_ix);
|
||||
while ((*p != '\0') && (! v[(unsigned char)*p])) p++;
|
||||
while ((*p != '\0') && (! v[(unsigned)*p])) p++;
|
||||
return (char *)(uintptr_t)p;
|
||||
}
|
||||
|
||||
@@ -510,7 +510,7 @@ spn_ag_char_map_back(char const * s, char const * e, unsigned int mask_ix)
|
||||
if (v == NULL)
|
||||
v = calc_ag_char_map_spanners(mask_ix);
|
||||
if (s >= e) e = s + strlen(s);
|
||||
while ((e > s) && v[(unsigned char)e[-1]]) e--;
|
||||
while ((e > s) && v[(unsigned)e[-1]]) e--;
|
||||
return (char *)(uintptr_t)e;
|
||||
}
|
||||
|
||||
@@ -521,7 +521,7 @@ brk_ag_char_map_back(char const * s, char const * e, unsigned int mask_ix)
|
||||
if (v == NULL)
|
||||
v = calc_ag_char_map_spanners(mask_ix);
|
||||
if (s == e) e += strlen(e);
|
||||
while ((e > s) && (! v[(unsigned char)e[-1]])) e--;
|
||||
while ((e > s) && (! v[(unsigned)e[-1]])) e--;
|
||||
return (char *)(uintptr_t)e;
|
||||
}
|
||||
#endif /* AG_CHAR_MAP_H_GUARD */
|
||||
|
||||
Reference in New Issue
Block a user