summaryrefslogtreecommitdiff
path: root/jsmn.c
diff options
context:
space:
mode:
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>2014-11-17 14:14:45 +0200
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>2014-11-17 14:14:45 +0200
commit838061aa96bf9a756b3ae744787064b3201da914 (patch)
tree1d7fa5e85499b04132c66ee081b67cbc2fc2392c /jsmn.c
parent8a22e0a14900dfcc4cdcfc71d5e12acff561ce25 (diff)
removed trailing spaces
Diffstat (limited to 'jsmn.c')
-rw-r--r--jsmn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/jsmn.c b/jsmn.c
index 893f23cb1..e22d8a3c9 100644
--- a/jsmn.c
+++ b/jsmn.c
@@ -5,7 +5,7 @@
/**
* Allocates a fresh unused token from the token pull.
*/
-static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
+static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
jsmntok_t *tokens, size_t num_tokens) {
jsmntok_t *tok;
if (parser->toknext >= num_tokens) {
@@ -23,7 +23,7 @@ static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
/**
* Fills token type and boundaries.
*/
-static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type,
+static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type,
int start, int end) {
token->type = type;
token->start = start;
@@ -234,7 +234,7 @@ jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
if (parser->toksuper != -1 && tokens != NULL)
tokens[parser->toksuper].size++;
break;
- case '\t' : case '\r' : case '\n' : case ' ':
+ case '\t' : case '\r' : case '\n' : case ' ':
break;
case ':':
parser->toksuper = parser->toknext - 1;
@@ -292,7 +292,7 @@ jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
}
/**
- * Creates a new parser based over a given buffer with an array of tokens
+ * Creates a new parser based over a given buffer with an array of tokens
* available.
*/
void jsmn_init(jsmn_parser *parser) {