Ruby: include/ruby/internal/intern/hash.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

hash.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_HASH_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_HASH_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25#include "ruby/st.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* hash.c */
30void rb_st_foreach_safe(struct st_table *, int (*)(st_data_t, st_data_t, st_data_t), st_data_t);
31#define st_foreach_safe rb_st_foreach_safe
32 VALUE rb_check_hash_type(VALUE);
33 void rb_hash_foreach(VALUE, int (*)(VALUE, VALUE, VALUE), VALUE);
34 VALUE rb_hash(VALUE);
35 VALUE rb_hash_new(void);
36 VALUE rb_hash_dup(VALUE);
37 VALUE rb_hash_freeze(VALUE);
38 VALUE rb_hash_aref(VALUE, VALUE);
39 VALUE rb_hash_lookup(VALUE, VALUE);
40 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
41 VALUE rb_hash_fetch(VALUE, VALUE);
42 VALUE rb_hash_aset(VALUE, VALUE, VALUE);
43 VALUE rb_hash_clear(VALUE);
44 VALUE rb_hash_delete_if(VALUE);
45 VALUE rb_hash_delete(VALUE,VALUE);
46 VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone);
47void rb_hash_bulk_insert(long, const VALUE *, VALUE);
48 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
49 VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
50struct st_table *rb_hash_tbl(VALUE, const char *file, int line);
51int rb_path_check(const char*);
52int rb_env_path_tainted(void);
53 VALUE rb_env_clear(void);
54 VALUE rb_hash_size(VALUE);
55 void rb_hash_free(VALUE);
56
57 RBIMPL_SYMBOL_EXPORT_END()
58
59#endif /* RBIMPL_INTERN_HASH_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_hash_lookup
VALUE rb_hash_lookup(VALUE, VALUE)
Definition: hash.c:2072
rb_hash_foreach
void rb_hash_foreach(VALUE, int(*)(VALUE, VALUE, VALUE), VALUE)
rb_hash
VALUE rb_hash(VALUE)
Definition: hash.c:143
rb_hash_tbl
struct st_table * rb_hash_tbl(VALUE, const char *file, int line)
Definition: hash.c:1609
rb_hash_set_ifnone
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
Definition: hash.c:113
rb_hash_aref
VALUE rb_hash_aref(VALUE, VALUE)
Definition: hash.c:2046
rb_hash_free
void rb_hash_free(VALUE)
rb_hash_delete_if
VALUE rb_hash_delete_if(VALUE)
Definition: hash.c:2490
rb_hash_update_func
VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)
Definition: hash.h:48
rb_path_check
int rb_path_check(const char *)
Definition: file.c:6250
rb_env_path_tainted
int rb_env_path_tainted(void)
Definition: hash.c:5051
rb_hash_lookup2
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE)
Definition: hash.c:2059
rb_hash_dup
VALUE rb_hash_dup(VALUE)
Definition: hash.c:1579
rb_hash_bulk_insert
void rb_hash_bulk_insert(long, const VALUE *, VALUE)
Definition: hash.c:4777
rb_st_foreach_safe
void rb_st_foreach_safe(struct st_table *, int(*)(st_data_t, st_data_t, st_data_t), st_data_t)
rb_hash_freeze
VALUE rb_hash_freeze(VALUE)
Definition: hash.c:101
rb_hash_size
VALUE rb_hash_size(VALUE)
Definition: hash.c:2981
rb_hash_update_by
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
Definition: hash.c:4036
rb_hash_delete
VALUE rb_hash_delete(VALUE, VALUE)
Definition: hash.c:2327
rb_check_hash_type
VALUE rb_check_hash_type(VALUE)
Definition: hash.c:1860
rb_hash_fetch
VALUE rb_hash_fetch(VALUE, VALUE)
Definition: hash.c:2138
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
Definition: hash.c:2901
rb_env_clear
VALUE rb_env_clear(void)
Definition: hash.c:5839
rb_hash_clear
VALUE rb_hash_clear(VALUE)
Definition: hash.c:2819
rb_hash_new
VALUE rb_hash_new(void)
Definition: hash.c:1538
st.h
st_data_t
unsigned long st_data_t
Definition: st.h:22
file
Definition: gzappend.c:170
st_table
Definition: st.h:79
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38