Permalink
Browse files

white space cleanup

  • Loading branch information...
lloyd committed Feb 15, 2014
1 parent 4c539cb commit fc32052b55049bcf0f5b94b43e2ab8a3273538d1
Showing with 9 additions and 9 deletions.
  1. +2 −2 src/api/yajl_gen.h
  2. +7 −7 src/yajl_gen.c
View
@@ -43,7 +43,7 @@ extern "C" {
* state */
yajl_gen_in_error_state,
/** A complete JSON document has been generated */
- yajl_gen_generation_complete,
+ yajl_gen_generation_complete,
/** yajl_gen_double was passed an invalid floating point value
* (infinity or NaN). */
yajl_gen_invalid_number,
@@ -152,6 +152,6 @@ extern "C" {
#ifdef __cplusplus
}
-#endif
+#endif
#endif
View
@@ -140,7 +140,7 @@ yajl_gen_free(yajl_gen g)
} else if (g->state[g->depth] == yajl_gen_map_val) { \
g->print(g->ctx, ":", 1); \
if ((g->flags & yajl_gen_beautify)) g->print(g->ctx, " ", 1); \
- }
+ }
#define INSERT_WHITESPACE \
if ((g->flags & yajl_gen_beautify)) { \
@@ -219,7 +219,7 @@ yajl_gen_status
yajl_gen_double(yajl_gen g, double number)
{
char i[32];
- ENSURE_VALID_STATE; ENSURE_NOT_KEY;
+ ENSURE_VALID_STATE; ENSURE_NOT_KEY;
if (isnan(number) || isinf(number)) return yajl_gen_invalid_number;
INSERT_SEP; INSERT_WHITESPACE;
sprintf(i, "%.20g", number);
@@ -289,8 +289,8 @@ yajl_gen_status
yajl_gen_map_open(yajl_gen g)
{
ENSURE_VALID_STATE; ENSURE_NOT_KEY; INSERT_SEP; INSERT_WHITESPACE;
- INCREMENT_DEPTH;
-
+ INCREMENT_DEPTH;
+
g->state[g->depth] = yajl_gen_map_start;
g->print(g->ctx, "{", 1);
if ((g->flags & yajl_gen_beautify)) g->print(g->ctx, "\n", 1);
@@ -301,9 +301,9 @@ yajl_gen_map_open(yajl_gen g)
yajl_gen_status
yajl_gen_map_close(yajl_gen g)
{
- ENSURE_VALID_STATE;
+ ENSURE_VALID_STATE;
DECREMENT_DEPTH;
-
+
if ((g->flags & yajl_gen_beautify)) g->print(g->ctx, "\n", 1);
APPENDED_ATOM;
INSERT_WHITESPACE;
@@ -316,7 +316,7 @@ yajl_gen_status
yajl_gen_array_open(yajl_gen g)
{
ENSURE_VALID_STATE; ENSURE_NOT_KEY; INSERT_SEP; INSERT_WHITESPACE;
- INCREMENT_DEPTH;
+ INCREMENT_DEPTH;
g->state[g->depth] = yajl_gen_array_start;
g->print(g->ctx, "[", 1);
if ((g->flags & yajl_gen_beautify)) g->print(g->ctx, "\n", 1);

0 comments on commit fc32052

Please sign in to comment.