Sha256: 92a8a7b0fbe26f633a1932d153025cc5d00763686878a183d9ffc508202fd895

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

// Copyright (c) 2021, Peter Ohler, All rights reserved.

#include <ruby.h>
#include <stdbool.h>

struct _cache;
struct _ojParser;

typedef struct _saj {
    VALUE          handler;
    VALUE         *keys;
    VALUE         *tail;
    size_t         klen;
    struct _cache *str_cache;
    uint8_t        cache_str;
    bool           cache_keys;
    bool           thread_safe;
} * Saj;

// Initialize the parser with the SAJ delegate. If the SAJ delegate is wrapped
// then this function is called first and then the parser functions can be
// replaced.
extern void oj_init_saj(struct _ojParser *p, Saj d);

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oj-3.14.2 ext/oj/saj2.h
oj-3.14.1 ext/oj/saj2.h
oj-3.14.0 ext/oj/saj2.h
oj-3.13.23 ext/oj/saj2.h
oj-3.13.22 ext/oj/saj2.h