1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

declaration of 'strlen' shadows a global declaration

This commit is contained in:
PSYC 2011-05-23 19:12:27 +02:00
parent a4abbfbab1
commit 6dca44b64d
2 changed files with 4 additions and 3 deletions

View file

@ -126,7 +126,8 @@ We'll use the latter here:
* Results * Results
Parsing time of 1 000 000 packets in milliseconds: Parsing time of 1 000 000 packets, in milliseconds.
a simple strlen scan of the respective message is provided for comparison.
| input: | PSYC | | JSON | | | XML | | | input: | PSYC | | JSON | | | XML | |
| parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml | | parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml |

View file

@ -108,9 +108,9 @@ typedef struct
* @return An instance of the psycString struct. * @return An instance of the psycString struct.
*/ */
static inline static inline
psycString psyc_newString (const char *str, size_t strlen) psycString psyc_newString (const char *str, size_t slen)
{ {
psycString s = {strlen, str}; psycString s = {slen, str};
return s; return s;
} }