Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -rupN jsmn_orig/jsmn.c jsmn/jsmn.c
- --- jsmn_orig/jsmn.c 2014-02-21 04:04:16.000000000 -0500
- +++ jsmn/jsmn.c 2014-04-14 00:39:58.000000000 -0400
- @@ -1,5 +1,4 @@
- -#include <stdlib.h>
- -
- +#include <stddef.h>
- #include "jsmn.h"
- /**
- @@ -87,6 +86,7 @@ static jsmnerr_t jsmn_parse_string(jsmn_
- size_t len, jsmntok_t *tokens, size_t num_tokens) {
- jsmntok_t *token;
- + int i;
- int start = parser->pos;
- parser->pos++;
- @@ -123,7 +123,7 @@ static jsmnerr_t jsmn_parse_string(jsmn_
- /* Allows escaped symbol \uXXXX */
- case 'u':
- parser->pos++;
- - int i = 0;
- + i = 0;
- for(; i < 4 && js[parser->pos] != '\0'; i++) {
- /* If it isn't a hex character we have an error */
- if(!((js[parser->pos] >= 48 && js[parser->pos] <= 57) || /* 0-9 */
- diff -rupN jsmn_orig/jsmn.h jsmn/jsmn.h
- --- jsmn_orig/jsmn.h 2014-02-21 04:04:16.000000000 -0500
- +++ jsmn/jsmn.h 2014-04-14 00:40:08.000000000 -0400
- @@ -1,6 +1,8 @@
- #ifndef __JSMN_H_
- #define __JSMN_H_
- +#include <stddef.h>
- +
- #ifdef __cplusplus
- extern "C" {
- #endif
Add Comment
Please, Sign In to add comment