Ruby: internal/enum.h File Reference

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

Functions | Variables
enum.h File Reference

Internal header for Enumerable. More...

`#include "ruby/ruby.h"`

Go to the source code of this file.

## Functions
VALUE | rb_f_send (int argc, VALUE *argv, VALUE recv)
VALUE | rb_nmin_run (VALUE obj, VALUE num, int by, int rev, int ary)

## Variables
VALUE | rb_cArithSeq

## Detailed Description

Internal header for Enumerable.

Author
  Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Copyright
  This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.

Definition in file enum.h.

## Function Documentation

## ◆ rb_f_send()

VALUE rb_f_send | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | recv
| ) |  |

Definition at line 1295 of file vm_eval.c.

References argc, argv, and CALL_FCALL.

Referenced by Init_vm_eval().

## ◆ rb_nmin_run()

VALUE rb_nmin_run | ( | VALUE | obj,
|  | VALUE | num,
|  | int | by,
|  | int | rev,
|  | int | ary
| ) |  |

Definition at line 1603 of file enum.c.

References nmin_data::buf, nmin_data::bufmax, nmin_data::by, nmin_data::cmpfunc, nmin_data::curlen, id_each, nmin_data::limit, LONG_MAX, nmin_data::n, num, NUM2LONG, ptr, Qundef, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR_USE, rb_ary_new2, rb_ary_resize(), rb_ary_reverse(), rb_ary_tmp_new(), ruby::backward::cxxanyargs::rb_block_call(), rb_block_given_p(), rb_cArray, rb_eArgError, rb_raise(), nmin_data::rev, and ruby_qsort().

## Variable Documentation

## ◆ rb_cArithSeq

VALUE rb_cArithSeq
| extern

Definition at line 197 of file enumerator.c.

Referenced by InitVM_Enumerator(), rb_arith_seq_new(), rb_arithmetic_sequence_extract(), and rb_range_values().