Sha256: 1ed968055b3f488a272dd1dd9c83afaa6e223fc79d5618945bb55698dc657df8

Contents?: true

Size: 872 Bytes

Versions: 9

Compression:

Stored size: 872 Bytes

Contents

// Copyright (c) 2011, 2021 Peter Ohler. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license details.

#ifndef OJ_INTERN_H
#define OJ_INTERN_H

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

struct _parseInfo;

extern void oj_hash_init();

extern VALUE oj_str_intern(const char *key, size_t len);
extern VALUE oj_sym_intern(const char *key, size_t len);
extern ID    oj_attr_intern(const char *key, size_t len);
extern VALUE oj_class_intern(const char *       key,
                             size_t             len,
                             bool               safe,
                             struct _parseInfo *pi,
                             int                auto_define,
                             VALUE              error_class);

extern char *oj_strndup(const char *s, size_t len);

#endif /* OJ_INTERN_H */

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oj-3.13.11 ext/oj/intern.h
oj-3.13.10 ext/oj/intern.h
oj-3.13.9 ext/oj/intern.h
oj-3.13.8 ext/oj/intern.h
oj-3.13.7 ext/oj/intern.h
oj-3.13.6 ext/oj/intern.h
oj-3.13.5 ext/oj/intern.h
oj-3.13.4 ext/oj/intern.h
oj-3.13.3 ext/oj/intern.h