Sha256: 61190b58a215257cdb4be1eb0fef1a48fcd7613029a642dc4bd2cc04b63eb8bb

Contents?: true

Size: 418 Bytes

Versions: 27

Compression:

Stored size: 418 Bytes

Contents

/* ensure that if we try to generate an extra closing brace
 * we get the expected error */

#include <yajl/yajl_gen.h>
#include <stdio.h>

#define CHK(x) if (x != yajl_gen_status_ok) return 1;

int main(void) {
  yajl_gen yg;
  yajl_gen_status s;

  yg = yajl_gen_alloc(NULL);
  CHK(yajl_gen_map_open(yg));
  CHK(yajl_gen_map_close(yg));
  s = yajl_gen_map_close(yg);

  return (yajl_gen_generation_complete == s);
}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
libyajl2-2.1.0 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-2.0.0 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-1.2.0 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-1.1.0 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-1.0.1 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.18 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.17 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.16 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.15 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.14 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.13 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.12 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.11 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.10 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.9 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.8 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.7 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.6 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.5 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c
libyajl2-0.1.4 ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c