Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Language fixes to some comments

  • Loading branch information...
commit 028279a1bb35e7fb188b7be6ed0c754cdf23ad75 1 parent daf0fde
@jskorpan jskorpan authored
Showing with 6 additions and 5 deletions.
  1. +5 −4 ultrajson.h
  2. +1 −1  ultrajsonenc.c
View
9 ultrajson.h
@@ -35,7 +35,7 @@ Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights rese
*/
/*
-Ultra fast JSON encoder
+Ultra fast JSON encoder and decoder
Developed by Jonas Tarnstrom (jonas@esn.me).
Encoder notes:
@@ -56,18 +56,19 @@ tree doesn't have cyclic references.
//#define JSON_DECODE_NUMERIC_AS_DOUBLE
-// Don't decode any extra whitespaces
+// Don't output any extra whitespaces when encoding
#define JSON_NO_EXTRA_WHITESPACE
+// Max decimals to encode double floating point numbers with
#ifndef JSON_DOUBLE_MAX_DECIMALS
#define JSON_DOUBLE_MAX_DECIMALS 9
#endif
+// Max recursion depth, default for encoder
#ifndef JSON_MAX_RECURSION_DEPTH
#define JSON_MAX_RECURSION_DEPTH 256
#endif
-
/*
Dictates and limits how much stack space for buffers UltraJSON will use before resorting to provided heap functions */
#ifndef JSON_MAX_STACK_BUFFER_SIZE
@@ -249,7 +250,7 @@ Encode an object structure into JSON.
Arguments:
obj - An anonymous type representing the object
-def - Function definitions for querying JSOBJ type
+enc - Function definitions for querying JSOBJ type
buffer - Preallocated buffer to store result in. If NULL function allocates own buffer
cbBuffer - Length of buffer (ignored if buffer is NULL)
View
2  ultrajsonenc.c
@@ -60,7 +60,7 @@ FIXME: While this is fine dandy and working it's a magic value mess which probab
Needs a cleanup and more documentation */
/*
-Table for pure ascii output escaping all characters above 127 to \u00XXX */
+Table for pure ascii output escaping all characters above 127 to \uXXXX */
static const JSUINT8 g_asciiOutputTable[256] =
{
/* 0x00 */ 0, 30, 30, 30, 30, 30, 30, 30, 10, 12, 14, 30, 16, 18, 30, 30,
Please sign in to comment.
Something went wrong with that request. Please try again.