Sha256: 10a3f31d2ebbb085b8e40c37c5dac46447cfe44e6d21266b2ee0515b5c1a34ed

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 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

11 entries across 11 versions & 1 rubygems

Version Path
oj-3.16.7 ext/oj/saj2.h
oj-3.16.6 ext/oj/saj2.h
oj-3.16.5 ext/oj/saj2.h
oj-3.16.4 ext/oj/saj2.h
oj-3.16.3 ext/oj/saj2.h
oj-3.16.2 ext/oj/saj2.h
oj-3.16.1 ext/oj/saj2.h
oj-3.16.0 ext/oj/saj2.h
oj-3.15.1 ext/oj/saj2.h
oj-3.15.0 ext/oj/saj2.h
oj-3.14.3 ext/oj/saj2.h