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

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

array.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_ARRAY_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_ARRAY_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25
26 RBIMPL_SYMBOL_EXPORT_BEGIN()
27
28/* array.c */
29void rb_mem_clear(VALUE*, long);
30 VALUE rb_assoc_new(VALUE, VALUE);
31 VALUE rb_check_array_type(VALUE);
32 VALUE rb_ary_new(void);
33 VALUE rb_ary_new_capa(long capa);
34 VALUE rb_ary_new_from_args(long n, ...);
35 VALUE rb_ary_new_from_values(long n, const VALUE *elts);
36 VALUE rb_ary_tmp_new(long);
37void rb_ary_free(VALUE);
38void rb_ary_modify(VALUE);
39 VALUE rb_ary_freeze(VALUE);
40 VALUE rb_ary_shared_with_p(VALUE, VALUE);
41 VALUE rb_ary_aref(int, const VALUE*, VALUE);
42 VALUE rb_ary_subseq(VALUE, long, long);
43void rb_ary_store(VALUE, long, VALUE);
44 VALUE rb_ary_dup(VALUE);
45 VALUE rb_ary_resurrect(VALUE ary);
46 VALUE rb_ary_to_ary(VALUE);
47 VALUE rb_ary_to_s(VALUE);
48 VALUE rb_ary_cat(VALUE, const VALUE *, long);
49 VALUE rb_ary_push(VALUE, VALUE);
50 VALUE rb_ary_pop(VALUE);
51 VALUE rb_ary_shift(VALUE);
52 VALUE rb_ary_unshift(VALUE, VALUE);
53 VALUE rb_ary_entry(VALUE, long);
54 VALUE rb_ary_each(VALUE);
55 VALUE rb_ary_join(VALUE, VALUE);
56 VALUE rb_ary_reverse(VALUE);
57 VALUE rb_ary_rotate(VALUE, long);
58 VALUE rb_ary_sort(VALUE);
59 VALUE rb_ary_sort_bang(VALUE);
60 VALUE rb_ary_delete(VALUE, VALUE);
61 VALUE rb_ary_delete_at(VALUE, long);
62 VALUE rb_ary_clear(VALUE);
63 VALUE rb_ary_plus(VALUE, VALUE);
64 VALUE rb_ary_concat(VALUE, VALUE);
65 VALUE rb_ary_assoc(VALUE, VALUE);
66 VALUE rb_ary_rassoc(VALUE, VALUE);
67 VALUE rb_ary_includes(VALUE, VALUE);
68 VALUE rb_ary_cmp(VALUE, VALUE);
69 VALUE rb_ary_replace(VALUE copy, VALUE orig);
70 VALUE rb_get_values_at(VALUE, long, int, const VALUE*, VALUE(*)(VALUE,long));
71 VALUE rb_ary_resize(VALUE ary, long len);
72#define rb_ary_new2 rb_ary_new_capa
73#define rb_ary_new3 rb_ary_new_from_args
74#define rb_ary_new4 rb_ary_new_from_values
75
76 RBIMPL_SYMBOL_EXPORT_END()
77
78#endif /* RBIMPL_INTERN_ARRAY_H */
rb_ary_subseq
#define rb_ary_subseq(ary, beg, len)
Definition: cparse.c:76
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
len
uint8_t len
Definition: escape.c:17
rb_ary_new_from_values
VALUE rb_ary_new_from_values(long n, const VALUE *elts)
Definition: array.c:788
rb_ary_aref
VALUE rb_ary_aref(int, const VALUE *, VALUE)
Definition: array.c:1802
rb_assoc_new
VALUE rb_assoc_new(VALUE, VALUE)
Definition: array.c:975
rb_ary_cat
VALUE rb_ary_cat(VALUE, const VALUE *, long)
Definition: array.c:1314
rb_ary_pop
VALUE rb_ary_pop(VALUE)
Definition: array.c:1350
rb_ary_each
VALUE rb_ary_each(VALUE)
Definition: array.c:2517
rb_ary_resurrect
VALUE rb_ary_resurrect(VALUE ary)
Definition: array.c:2679
rb_ary_modify
void rb_ary_modify(VALUE)
Definition: array.c:606
rb_ary_push
VALUE rb_ary_push(VALUE, VALUE)
Definition: array.c:1301
rb_ary_join
VALUE rb_ary_join(VALUE, VALUE)
Definition: array.c:2780
rb_ary_shared_with_p
VALUE rb_ary_shared_with_p(VALUE, VALUE)
Definition: array.c:687
rb_ary_concat
VALUE rb_ary_concat(VALUE, VALUE)
Definition: array.c:4859
rb_ary_delete
VALUE rb_ary_delete(VALUE, VALUE)
Definition: array.c:3956
rb_ary_sort_bang
VALUE rb_ary_sort_bang(VALUE)
Definition: array.c:3298
rb_ary_rotate
VALUE rb_ary_rotate(VALUE, long)
Definition: array.c:3079
rb_ary_replace
VALUE rb_ary_replace(VALUE copy, VALUE orig)
Definition: array.c:4484
rb_ary_cmp
VALUE rb_ary_cmp(VALUE, VALUE)
Definition: array.c:5198
rb_ary_sort
VALUE rb_ary_sort(VALUE)
Definition: array.c:3396
rb_ary_clear
VALUE rb_ary_clear(VALUE)
Definition: array.c:4534
rb_ary_tmp_new
VALUE rb_ary_tmp_new(long)
Definition: array.c:846
rb_ary_new
VALUE rb_ary_new(void)
Definition: array.c:749
rb_ary_to_ary
VALUE rb_ary_to_ary(VALUE)
Definition: array.c:2133
rb_ary_reverse
VALUE rb_ary_reverse(VALUE)
Definition: array.c:2998
rb_ary_to_s
VALUE rb_ary_to_s(VALUE)
Definition: array.c:2894
rb_ary_new_capa
VALUE rb_ary_new_capa(long capa)
Definition: array.c:743
rb_ary_freeze
VALUE rb_ary_freeze(VALUE)
Definition: array.c:674
rb_ary_resize
VALUE rb_ary_resize(VALUE ary, long len)
expands or shrinks ary to len elements.
Definition: array.c:2235
rb_ary_dup
VALUE rb_ary_dup(VALUE)
Definition: array.c:2666
rb_check_array_type
VALUE rb_check_array_type(VALUE)
Definition: array.c:988
rb_ary_unshift
VALUE rb_ary_unshift(VALUE, VALUE)
Definition: array.c:1654
rb_ary_free
void rb_ary_free(VALUE)
Definition: array.c:864
rb_ary_shift
VALUE rb_ary_shift(VALUE)
Definition: array.c:1413
rb_ary_delete_at
VALUE rb_ary_delete_at(VALUE, long)
Definition: array.c:4010
rb_ary_plus
VALUE rb_ary_plus(VALUE, VALUE)
Definition: array.c:4800
rb_mem_clear
void rb_mem_clear(VALUE *, long)
Definition: array.c:260
rb_ary_includes
VALUE rb_ary_includes(VALUE, VALUE)
Definition: array.c:5126
rb_ary_rassoc
VALUE rb_ary_rassoc(VALUE, VALUE)
Definition: array.c:4967
rb_get_values_at
VALUE rb_get_values_at(VALUE, long, int, const VALUE *, VALUE(*)(VALUE, long))
Definition: array.c:3673
rb_ary_store
void rb_ary_store(VALUE, long, VALUE)
Definition: array.c:1141
rb_ary_assoc
VALUE rb_ary_assoc(VALUE, VALUE)
Definition: array.c:4938
rb_ary_entry
VALUE rb_ary_entry(VALUE, long)
Definition: array.c:1672
rb_ary_new_from_args
#define rb_ary_new_from_args(...)
Definition: internal.h:65
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38