[Groonga-commit] groonga/groonga [master] output return code in put_delimiter().

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2010年 6月 22日 (火) 21:14:43 JST


Daijiro MORI	2010-06-22 12:14:43 +0000 (Tue, 22 Jun 2010)

  New Revision: 9582e1e5e8ae13743a1659d20e4beea9310017ef

  Log:
    output return code in put_delimiter().

  Modified files:
    lib/output.c

  Modified: lib/output.c (+1 -0)
===================================================================
--- lib/output.c    2010-06-22 11:22:34 +0000 (5631c48)
+++ lib/output.c    2010-06-22 12:14:43 +0000 (88cb4e0)
@@ -40,6 +40,7 @@ put_delimiter(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type)
   case GRN_CONTENT_JSON:
     if (level < 2) { return; }
     GRN_TEXT_PUTC(ctx, outbuf, ((level & 3) == 3) ? ':' : ',');
+    if (DEPTH == 1 && ((level & 3) != 3)) { GRN_TEXT_PUTC(ctx, outbuf, '\n'); }
     break;
   case GRN_CONTENT_XML:
     if (!DEPTH) { return; }




Groonga-commit メーリングリストの案内
アーカイブの一覧に戻る