2000-05-01 05:42:38 -04:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
intern.h -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
created at: Thu Jun 10 14:22:17 JST 1993
|
|
|
|
|
* encoding.c: provide basic features for M17N.
* parse.y: encoding aware parsing.
* parse.y (pragma_encoding): encoding specification pragma.
* parse.y (rb_intern3): encoding specified symbols.
* string.c (rb_str_length): length based on characters.
for older behavior, bytesize method added.
* string.c (rb_str_index_m): index based on characters. rindex as
well.
* string.c (succ_char): encoding aware succeeding string.
* string.c (rb_str_reverse): reverse based on characters.
* string.c (rb_str_inspect): encoding aware string description.
* string.c (rb_str_upcase_bang): encoding aware case conversion.
downcase, capitalize, swapcase as well.
* string.c (rb_str_tr_bang): tr based on characters. delete,
squeeze, tr_s, count as well.
* string.c (rb_str_split_m): split based on characters.
* string.c (rb_str_each_line): encoding aware each_line.
* string.c (rb_str_each_char): added. iteration based on
characters.
* string.c (rb_str_strip_bang): encoding aware whitespace
stripping. lstrip, rstrip as well.
* string.c (rb_str_justify): encoding aware justifying (ljust,
rjust, center).
* string.c (str_encoding): get encoding attribute from a string.
* re.c (rb_reg_initialize): encoding aware regular expression
* sprintf.c (rb_str_format): formatting (i.e. length count) based
on characters.
* io.c (rb_io_getc): getc to return one-character string.
for older behavior, getbyte method added.
* ext/stringio/stringio.c (strio_getc): ditto.
* io.c (rb_io_ungetc): allow pushing arbitrary string at the
current reading point.
* ext/stringio/stringio.c (strio_ungetc): ditto.
* ext/strscan/strscan.c: encoding support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 23:29:39 -04:00
|
|
|
Copyright (C) 1993-2007 Yukihiro Matsumoto
|
2000-05-01 05:42:38 -04:00
|
|
|
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
2000-05-09 00:53:16 -04:00
|
|
|
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
2000-05-01 05:42:38 -04:00
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
2004-02-16 01:45:32 -05:00
|
|
|
#ifndef RUBY_INTERN_H
|
|
|
|
#define RUBY_INTERN_H 1
|
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2010-07-27 05:33:55 -04:00
|
|
|
#include "ruby/defines.h"
|
|
|
|
#ifdef RUBY_EXTCONF_H
|
|
|
|
#include RUBY_EXTCONF_H
|
|
|
|
#endif
|
|
|
|
|
2005-07-22 21:02:18 -04:00
|
|
|
#ifdef HAVE_STDARG_PROTOTYPES
|
|
|
|
# include <stdarg.h>
|
|
|
|
#else
|
|
|
|
# include <varargs.h>
|
|
|
|
#endif
|
2013-03-16 01:07:14 -04:00
|
|
|
|
2008-07-12 09:30:46 -04:00
|
|
|
#include "ruby/st.h"
|
2005-07-22 21:02:18 -04:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_BEGIN
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2008-12-09 02:14:13 -05:00
|
|
|
/*
|
2000-05-01 05:42:38 -04:00
|
|
|
* Functions and variables that are used by more than one source file of
|
|
|
|
* the kernel.
|
1998-01-16 07:19:09 -05:00
|
|
|
*/
|
|
|
|
|
2012-03-14 17:10:16 -04:00
|
|
|
#define UNLIMITED_ARGUMENTS (-1)
|
2002-12-20 03:33:17 -05:00
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
/* array.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_mem_clear(register VALUE*, register long);
|
|
|
|
VALUE rb_assoc_new(VALUE, VALUE);
|
|
|
|
VALUE rb_check_array_type(VALUE);
|
|
|
|
VALUE rb_ary_new(void);
|
2013-05-31 04:04:56 -04:00
|
|
|
VALUE rb_ary_new_capa(long capa);
|
|
|
|
VALUE rb_ary_new_from_args(long n, ...);
|
|
|
|
VALUE rb_ary_new_from_values(long n, const VALUE *elts);
|
2008-08-04 06:21:46 -04:00
|
|
|
VALUE rb_ary_tmp_new(long);
|
2006-09-26 18:46:16 -04:00
|
|
|
void rb_ary_free(VALUE);
|
2011-01-05 15:25:50 -05:00
|
|
|
void rb_ary_modify(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_ary_freeze(VALUE);
|
2012-11-05 10:24:07 -05:00
|
|
|
VALUE rb_ary_shared_with_p(VALUE, VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_ary_aref(int, const VALUE*, VALUE);
|
2007-10-18 02:58:35 -04:00
|
|
|
VALUE rb_ary_subseq(VALUE, long, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_ary_store(VALUE, long, VALUE);
|
|
|
|
VALUE rb_ary_dup(VALUE);
|
2010-07-21 23:02:40 -04:00
|
|
|
VALUE rb_ary_resurrect(VALUE ary);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_ary_to_ary(VALUE);
|
|
|
|
VALUE rb_ary_to_s(VALUE);
|
2013-09-22 16:07:51 -04:00
|
|
|
VALUE rb_ary_cat(VALUE, const VALUE *, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_ary_push(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_pop(VALUE);
|
|
|
|
VALUE rb_ary_shift(VALUE);
|
|
|
|
VALUE rb_ary_unshift(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_entry(VALUE, long);
|
|
|
|
VALUE rb_ary_each(VALUE);
|
|
|
|
VALUE rb_ary_join(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_reverse(VALUE);
|
2011-10-13 22:19:39 -04:00
|
|
|
VALUE rb_ary_rotate(VALUE, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_ary_sort(VALUE);
|
|
|
|
VALUE rb_ary_sort_bang(VALUE);
|
|
|
|
VALUE rb_ary_delete(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_delete_at(VALUE, long);
|
|
|
|
VALUE rb_ary_clear(VALUE);
|
|
|
|
VALUE rb_ary_plus(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_concat(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_assoc(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_rassoc(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_includes(VALUE, VALUE);
|
|
|
|
VALUE rb_ary_cmp(VALUE, VALUE);
|
2006-12-31 10:02:22 -05:00
|
|
|
VALUE rb_ary_replace(VALUE copy, VALUE orig);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_get_values_at(VALUE, long, int, const VALUE*, VALUE(*)(VALUE,long));
|
2011-01-05 15:10:59 -05:00
|
|
|
VALUE rb_ary_resize(VALUE ary, long len);
|
2013-05-31 04:04:56 -04:00
|
|
|
#define rb_ary_new2 rb_ary_new_capa
|
|
|
|
#define rb_ary_new3 rb_ary_new_from_args
|
|
|
|
#define rb_ary_new4 rb_ary_new_from_values
|
1998-01-16 07:19:09 -05:00
|
|
|
/* bignum.c */
|
2014-04-18 21:11:04 -04:00
|
|
|
VALUE rb_big_new(size_t, int);
|
2009-07-16 02:52:29 -04:00
|
|
|
int rb_bigzero_p(VALUE x);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_big_clone(VALUE);
|
|
|
|
void rb_big_2comp(VALUE);
|
|
|
|
VALUE rb_big_norm(VALUE);
|
2014-04-18 21:11:04 -04:00
|
|
|
void rb_big_resize(VALUE big, size_t len);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_cstr_to_inum(const char*, int, int);
|
|
|
|
VALUE rb_str_to_inum(VALUE, int, int);
|
|
|
|
VALUE rb_cstr2inum(const char*, int);
|
|
|
|
VALUE rb_str2inum(VALUE, int);
|
|
|
|
VALUE rb_big2str(VALUE, int);
|
2014-04-18 11:46:32 -04:00
|
|
|
long rb_big2long(VALUE);
|
1999-01-19 23:59:39 -05:00
|
|
|
#define rb_big2int(x) rb_big2long(x)
|
2014-04-18 11:46:32 -04:00
|
|
|
unsigned long rb_big2ulong(VALUE);
|
1999-01-19 23:59:39 -05:00
|
|
|
#define rb_big2uint(x) rb_big2ulong(x)
|
2002-03-14 01:23:46 -05:00
|
|
|
#if HAVE_LONG_LONG
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
LONG_LONG rb_big2ll(VALUE);
|
|
|
|
unsigned LONG_LONG rb_big2ull(VALUE);
|
2002-03-14 01:23:46 -05:00
|
|
|
#endif /* HAVE_LONG_LONG */
|
2010-02-26 13:51:02 -05:00
|
|
|
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
|
|
|
|
VALUE rb_big_unpack(unsigned long *buf, long num_longs);
|
2007-12-01 11:56:19 -05:00
|
|
|
int rb_uv_to_utf8(char[6],unsigned long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_dbl2big(double);
|
|
|
|
double rb_big2dbl(VALUE);
|
|
|
|
VALUE rb_big_cmp(VALUE, VALUE);
|
|
|
|
VALUE rb_big_eq(VALUE, VALUE);
|
2012-12-25 05:14:12 -05:00
|
|
|
VALUE rb_big_eql(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_big_plus(VALUE, VALUE);
|
|
|
|
VALUE rb_big_minus(VALUE, VALUE);
|
|
|
|
VALUE rb_big_mul(VALUE, VALUE);
|
|
|
|
VALUE rb_big_div(VALUE, VALUE);
|
2011-03-22 19:07:36 -04:00
|
|
|
VALUE rb_big_idiv(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_big_modulo(VALUE, VALUE);
|
|
|
|
VALUE rb_big_divmod(VALUE, VALUE);
|
|
|
|
VALUE rb_big_pow(VALUE, VALUE);
|
|
|
|
VALUE rb_big_and(VALUE, VALUE);
|
|
|
|
VALUE rb_big_or(VALUE, VALUE);
|
|
|
|
VALUE rb_big_xor(VALUE, VALUE);
|
|
|
|
VALUE rb_big_lshift(VALUE, VALUE);
|
2007-07-19 01:38:48 -04:00
|
|
|
VALUE rb_big_rshift(VALUE, VALUE);
|
2013-07-27 11:11:03 -04:00
|
|
|
|
|
|
|
/* For rb_integer_pack and rb_integer_unpack: */
|
|
|
|
/* "MS" in MSWORD and MSBYTE means "most significant" */
|
|
|
|
/* "LS" in LSWORD and LSBYTE means "least significant" */
|
|
|
|
#define INTEGER_PACK_MSWORD_FIRST 0x01
|
|
|
|
#define INTEGER_PACK_LSWORD_FIRST 0x02
|
|
|
|
#define INTEGER_PACK_MSBYTE_FIRST 0x10
|
|
|
|
#define INTEGER_PACK_LSBYTE_FIRST 0x20
|
|
|
|
#define INTEGER_PACK_NATIVE_BYTE_ORDER 0x40
|
|
|
|
#define INTEGER_PACK_2COMP 0x80
|
|
|
|
#define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION 0x400
|
|
|
|
/* For rb_integer_unpack: */
|
|
|
|
#define INTEGER_PACK_FORCE_BIGNUM 0x100
|
|
|
|
#define INTEGER_PACK_NEGATIVE 0x200
|
|
|
|
/* Combinations: */
|
|
|
|
#define INTEGER_PACK_LITTLE_ENDIAN \
|
|
|
|
(INTEGER_PACK_LSWORD_FIRST | \
|
|
|
|
INTEGER_PACK_LSBYTE_FIRST)
|
|
|
|
#define INTEGER_PACK_BIG_ENDIAN \
|
|
|
|
(INTEGER_PACK_MSWORD_FIRST | \
|
|
|
|
INTEGER_PACK_MSBYTE_FIRST)
|
|
|
|
int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
|
|
|
|
VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
|
2013-07-27 22:14:58 -04:00
|
|
|
size_t rb_absint_size(VALUE val, int *nlz_bits_ret);
|
|
|
|
size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret);
|
|
|
|
int rb_absint_singlebit_p(VALUE val);
|
2013-07-27 11:11:03 -04:00
|
|
|
|
2008-03-15 20:23:43 -04:00
|
|
|
/* rational.c */
|
|
|
|
VALUE rb_rational_raw(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))
|
|
|
|
#define rb_rational_raw2(x,y) rb_rational_raw((x), (y))
|
2008-03-15 20:23:43 -04:00
|
|
|
VALUE rb_rational_new(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))
|
|
|
|
#define rb_rational_new2(x,y) rb_rational_new((x), (y))
|
2008-03-15 20:23:43 -04:00
|
|
|
VALUE rb_Rational(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_Rational1(x) rb_Rational((x), INT2FIX(1))
|
|
|
|
#define rb_Rational2(x,y) rb_Rational((x), (y))
|
2014-05-17 12:37:41 -04:00
|
|
|
VALUE rb_rational_num(VALUE rat);
|
|
|
|
VALUE rb_rational_den(VALUE rat);
|
2013-08-01 10:58:54 -04:00
|
|
|
VALUE rb_flt_rationalize_with_prec(VALUE, VALUE);
|
|
|
|
VALUE rb_flt_rationalize(VALUE);
|
2008-03-15 20:23:43 -04:00
|
|
|
/* complex.c */
|
|
|
|
VALUE rb_complex_raw(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
|
|
|
|
#define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
|
2008-03-15 20:23:43 -04:00
|
|
|
VALUE rb_complex_new(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
|
|
|
|
#define rb_complex_new2(x,y) rb_complex_new((x), (y))
|
2008-08-22 08:27:54 -04:00
|
|
|
VALUE rb_complex_polar(VALUE, VALUE);
|
2008-03-15 20:23:43 -04:00
|
|
|
VALUE rb_Complex(VALUE, VALUE);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
|
|
|
|
#define rb_Complex2(x,y) rb_Complex((x), (y))
|
1998-01-16 07:19:09 -05:00
|
|
|
/* class.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_class_new(VALUE);
|
|
|
|
VALUE rb_mod_init_copy(VALUE, VALUE);
|
|
|
|
VALUE rb_singleton_class_clone(VALUE);
|
|
|
|
void rb_singleton_class_attached(VALUE,VALUE);
|
|
|
|
void rb_check_inheritable(VALUE);
|
|
|
|
VALUE rb_define_class_id(ID, VALUE);
|
2009-08-12 02:32:21 -04:00
|
|
|
VALUE rb_define_class_id_under(VALUE, ID, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_module_new(void);
|
|
|
|
VALUE rb_define_module_id(ID);
|
2009-08-12 02:32:21 -04:00
|
|
|
VALUE rb_define_module_id_under(VALUE, ID);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_mod_included_modules(VALUE);
|
|
|
|
VALUE rb_mod_include_p(VALUE, VALUE);
|
|
|
|
VALUE rb_mod_ancestors(VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_class_instance_methods(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_class_public_instance_methods(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_class_protected_instance_methods(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_class_private_instance_methods(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_obj_singleton_methods(int, const VALUE*, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int);
|
|
|
|
void rb_frozen_class_p(VALUE);
|
|
|
|
void rb_undef(VALUE, ID);
|
|
|
|
void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
|
|
|
|
void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
|
|
|
|
void rb_define_singleton_method(VALUE, const char*, VALUE(*)(ANYARGS), int);
|
|
|
|
VALUE rb_singleton_class(VALUE);
|
2002-11-22 04:14:24 -05:00
|
|
|
/* compar.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_cmpint(VALUE, VALUE, VALUE);
|
|
|
|
NORETURN(void rb_cmperr(VALUE, VALUE));
|
2007-08-06 12:41:17 -04:00
|
|
|
/* cont.c */
|
2007-08-24 22:03:44 -04:00
|
|
|
VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv);
|
|
|
|
VALUE rb_fiber_yield(int argc, const VALUE *argv);
|
2007-08-06 12:41:17 -04:00
|
|
|
VALUE rb_fiber_current(void);
|
2007-12-21 06:13:53 -05:00
|
|
|
VALUE rb_fiber_alive_p(VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* enum.c */
|
2013-11-29 03:02:51 -05:00
|
|
|
VALUE rb_enum_values_pack(int, const VALUE*);
|
2005-07-14 11:15:22 -04:00
|
|
|
/* enumerator.c */
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_enumeratorize(VALUE, VALUE, int, const VALUE *);
|
2013-06-26 09:43:22 -04:00
|
|
|
typedef VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_enumeratorize_with_size(VALUE, VALUE, int, const VALUE *, rb_enumerator_size_func *);
|
2013-06-26 09:44:03 -04:00
|
|
|
#ifndef RUBY_EXPORT
|
|
|
|
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn) \
|
|
|
|
rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))
|
|
|
|
#endif
|
2014-12-02 22:25:12 -05:00
|
|
|
#define SIZED_ENUMERATOR(obj, argc, argv, size_fn) \
|
|
|
|
rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()), \
|
|
|
|
(argc), (argv), (size_fn))
|
2012-11-06 12:10:06 -05:00
|
|
|
#define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do { \
|
2005-08-30 10:49:51 -04:00
|
|
|
if (!rb_block_given_p()) \
|
2014-12-02 22:25:12 -05:00
|
|
|
return SIZED_ENUMERATOR(obj, argc, argv, size_fn); \
|
2005-08-30 10:49:51 -04:00
|
|
|
} while (0)
|
2012-11-06 12:10:06 -05:00
|
|
|
#define RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)
|
1998-01-16 07:19:09 -05:00
|
|
|
/* error.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_exc_new(VALUE, const char*, long);
|
2013-05-31 22:16:25 -04:00
|
|
|
VALUE rb_exc_new_cstr(VALUE, const char*);
|
|
|
|
VALUE rb_exc_new_str(VALUE, VALUE);
|
|
|
|
#define rb_exc_new2 rb_exc_new_cstr
|
|
|
|
#define rb_exc_new3 rb_exc_new_str
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2);
|
2012-03-06 18:38:33 -05:00
|
|
|
PRINTF_ARGS(NORETURN(void rb_loaderror_with_path(VALUE path, const char*, ...)), 2, 3);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3);
|
2011-07-23 11:05:03 -04:00
|
|
|
PRINTF_ARGS(NORETURN(void rb_name_error_str(VALUE, const char*, ...)), 2, 3);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
NORETURN(void rb_invalid_str(const char*, const char*));
|
|
|
|
NORETURN(void rb_error_frozen(const char*));
|
2014-09-18 21:46:42 -04:00
|
|
|
NORETURN(void rb_error_frozen_object(VALUE));
|
2016-05-08 13:44:51 -04:00
|
|
|
CONSTFUNC(void rb_error_untrusted(VALUE));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_check_frozen(VALUE);
|
2016-05-08 13:44:51 -04:00
|
|
|
CONSTFUNC(void rb_check_trusted(VALUE));
|
2010-10-24 04:05:55 -04:00
|
|
|
#define rb_check_frozen_internal(obj) do { \
|
|
|
|
VALUE frozen_obj = (obj); \
|
|
|
|
if (OBJ_FROZEN(frozen_obj)) { \
|
2014-09-18 21:46:42 -04:00
|
|
|
rb_error_frozen_object(frozen_obj); \
|
2010-10-24 04:05:55 -04:00
|
|
|
} \
|
|
|
|
} while (0)
|
* safe.c (rb_set_safe_level, safe_setter): raise an ArgumentError
when $SAFE is set to 4. $SAFE=4 is now obsolete.
[ruby-core:55222] [Feature #8468]
* object.c (rb_obj_untrusted, rb_obj_untrust, rb_obj_trust):
Kernel#untrusted?, untrust, and trust are now deprecated.
Their behavior is same as tainted?, taint, and untaint,
respectively.
* include/ruby/ruby.h (OBJ_UNTRUSTED, OBJ_UNTRUST): OBJ_UNTRUSTED()
and OBJ_UNTRUST() are aliases of OBJ_TAINTED() and OBJ_TAINT(),
respectively.
* array.c, class.c, debug.c, dir.c, encoding.c, error.c, eval.c,
ext/curses/curses.c, ext/dbm/dbm.c, ext/dl/cfunc.c,
ext/dl/cptr.c, ext/dl/dl.c, ext/etc/etc.c, ext/fiddle/fiddle.c,
ext/fiddle/pointer.c, ext/gdbm/gdbm.c, ext/readline/readline.c,
ext/sdbm/init.c, ext/socket/ancdata.c, ext/socket/basicsocket.c,
ext/socket/socket.c, ext/socket/udpsocket.c,
ext/stringio/stringio.c, ext/syslog/syslog.c, ext/tk/tcltklib.c,
ext/win32ole/win32ole.c, file.c, gc.c, hash.c, io.c, iseq.c,
load.c, marshal.c, object.c, proc.c, process.c, random.c, re.c,
safe.c, string.c, thread.c, transcode.c, variable.c,
vm_insnhelper.c, vm_method.c, vm_trace.c: remove code for
$SAFE=4.
* test/dl/test_dl2.rb, test/erb/test_erb.rb,
test/readline/test_readline.rb,
test/readline/test_readline_history.rb, test/ruby/test_alias.rb,
test/ruby/test_array.rb, test/ruby/test_dir.rb,
test/ruby/test_encoding.rb, test/ruby/test_env.rb,
test/ruby/test_eval.rb, test/ruby/test_exception.rb,
test/ruby/test_file_exhaustive.rb, test/ruby/test_hash.rb,
test/ruby/test_io.rb, test/ruby/test_method.rb,
test/ruby/test_module.rb, test/ruby/test_object.rb,
test/ruby/test_pack.rb, test/ruby/test_rand.rb,
test/ruby/test_regexp.rb, test/ruby/test_settracefunc.rb,
test/ruby/test_struct.rb, test/ruby/test_thread.rb,
test/ruby/test_time.rb: remove tests for $SAFE=4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-12 10:20:51 -04:00
|
|
|
#define rb_check_trusted_internal(obj) ((void) 0)
|
2010-10-24 04:05:55 -04:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})
|
2011-07-17 03:26:45 -04:00
|
|
|
#define rb_check_trusted(obj) __extension__({rb_check_trusted_internal(obj);})
|
2010-10-24 04:05:55 -04:00
|
|
|
#else
|
|
|
|
static inline void
|
|
|
|
rb_check_frozen_inline(VALUE obj)
|
|
|
|
{
|
|
|
|
rb_check_frozen_internal(obj);
|
|
|
|
}
|
|
|
|
#define rb_check_frozen(obj) rb_check_frozen_inline(obj)
|
2011-07-17 03:26:45 -04:00
|
|
|
static inline void
|
|
|
|
rb_check_trusted_inline(VALUE obj)
|
|
|
|
{
|
|
|
|
rb_check_trusted_internal(obj);
|
|
|
|
}
|
|
|
|
#define rb_check_trusted(obj) rb_check_trusted_inline(obj)
|
2010-10-24 04:05:55 -04:00
|
|
|
#endif
|
2012-06-22 00:32:39 -04:00
|
|
|
void rb_check_copyable(VALUE obj, VALUE orig);
|
2010-10-24 04:05:55 -04:00
|
|
|
|
2015-09-12 22:03:31 -04:00
|
|
|
#define RB_OBJ_INIT_COPY(obj, orig) \
|
2012-06-05 07:13:18 -04:00
|
|
|
((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))
|
2015-09-12 22:03:31 -04:00
|
|
|
#define OBJ_INIT_COPY(obj, orig) RB_OBJ_INIT_COPY(obj, orig)
|
2012-06-05 07:13:18 -04:00
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
/* eval.c */
|
2007-06-24 16:33:04 -04:00
|
|
|
int rb_sourceline(void);
|
|
|
|
const char *rb_sourcefile(void);
|
2013-08-27 03:08:32 -04:00
|
|
|
VALUE rb_check_funcall(VALUE, ID, int, const VALUE*);
|
2007-06-24 16:33:04 -04:00
|
|
|
|
2012-03-14 17:10:34 -04:00
|
|
|
NORETURN(void rb_error_arity(int, int, int));
|
2016-04-02 02:24:19 -04:00
|
|
|
static inline int
|
2013-03-05 06:23:55 -05:00
|
|
|
rb_check_arity(int argc, int min, int max)
|
|
|
|
{
|
|
|
|
if ((argc < min) || (max != UNLIMITED_ARGUMENTS && argc > max))
|
|
|
|
rb_error_arity(argc, min, max);
|
2016-04-02 02:24:19 -04:00
|
|
|
return argc;
|
2013-03-05 06:23:55 -05:00
|
|
|
}
|
2016-05-08 13:44:51 -04:00
|
|
|
#define rb_check_arity rb_check_arity /* for ifdef */
|
2012-03-14 17:10:34 -04:00
|
|
|
|
2005-11-11 12:11:05 -05:00
|
|
|
#if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
|
2005-06-03 10:23:17 -04:00
|
|
|
typedef struct {
|
|
|
|
int maxfd;
|
|
|
|
fd_set *fdset;
|
|
|
|
} rb_fdset_t;
|
|
|
|
|
2011-05-07 09:40:56 -04:00
|
|
|
void rb_fd_init(rb_fdset_t *);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_fd_term(rb_fdset_t *);
|
|
|
|
void rb_fd_zero(rb_fdset_t *);
|
|
|
|
void rb_fd_set(int, rb_fdset_t *);
|
|
|
|
void rb_fd_clr(int, rb_fdset_t *);
|
|
|
|
int rb_fd_isset(int, const rb_fdset_t *);
|
2011-05-15 10:57:35 -04:00
|
|
|
void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
|
2011-05-15 10:51:09 -04:00
|
|
|
void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
|
2014-10-11 09:33:14 -04:00
|
|
|
|
|
|
|
struct timeval;
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
|
2005-06-03 10:23:17 -04:00
|
|
|
|
|
|
|
#define rb_fd_ptr(f) ((f)->fdset)
|
|
|
|
#define rb_fd_max(f) ((f)->maxfd)
|
|
|
|
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
#elif defined(_WIN32)
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int capa;
|
|
|
|
fd_set *fdset;
|
|
|
|
} rb_fdset_t;
|
|
|
|
|
2011-05-07 09:40:56 -04:00
|
|
|
void rb_fd_init(rb_fdset_t *);
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
void rb_fd_term(rb_fdset_t *);
|
|
|
|
#define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
|
|
|
|
void rb_fd_set(int, rb_fdset_t *);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset)
|
|
|
|
#define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset)
|
2011-08-30 11:04:11 -04:00
|
|
|
#define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n))
|
|
|
|
void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int);
|
2011-05-15 10:51:09 -04:00
|
|
|
#define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))
|
|
|
|
void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_select(n, rfds, wfds, efds, timeout) rb_w32_select((n), (rfds) ? ((rb_fdset_t*)(rfds))->fdset : NULL, (wfds) ? ((rb_fdset_t*)(wfds))->fdset : NULL, (efds) ? ((rb_fdset_t*)(efds))->fdset: NULL, (timeout))
|
|
|
|
#define rb_fd_resize(n, f) ((void)(f))
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
|
|
|
|
#define rb_fd_ptr(f) ((f)->fdset)
|
|
|
|
#define rb_fd_max(f) ((f)->fdset->fd_count)
|
|
|
|
|
2005-06-03 10:23:17 -04:00
|
|
|
#else
|
|
|
|
|
|
|
|
typedef fd_set rb_fdset_t;
|
|
|
|
#define rb_fd_zero(f) FD_ZERO(f)
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_set(n, f) FD_SET((n), (f))
|
|
|
|
#define rb_fd_clr(n, f) FD_CLR((n), (f))
|
|
|
|
#define rb_fd_isset(n, f) FD_ISSET((n), (f))
|
2011-05-15 10:57:35 -04:00
|
|
|
#define rb_fd_copy(d, s, n) (*(d) = *(s))
|
2011-05-15 10:51:09 -04:00
|
|
|
#define rb_fd_dup(d, s) (*(d) = *(s))
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_resize(n, f) ((void)(f))
|
2005-06-03 10:23:17 -04:00
|
|
|
#define rb_fd_ptr(f) (f)
|
|
|
|
#define rb_fd_init(f) FD_ZERO(f)
|
2011-05-07 09:36:08 -04:00
|
|
|
#define rb_fd_init_copy(d, s) (*(d) = *(s))
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_term(f) ((void)(f))
|
2005-06-03 10:23:17 -04:00
|
|
|
#define rb_fd_max(f) FD_SETSIZE
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout))
|
2005-06-03 10:23:17 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
NORETURN(void rb_exc_raise(VALUE));
|
|
|
|
NORETURN(void rb_exc_fatal(VALUE));
|
2016-05-07 20:55:28 -04:00
|
|
|
NORETURN(VALUE rb_f_exit(int, const VALUE*));
|
|
|
|
NORETURN(VALUE rb_f_abort(int, const VALUE*));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_remove_method(VALUE, const char*);
|
2009-08-27 05:31:11 -04:00
|
|
|
void rb_remove_method_id(VALUE, ID);
|
2003-02-09 01:16:08 -05:00
|
|
|
#define HAVE_RB_DEFINE_ALLOC_FUNC 1
|
2007-09-08 11:07:18 -04:00
|
|
|
typedef VALUE (*rb_alloc_func_t)(VALUE);
|
|
|
|
void rb_define_alloc_func(VALUE, rb_alloc_func_t);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_undef_alloc_func(VALUE);
|
2007-09-08 11:07:18 -04:00
|
|
|
rb_alloc_func_t rb_get_alloc_func(VALUE);
|
* insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h, vm_method.c: split
ruby_vm_global_state_version into two separate counters - one for the
global method state and one for the global constant state. This means
changes to constants do not affect method caches, and changes to
methods do not affect constant caches. In particular, this means
inclusions of modules containing constants no longer globally
invalidate the method cache.
* class.c, eval.c, include/ruby/intern.h, insns.def, vm.c, vm_method.c:
rename rb_clear_cache_by_class to rb_clear_method_cache_by_class
* class.c, include/ruby/intern.h, variable.c, vm_method.c: add
rb_clear_constant_cache
* compile.c, vm_core.h, vm_insnhelper.c: rename vmstat field in
rb_call_info_struct to method_state
* vm_method.c: rename vmstat field in struct cache_entry to method_state
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-28 20:52:38 -04:00
|
|
|
void rb_clear_constant_cache(void);
|
|
|
|
void rb_clear_method_cache_by_class(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_alias(VALUE, ID, ID);
|
|
|
|
void rb_attr(VALUE,ID,int,int,int);
|
|
|
|
int rb_method_boundp(VALUE, ID, int);
|
2008-08-04 14:29:55 -04:00
|
|
|
int rb_method_basic_definition_p(VALUE, ID);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_eval_cmd(VALUE, VALUE, int);
|
2005-10-11 08:42:50 -04:00
|
|
|
int rb_obj_respond_to(VALUE, ID, int);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_respond_to(VALUE, ID);
|
2016-05-07 20:55:28 -04:00
|
|
|
NORETURN(VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj));
|
2015-05-18 02:31:42 -04:00
|
|
|
#if !defined(RUBY_EXPORT) && defined(_WIN32)
|
|
|
|
RUBY_EXTERN VALUE (*const rb_f_notimplement_)(int, const VALUE *, VALUE);
|
|
|
|
#define rb_f_notimplement (*rb_f_notimplement_)
|
|
|
|
#endif
|
2016-05-07 20:55:28 -04:00
|
|
|
NORETURN(void rb_interrupt(void));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_apply(VALUE, ID, VALUE);
|
|
|
|
void rb_backtrace(void);
|
|
|
|
ID rb_frame_this_func(void);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_obj_instance_eval(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_obj_instance_exec(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_mod_module_eval(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_mod_module_exec(int, const VALUE*, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_load(VALUE, int);
|
|
|
|
void rb_load_protect(VALUE, int, int*);
|
|
|
|
NORETURN(void rb_jump_tag(int));
|
|
|
|
int rb_provided(const char*);
|
2008-12-04 13:29:20 -05:00
|
|
|
int rb_feature_provided(const char *, const char **);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_provide(const char*);
|
|
|
|
VALUE rb_f_require(VALUE, VALUE);
|
|
|
|
VALUE rb_require_safe(VALUE, int);
|
2014-03-20 00:03:11 -04:00
|
|
|
void rb_obj_call_init(VALUE, int, const VALUE*);
|
|
|
|
VALUE rb_class_new_instance(int, const VALUE*, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_block_proc(void);
|
2013-04-29 23:30:23 -04:00
|
|
|
VALUE rb_block_lambda(void);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
|
2009-12-23 01:22:48 -05:00
|
|
|
VALUE rb_obj_is_proc(VALUE);
|
2008-06-10 12:33:51 -04:00
|
|
|
VALUE rb_proc_call(VALUE, VALUE);
|
2013-08-08 01:48:52 -04:00
|
|
|
VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_proc_arity(VALUE);
|
2009-10-24 12:53:11 -04:00
|
|
|
VALUE rb_proc_lambda_p(VALUE);
|
2007-01-17 03:48:52 -05:00
|
|
|
VALUE rb_binding_new(void);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_obj_method(VALUE, VALUE);
|
2010-12-07 08:05:26 -05:00
|
|
|
VALUE rb_obj_is_method(VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_method_call(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_method_call_with_block(int, const VALUE *, VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_mod_method_arity(VALUE, ID);
|
|
|
|
int rb_obj_method_arity(VALUE, ID);
|
2008-05-22 12:19:14 -04:00
|
|
|
VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_set_end_proc(void (*)(VALUE), VALUE);
|
|
|
|
void rb_exec_end_proc(void);
|
|
|
|
void rb_thread_schedule(void);
|
|
|
|
void rb_thread_wait_fd(int);
|
|
|
|
int rb_thread_fd_writable(int);
|
2017-03-13 01:30:44 -04:00
|
|
|
void rb_thread_fd_close(int);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_thread_alone(void);
|
|
|
|
void rb_thread_sleep(int);
|
|
|
|
void rb_thread_sleep_forever(void);
|
2013-09-06 11:15:07 -04:00
|
|
|
void rb_thread_sleep_deadly(void);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_thread_stop(void);
|
|
|
|
VALUE rb_thread_wakeup(VALUE);
|
2010-07-17 00:04:51 -04:00
|
|
|
VALUE rb_thread_wakeup_alive(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_thread_run(VALUE);
|
|
|
|
VALUE rb_thread_kill(VALUE);
|
|
|
|
VALUE rb_thread_create(VALUE (*)(ANYARGS), void*);
|
2009-04-01 00:56:51 -04:00
|
|
|
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_thread_wait_for(struct timeval);
|
|
|
|
VALUE rb_thread_current(void);
|
|
|
|
VALUE rb_thread_main(void);
|
|
|
|
VALUE rb_thread_local_aref(VALUE, ID);
|
|
|
|
VALUE rb_thread_local_aset(VALUE, ID, VALUE);
|
|
|
|
void rb_thread_atfork(void);
|
2008-05-11 00:15:29 -04:00
|
|
|
void rb_thread_atfork_before_exec(void);
|
2005-10-11 08:30:48 -04:00
|
|
|
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
|
2009-05-24 09:48:23 -04:00
|
|
|
VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
|
2009-09-15 17:30:50 -04:00
|
|
|
VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
|
2013-10-09 00:53:18 -04:00
|
|
|
VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
|
2010-01-11 19:32:22 -05:00
|
|
|
/* dir.c */
|
|
|
|
VALUE rb_dir_getwd(void);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* file.c */
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_file_s_expand_path(int, const VALUE *);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_file_expand_path(VALUE, VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_file_s_absolute_path(int, const VALUE *);
|
2008-08-29 19:59:32 -04:00
|
|
|
VALUE rb_file_absolute_path(VALUE, VALUE);
|
2010-03-30 05:26:09 -04:00
|
|
|
VALUE rb_file_dirname(VALUE fname);
|
2009-06-23 03:05:04 -04:00
|
|
|
int rb_find_file_ext_safe(VALUE*, const char* const*, int);
|
|
|
|
VALUE rb_find_file_safe(VALUE, int);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_find_file_ext(VALUE*, const char* const*);
|
|
|
|
VALUE rb_find_file(VALUE);
|
2006-12-07 10:18:14 -05:00
|
|
|
VALUE rb_file_directory_p(VALUE,VALUE);
|
* merge some patches from win32-uncode-test branch.
see #1685.
* file.c, include/ruby/intern.h (rb_str_encode_ospath): new function
to convert encoding for pathname.
* win32.c, include/ruby/win32.h (rb_w32_ulink, rb_w32_urename,
rb_w32_ustati64, rb_w32_uopen, rb_w32_uutime, rb_w32_uchdir,
rb_w32_umkdir, rb_w32_urmdir, rb_w32_uunlink): new functions to
accept UTF-8 path.
* win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime,
rb_w32_unlink): use WCHAR path internally.
* file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype,
chmod_internal, rb_file_chmod, rb_file_chown, utime_internal,
rb_file_s_link, unlink_internal, rb_file_s_rename): use UTF-8 version
functions on Win32.
* file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p,
rb_file_readable_p, rb_file_writable_p, rb_file_executable_p,
check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown,
rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call
rb_str_encode_ospath() before passing the path to system.
* io.c (rb_sysopen): ditto.
* dir.c (dir_chdir, dir_s_mkdir, dir_s_rmdir): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 13:56:23 -04:00
|
|
|
VALUE rb_str_encode_ospath(VALUE);
|
2010-03-12 20:34:38 -05:00
|
|
|
int rb_is_absolute_path(const char *);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* gc.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
NORETURN(void rb_memerror(void));
|
2016-06-08 07:36:57 -04:00
|
|
|
PUREFUNC(int rb_during_gc(void));
|
2014-06-18 02:16:39 -04:00
|
|
|
void rb_gc_mark_locations(const VALUE*, const VALUE*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_mark_tbl(struct st_table*);
|
2007-09-26 15:40:49 -04:00
|
|
|
void rb_mark_set(struct st_table*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_mark_hash(struct st_table*);
|
|
|
|
void rb_gc_mark_maybe(VALUE);
|
|
|
|
void rb_gc_mark(VALUE);
|
|
|
|
void rb_gc_force_recycle(VALUE);
|
|
|
|
void rb_gc(void);
|
|
|
|
void rb_gc_copy_finalizer(VALUE,VALUE);
|
|
|
|
void rb_gc_finalize_deferred(void);
|
|
|
|
void rb_gc_call_finalizer_at_exit(void);
|
|
|
|
VALUE rb_gc_enable(void);
|
|
|
|
VALUE rb_gc_disable(void);
|
|
|
|
VALUE rb_gc_start(void);
|
2013-11-09 18:03:11 -05:00
|
|
|
VALUE rb_define_finalizer(VALUE, VALUE);
|
|
|
|
VALUE rb_undefine_finalizer(VALUE);
|
2013-11-22 03:16:55 -05:00
|
|
|
size_t rb_gc_count(void);
|
2013-12-05 02:45:13 -05:00
|
|
|
size_t rb_gc_stat(VALUE);
|
2013-12-05 05:30:38 -05:00
|
|
|
VALUE rb_gc_latest_gc_info(VALUE);
|
2016-09-20 03:52:25 -04:00
|
|
|
void rb_gc_adjust_memory_usage(ssize_t);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* hash.c */
|
2006-07-18 02:22:28 -04:00
|
|
|
void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t);
|
2010-08-03 08:01:13 -04:00
|
|
|
VALUE rb_check_hash_type(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE);
|
|
|
|
VALUE rb_hash(VALUE);
|
|
|
|
VALUE rb_hash_new(void);
|
2008-04-26 08:52:25 -04:00
|
|
|
VALUE rb_hash_dup(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_hash_freeze(VALUE);
|
|
|
|
VALUE rb_hash_aref(VALUE, VALUE);
|
2007-07-10 06:39:39 -04:00
|
|
|
VALUE rb_hash_lookup(VALUE, VALUE);
|
2008-12-19 03:22:45 -05:00
|
|
|
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
|
2008-09-30 04:01:11 -04:00
|
|
|
VALUE rb_hash_fetch(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_hash_aset(VALUE, VALUE, VALUE);
|
2012-11-05 10:27:01 -05:00
|
|
|
VALUE rb_hash_clear(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_hash_delete_if(VALUE);
|
|
|
|
VALUE rb_hash_delete(VALUE,VALUE);
|
2013-05-26 08:37:11 -04:00
|
|
|
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone);
|
2010-12-03 21:21:53 -05:00
|
|
|
typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
|
|
|
|
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
|
2007-08-29 19:12:21 -04:00
|
|
|
struct st_table *rb_hash_tbl(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_path_check(const char*);
|
|
|
|
int rb_env_path_tainted(void);
|
2008-04-24 10:46:39 -04:00
|
|
|
VALUE rb_env_clear(void);
|
2014-06-23 03:26:03 -04:00
|
|
|
VALUE rb_hash_size(VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* io.c */
|
2003-07-29 03:52:55 -04:00
|
|
|
#define rb_defout rb_stdout
|
2003-03-04 09:12:19 -05:00
|
|
|
RUBY_EXTERN VALUE rb_fs;
|
|
|
|
RUBY_EXTERN VALUE rb_output_fs;
|
|
|
|
RUBY_EXTERN VALUE rb_rs;
|
|
|
|
RUBY_EXTERN VALUE rb_default_rs;
|
|
|
|
RUBY_EXTERN VALUE rb_output_rs;
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_io_write(VALUE, VALUE);
|
|
|
|
VALUE rb_io_gets(VALUE);
|
* encoding.c: provide basic features for M17N.
* parse.y: encoding aware parsing.
* parse.y (pragma_encoding): encoding specification pragma.
* parse.y (rb_intern3): encoding specified symbols.
* string.c (rb_str_length): length based on characters.
for older behavior, bytesize method added.
* string.c (rb_str_index_m): index based on characters. rindex as
well.
* string.c (succ_char): encoding aware succeeding string.
* string.c (rb_str_reverse): reverse based on characters.
* string.c (rb_str_inspect): encoding aware string description.
* string.c (rb_str_upcase_bang): encoding aware case conversion.
downcase, capitalize, swapcase as well.
* string.c (rb_str_tr_bang): tr based on characters. delete,
squeeze, tr_s, count as well.
* string.c (rb_str_split_m): split based on characters.
* string.c (rb_str_each_line): encoding aware each_line.
* string.c (rb_str_each_char): added. iteration based on
characters.
* string.c (rb_str_strip_bang): encoding aware whitespace
stripping. lstrip, rstrip as well.
* string.c (rb_str_justify): encoding aware justifying (ljust,
rjust, center).
* string.c (str_encoding): get encoding attribute from a string.
* re.c (rb_reg_initialize): encoding aware regular expression
* sprintf.c (rb_str_format): formatting (i.e. length count) based
on characters.
* io.c (rb_io_getc): getc to return one-character string.
for older behavior, getbyte method added.
* ext/stringio/stringio.c (strio_getc): ditto.
* io.c (rb_io_ungetc): allow pushing arbitrary string at the
current reading point.
* ext/stringio/stringio.c (strio_ungetc): ditto.
* ext/strscan/strscan.c: encoding support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 23:29:39 -04:00
|
|
|
VALUE rb_io_getbyte(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_io_ungetc(VALUE, VALUE);
|
2008-08-25 04:36:46 -04:00
|
|
|
VALUE rb_io_ungetbyte(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_io_close(VALUE);
|
|
|
|
VALUE rb_io_flush(VALUE);
|
|
|
|
VALUE rb_io_eof(VALUE);
|
|
|
|
VALUE rb_io_binmode(VALUE);
|
2008-10-21 00:31:15 -04:00
|
|
|
VALUE rb_io_ascii8bit_binmode(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_io_addstr(VALUE, VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_io_printf(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_io_print(int, const VALUE*, VALUE);
|
|
|
|
VALUE rb_io_puts(int, const VALUE*, VALUE);
|
2007-09-28 16:29:32 -04:00
|
|
|
VALUE rb_io_fdopen(int, int, const char*);
|
2009-02-27 03:35:56 -05:00
|
|
|
VALUE rb_io_get_io(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_file_open(const char*, const char*);
|
2008-09-04 10:43:45 -04:00
|
|
|
VALUE rb_file_open_str(VALUE, const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_gets(void);
|
|
|
|
void rb_write_error(const char*);
|
|
|
|
void rb_write_error2(const char*, long);
|
2008-04-24 10:46:39 -04:00
|
|
|
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
|
2008-07-05 10:12:53 -04:00
|
|
|
int rb_pipe(int *pipes);
|
2011-07-03 17:56:59 -04:00
|
|
|
int rb_reserved_fd_p(int fd);
|
2011-10-28 22:33:28 -04:00
|
|
|
int rb_cloexec_open(const char *pathname, int flags, mode_t mode);
|
2011-10-29 07:02:32 -04:00
|
|
|
int rb_cloexec_dup(int oldfd);
|
2011-10-29 09:11:01 -04:00
|
|
|
int rb_cloexec_dup2(int oldfd, int newfd);
|
2011-10-30 08:13:05 -04:00
|
|
|
int rb_cloexec_pipe(int fildes[2]);
|
2011-10-30 11:17:27 -04:00
|
|
|
int rb_cloexec_fcntl_dupfd(int fd, int minfd);
|
2011-07-03 17:56:59 -04:00
|
|
|
#define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
|
2011-07-20 09:26:10 -04:00
|
|
|
void rb_update_max_fd(int fd);
|
2011-10-31 08:49:16 -04:00
|
|
|
void rb_fd_fix_cloexec(int fd);
|
2001-07-03 03:29:00 -04:00
|
|
|
/* marshal.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_marshal_dump(VALUE, VALUE);
|
|
|
|
VALUE rb_marshal_load(VALUE);
|
2007-09-08 11:07:18 -04:00
|
|
|
void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
|
1998-01-16 07:19:09 -05:00
|
|
|
/* numeric.c */
|
2012-07-18 12:59:01 -04:00
|
|
|
NORETURN(void rb_num_zerodiv(void));
|
2009-04-04 04:05:17 -04:00
|
|
|
#define RB_NUM_COERCE_FUNCS_NEED_OPID 1
|
2008-02-11 21:46:21 -05:00
|
|
|
VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
|
|
|
|
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
|
|
|
|
VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
|
2012-12-22 10:06:22 -05:00
|
|
|
VALUE rb_num_coerce_bit(VALUE, VALUE, ID);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_num2fix(VALUE);
|
|
|
|
VALUE rb_fix2str(VALUE, int);
|
2016-05-08 13:44:51 -04:00
|
|
|
CONSTFUNC(VALUE rb_dbl_cmp(double, double));
|
1998-01-16 07:19:09 -05:00
|
|
|
/* object.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_eql(VALUE, VALUE);
|
|
|
|
VALUE rb_any_to_s(VALUE);
|
|
|
|
VALUE rb_inspect(VALUE);
|
|
|
|
VALUE rb_obj_is_instance_of(VALUE, VALUE);
|
|
|
|
VALUE rb_obj_is_kind_of(VALUE, VALUE);
|
|
|
|
VALUE rb_obj_alloc(VALUE);
|
|
|
|
VALUE rb_obj_clone(VALUE);
|
|
|
|
VALUE rb_obj_dup(VALUE);
|
|
|
|
VALUE rb_obj_init_copy(VALUE,VALUE);
|
|
|
|
VALUE rb_obj_taint(VALUE);
|
2016-05-08 13:44:51 -04:00
|
|
|
PUREFUNC(VALUE rb_obj_tainted(VALUE));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_obj_untaint(VALUE);
|
2009-07-09 22:41:44 -04:00
|
|
|
VALUE rb_obj_untrust(VALUE);
|
2016-05-08 13:44:51 -04:00
|
|
|
PUREFUNC(VALUE rb_obj_untrusted(VALUE));
|
2009-07-09 22:41:44 -04:00
|
|
|
VALUE rb_obj_trust(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_obj_freeze(VALUE);
|
2016-05-08 13:44:51 -04:00
|
|
|
PUREFUNC(VALUE rb_obj_frozen_p(VALUE));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_obj_id(VALUE);
|
|
|
|
VALUE rb_obj_class(VALUE);
|
2016-05-08 13:44:51 -04:00
|
|
|
PUREFUNC(VALUE rb_class_real(VALUE));
|
|
|
|
PUREFUNC(VALUE rb_class_inherited_p(VALUE, VALUE));
|
2011-05-18 09:41:54 -04:00
|
|
|
VALUE rb_class_superclass(VALUE);
|
2011-06-17 23:05:11 -04:00
|
|
|
VALUE rb_class_get_superclass(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_convert_type(VALUE,int,const char*,const char*);
|
|
|
|
VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
|
|
|
|
VALUE rb_check_to_integer(VALUE, const char *);
|
2009-08-26 06:20:30 -04:00
|
|
|
VALUE rb_check_to_float(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_to_int(VALUE);
|
2011-12-10 20:37:50 -05:00
|
|
|
VALUE rb_check_to_int(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_Integer(VALUE);
|
2008-12-29 08:40:33 -05:00
|
|
|
VALUE rb_to_float(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_Float(VALUE);
|
|
|
|
VALUE rb_String(VALUE);
|
|
|
|
VALUE rb_Array(VALUE);
|
2012-01-23 23:02:30 -05:00
|
|
|
VALUE rb_Hash(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
double rb_cstr_to_dbl(const char*, int);
|
|
|
|
double rb_str_to_dbl(VALUE, int);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* parse.y */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
ID rb_id_attrset(ID);
|
2016-05-08 13:44:51 -04:00
|
|
|
CONSTFUNC(int rb_is_const_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_global_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_instance_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_attrset_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_class_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_local_id(ID));
|
|
|
|
CONSTFUNC(int rb_is_junk_id(ID));
|
2005-10-22 00:09:24 -04:00
|
|
|
int rb_symname_p(const char*);
|
2006-09-14 03:27:14 -04:00
|
|
|
int rb_sym_interned_p(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_backref_get(void);
|
2008-05-22 12:19:14 -04:00
|
|
|
void rb_backref_set(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_lastline_get(void);
|
2008-05-22 12:19:14 -04:00
|
|
|
void rb_lastline_set(VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* process.c */
|
2007-02-05 11:22:38 -05:00
|
|
|
void rb_last_status_set(int status, rb_pid_t pid);
|
|
|
|
VALUE rb_last_status_get(void);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_proc_exec(const char*);
|
2016-05-07 20:55:28 -04:00
|
|
|
NORETURN(VALUE rb_f_exec(int, const VALUE*));
|
* configure.in (pid_t, uid_t, gid_t): check if defined.
* intern.h, process.c, rubyio.h, ext/etc/etc.c, ext/pty/pty.c: use
rb_{pid,uid,gid}_t instead of plain int. [ruby-dev:30376]
* ext/etc/extconf.rb (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM,
NUM2GIDT): moved to configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-17 23:11:57 -05:00
|
|
|
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
|
|
|
|
void rb_syswait(rb_pid_t pid);
|
2014-06-18 02:16:39 -04:00
|
|
|
rb_pid_t rb_spawn(int, const VALUE*);
|
|
|
|
rb_pid_t rb_spawn_err(int, const VALUE*, char*, size_t);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_proc_times(VALUE);
|
2007-02-19 08:16:12 -05:00
|
|
|
VALUE rb_detach_process(rb_pid_t pid);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* range.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_range_new(VALUE, VALUE, int);
|
|
|
|
VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
|
2009-07-16 02:52:29 -04:00
|
|
|
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
|
2006-08-31 04:24:36 -04:00
|
|
|
/* random.c */
|
2009-07-17 20:16:25 -04:00
|
|
|
unsigned int rb_genrand_int32(void);
|
2007-12-24 03:19:28 -05:00
|
|
|
double rb_genrand_real(void);
|
2008-06-19 22:46:17 -04:00
|
|
|
void rb_reset_random_seed(void);
|
2009-07-17 20:16:25 -04:00
|
|
|
VALUE rb_random_bytes(VALUE rnd, long n);
|
|
|
|
VALUE rb_random_int(VALUE rnd, VALUE max);
|
|
|
|
unsigned int rb_random_int32(VALUE rnd);
|
|
|
|
double rb_random_real(VALUE rnd);
|
2012-10-09 04:59:03 -04:00
|
|
|
unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit);
|
2010-09-10 01:44:54 -04:00
|
|
|
unsigned long rb_genrand_ulong_limited(unsigned long i);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* re.c */
|
2007-10-06 01:32:37 -04:00
|
|
|
#define rb_memcmp memcmp
|
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
* st.c (strhash): use FNV-1a hash.
* parse.y (parser_yylex): removed experimental ';;' terminator.
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
* parse.y (args): allow more than one splat in the argument list.
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler
<rubypate at gmail.com>. [ruby-core:07809]
* array.c (rb_ary_fill): initialize local variables first. a
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
[ruby-core:07808]
* ext/socket/socket.c (make_hostent_internal): accept ai_family
check from Sam Roberts <sroberts at uniserve.com>.
[ruby-core:07691]
* util.c (ruby_strtod): should not cut off 18 digits for no
reason. [ruby-core:07796]
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770]
* pack.c (pack_unpack): now supports CRLF newlines. a patch from
<tommy at tmtm.org>. [ruby-dev:28601]
* applied code clean-up patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:07764]
* lib/jcode.rb (String::tr_s): should have translated non
squeezing character sequence (i.e. a character) as well. thanks
to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
* ext/socket/socket.c: document update patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:07701]
* lib/mathn.rb (Integer): need not to remove gcd2. a patch from
NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
* prec.c (prec_prec_f): documentation patch from
<gerardo.santana at gmail.com>. [ruby-core:07689]
* bignum.c (rb_big_pow): second operand may be too big even if
it's a Fixnum. [ruby-talk:187984]
* README.EXT: update symbol description. [ruby-talk:188104]
* COPYING: explicitly note GPLv2. [ruby-talk:187922]
* parse.y: remove some obsolete syntax rules (unparenthesized
method calls in argument list).
* eval.c (rb_call0): insecure calling should be checked for non
NODE_SCOPE method invocations too.
* eval.c (rb_alias): should preserve the current safe level as
well as method definition.
* process.c (rb_f_sleep): remove RDoc description about SIGALRM
which is not valid on the current implementation. [ruby-dev:28464]
Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* eval.c (method_missing): should support argument splat in
super. a bug in combination of super, splat and
method_missing. [ruby-talk:185438]
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443]
* configure.in: remove enable_rpath=no for Solaris.
[ruby-dev:28440]
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
String object.
* ruby.1: a clarification patch from David Lutterkort
<dlutter at redhat.com>. [ruby-core:7508]
* lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:07423]
* eval.c (rb_clear_cache_by_class): clearing wrong cache.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV. [ruby-dev:28417]
* eval.c (rb_thread_fd_writable): should not re-schedule output
from KILLED thread (must be error printing).
* array.c (rb_ary_flatten_bang): allow specifying recursion
level. [ruby-talk:182170]
* array.c (rb_ary_flatten): ditto.
* gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
Weil <weil at mail.berlios.de>.
* eval.c (rb_call): use separate cache for fcall/vcall
invocation.
* eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
functions.
* eval.c (rb_mod_local): a new method to specify newly added
visibility "local".
* eval.c (search_method): search for local methods which are
visible only from the current class.
* class.c (rb_class_local_methods): a method to list local methods.
* object.c (Init_Object): add BasicObject class as a top level
BlankSlate class.
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
* class.c (rb_include_module): allow module duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-09 17:20:17 -04:00
|
|
|
int rb_memcicmp(const void*,const void*,long);
|
2008-06-13 08:29:50 -04:00
|
|
|
void rb_match_busy(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_reg_nth_defined(int, VALUE);
|
|
|
|
VALUE rb_reg_nth_match(int, VALUE);
|
2009-03-14 14:04:21 -04:00
|
|
|
int rb_reg_backref_number(VALUE match, VALUE backref);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_reg_last_match(VALUE);
|
|
|
|
VALUE rb_reg_match_pre(VALUE);
|
|
|
|
VALUE rb_reg_match_post(VALUE);
|
|
|
|
VALUE rb_reg_match_last(VALUE);
|
2008-01-04 11:30:33 -05:00
|
|
|
#define HAVE_RB_REG_NEW_STR 1
|
|
|
|
VALUE rb_reg_new_str(VALUE, int);
|
|
|
|
VALUE rb_reg_new(const char *, long, int);
|
2010-02-13 14:45:35 -05:00
|
|
|
VALUE rb_reg_alloc(void);
|
|
|
|
VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_reg_match(VALUE, VALUE);
|
|
|
|
VALUE rb_reg_match2(VALUE);
|
|
|
|
int rb_reg_options(VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* ruby.c */
|
2008-04-15 05:02:19 -04:00
|
|
|
#define rb_argv rb_get_argv()
|
2003-03-04 09:12:19 -05:00
|
|
|
RUBY_EXTERN VALUE rb_argv0;
|
2008-04-15 05:02:19 -04:00
|
|
|
VALUE rb_get_argv(void);
|
2006-12-31 10:02:22 -05:00
|
|
|
void *rb_load_file(const char*);
|
2013-07-26 00:04:23 -04:00
|
|
|
void *rb_load_file_str(VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* signal.c */
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_f_kill(int, const VALUE*);
|
1999-01-19 23:59:39 -05:00
|
|
|
#ifdef POSIX_SIGNAL
|
|
|
|
#define posix_signal ruby_posix_signal
|
2007-11-30 09:49:45 -05:00
|
|
|
RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int);
|
1999-01-19 23:59:39 -05:00
|
|
|
#endif
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_trap_exit(void);
|
|
|
|
void rb_trap_exec(void);
|
|
|
|
const char *ruby_signal_name(int);
|
2007-04-19 13:37:03 -04:00
|
|
|
void ruby_default_signal(int);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* sprintf.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_f_sprintf(int, const VALUE*);
|
|
|
|
PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2);
|
|
|
|
VALUE rb_vsprintf(const char*, va_list);
|
2008-07-22 03:48:00 -04:00
|
|
|
PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3);
|
|
|
|
VALUE rb_str_vcatf(VALUE, const char*, va_list);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_format(int, const VALUE *, VALUE);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* string.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_new(const char*, long);
|
2008-08-12 05:56:55 -04:00
|
|
|
VALUE rb_str_new_cstr(const char*);
|
|
|
|
VALUE rb_str_new_shared(VALUE);
|
|
|
|
VALUE rb_str_new_frozen(VALUE);
|
|
|
|
VALUE rb_str_new_with_class(VALUE, const char*, long);
|
|
|
|
VALUE rb_tainted_str_new_cstr(const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_tainted_str_new(const char*, long);
|
2008-10-18 06:36:20 -04:00
|
|
|
VALUE rb_external_str_new(const char*, long);
|
2008-10-22 01:55:22 -04:00
|
|
|
VALUE rb_external_str_new_cstr(const char*);
|
2008-10-20 03:15:19 -04:00
|
|
|
VALUE rb_locale_str_new(const char*, long);
|
2008-10-22 01:55:22 -04:00
|
|
|
VALUE rb_locale_str_new_cstr(const char*);
|
2009-09-28 15:24:18 -04:00
|
|
|
VALUE rb_filesystem_str_new(const char*, long);
|
|
|
|
VALUE rb_filesystem_str_new_cstr(const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_buf_new(long);
|
2008-08-12 05:56:55 -04:00
|
|
|
VALUE rb_str_buf_new_cstr(const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_buf_new2(const char*);
|
2008-01-15 22:51:32 -05:00
|
|
|
VALUE rb_str_tmp_new(long);
|
2008-01-25 19:30:28 -05:00
|
|
|
VALUE rb_usascii_str_new(const char*, long);
|
2008-08-12 05:56:55 -04:00
|
|
|
VALUE rb_usascii_str_new_cstr(const char*);
|
2014-09-18 10:51:08 -04:00
|
|
|
VALUE rb_utf8_str_new(const char*, long);
|
|
|
|
VALUE rb_utf8_str_new_cstr(const char*);
|
2014-09-19 01:53:00 -04:00
|
|
|
VALUE rb_str_new_static(const char *, long);
|
|
|
|
VALUE rb_usascii_str_new_static(const char *, long);
|
|
|
|
VALUE rb_utf8_str_new_static(const char *, long);
|
2006-09-26 18:46:16 -04:00
|
|
|
void rb_str_free(VALUE);
|
2008-01-15 22:51:32 -05:00
|
|
|
void rb_str_shared_replace(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_buf_append(VALUE, VALUE);
|
|
|
|
VALUE rb_str_buf_cat(VALUE, const char*, long);
|
|
|
|
VALUE rb_str_buf_cat2(VALUE, const char*);
|
2008-01-25 02:35:27 -05:00
|
|
|
VALUE rb_str_buf_cat_ascii(VALUE, const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_obj_as_string(VALUE);
|
|
|
|
VALUE rb_check_string_type(VALUE);
|
2012-03-23 00:19:24 -04:00
|
|
|
void rb_must_asciicompat(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_dup(VALUE);
|
2010-07-21 23:02:40 -04:00
|
|
|
VALUE rb_str_resurrect(VALUE str);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_locktmp(VALUE);
|
|
|
|
VALUE rb_str_unlocktmp(VALUE);
|
|
|
|
VALUE rb_str_dup_frozen(VALUE);
|
2008-08-12 05:56:55 -04:00
|
|
|
#define rb_str_dup_frozen rb_str_new_frozen
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_plus(VALUE, VALUE);
|
|
|
|
VALUE rb_str_times(VALUE, VALUE);
|
2008-02-23 06:21:02 -05:00
|
|
|
long rb_str_sublen(VALUE, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_substr(VALUE, long, long);
|
2007-08-28 02:45:32 -04:00
|
|
|
VALUE rb_str_subseq(VALUE, long, long);
|
2013-07-10 10:12:04 -04:00
|
|
|
char *rb_str_subpos(VALUE, long, long*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_str_modify(VALUE);
|
2012-02-08 08:30:04 -05:00
|
|
|
void rb_str_modify_expand(VALUE, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_freeze(VALUE);
|
2006-08-31 04:24:36 -04:00
|
|
|
void rb_str_set_len(VALUE, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_resize(VALUE, long);
|
|
|
|
VALUE rb_str_cat(VALUE, const char*, long);
|
2014-04-17 01:22:57 -04:00
|
|
|
VALUE rb_str_cat_cstr(VALUE, const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_cat2(VALUE, const char*);
|
|
|
|
VALUE rb_str_append(VALUE, VALUE);
|
|
|
|
VALUE rb_str_concat(VALUE, VALUE);
|
2009-09-08 09:10:04 -04:00
|
|
|
st_index_t rb_memhash(const void *ptr, long len);
|
2009-09-26 03:26:46 -04:00
|
|
|
st_index_t rb_hash_start(st_index_t);
|
|
|
|
st_index_t rb_hash_uint32(st_index_t, uint32_t);
|
|
|
|
st_index_t rb_hash_uint(st_index_t, st_index_t);
|
|
|
|
st_index_t rb_hash_end(st_index_t);
|
2011-04-06 08:08:46 -04:00
|
|
|
#define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
|
|
|
|
#define rb_hash_uint(h, i) st_hash_uint((h), (i))
|
2009-09-26 10:29:13 -04:00
|
|
|
#define rb_hash_end(h) st_hash_end(h)
|
2009-09-08 09:10:04 -04:00
|
|
|
st_index_t rb_str_hash(VALUE);
|
2008-02-11 22:17:43 -05:00
|
|
|
int rb_str_hash_cmp(VALUE,VALUE);
|
2007-09-26 05:39:08 -04:00
|
|
|
int rb_str_comparable(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
int rb_str_cmp(VALUE, VALUE);
|
2007-09-26 05:39:08 -04:00
|
|
|
VALUE rb_str_equal(VALUE str1, VALUE str2);
|
2008-08-12 06:08:48 -04:00
|
|
|
VALUE rb_str_drop_bytes(VALUE, long);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_str_update(VALUE, long, long, VALUE);
|
2009-02-12 05:42:36 -05:00
|
|
|
VALUE rb_str_replace(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_str_inspect(VALUE);
|
|
|
|
VALUE rb_str_dump(VALUE);
|
|
|
|
VALUE rb_str_split(VALUE, const char*);
|
|
|
|
void rb_str_setter(VALUE, ID, VALUE*);
|
|
|
|
VALUE rb_str_intern(VALUE);
|
2007-02-16 07:00:27 -05:00
|
|
|
VALUE rb_sym_to_s(VALUE);
|
2010-01-11 02:58:26 -05:00
|
|
|
long rb_str_strlen(VALUE);
|
2007-08-25 04:54:29 -04:00
|
|
|
VALUE rb_str_length(VALUE);
|
2009-06-30 05:06:48 -04:00
|
|
|
long rb_str_offset(VALUE, long);
|
2016-06-08 07:36:57 -04:00
|
|
|
PUREFUNC(size_t rb_str_capacity(VALUE));
|
2011-01-29 23:01:58 -05:00
|
|
|
VALUE rb_str_ellipsize(VALUE, long);
|
2013-11-01 03:55:56 -04:00
|
|
|
VALUE rb_str_scrub(VALUE, VALUE);
|
2015-05-22 08:13:14 -04:00
|
|
|
/* symbol.c */
|
|
|
|
VALUE rb_sym_all_symbols(void);
|
2014-09-19 01:53:00 -04:00
|
|
|
|
2016-05-12 14:12:46 -04:00
|
|
|
#ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
#define rb_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
|
2014-09-19 01:53:00 -04:00
|
|
|
(__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
|
|
|
|
rb_str_new_static((str), (len)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_str_new((str), (len)) \
|
|
|
|
)
|
|
|
|
#define rb_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-07-21 13:51:49 -04:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2014-09-19 01:53:00 -04:00
|
|
|
rb_str_new_static((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_usascii_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
|
2014-09-19 01:53:00 -04:00
|
|
|
(__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
|
|
|
|
rb_usascii_str_new_static((str), (len)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_usascii_str_new((str), (len)) \
|
|
|
|
)
|
|
|
|
#define rb_utf8_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
|
2014-09-19 01:53:00 -04:00
|
|
|
(__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
|
|
|
|
rb_utf8_str_new_static((str), (len)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_utf8_str_new((str), (len)) \
|
|
|
|
)
|
|
|
|
#define rb_tainted_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-07-21 13:51:49 -04:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2011-04-06 08:08:46 -04:00
|
|
|
rb_tainted_str_new((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_tainted_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_usascii_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-07-21 13:51:49 -04:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2014-09-19 01:53:00 -04:00
|
|
|
rb_usascii_str_new_static((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_usascii_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_utf8_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2014-09-18 10:51:08 -04:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2014-09-19 01:53:00 -04:00
|
|
|
rb_utf8_str_new_static((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_utf8_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_external_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-11-11 13:31:06 -05:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2011-04-06 08:08:46 -04:00
|
|
|
rb_external_str_new((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_external_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_locale_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-11-11 13:31:06 -05:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2011-04-06 08:08:46 -04:00
|
|
|
rb_locale_str_new((str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_locale_str_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_str_buf_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
|
2008-07-21 15:26:18 -04:00
|
|
|
(__builtin_constant_p(str)) ? \
|
2009-07-27 06:03:12 -04:00
|
|
|
rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
|
2011-04-06 08:08:46 -04:00
|
|
|
(str), (long)strlen(str)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_str_buf_new_cstr(str) \
|
|
|
|
)
|
|
|
|
#define rb_str_cat_cstr(str, ptr) RB_GNUC_EXTENSION_BLOCK( \
|
2008-07-21 13:51:49 -04:00
|
|
|
(__builtin_constant_p(ptr)) ? \
|
2011-04-06 08:08:46 -04:00
|
|
|
rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_str_cat_cstr((str), (ptr)) \
|
|
|
|
)
|
|
|
|
#define rb_exc_new_cstr(klass, ptr) RB_GNUC_EXTENSION_BLOCK( \
|
2009-05-31 21:41:43 -04:00
|
|
|
(__builtin_constant_p(ptr)) ? \
|
2011-04-06 08:08:46 -04:00
|
|
|
rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
rb_exc_new_cstr((klass), (ptr)) \
|
|
|
|
)
|
2008-07-21 13:51:49 -04:00
|
|
|
#endif
|
2008-08-12 05:56:55 -04:00
|
|
|
#define rb_str_new2 rb_str_new_cstr
|
|
|
|
#define rb_str_new3 rb_str_new_shared
|
|
|
|
#define rb_str_new4 rb_str_new_frozen
|
|
|
|
#define rb_str_new5 rb_str_new_with_class
|
|
|
|
#define rb_tainted_str_new2 rb_tainted_str_new_cstr
|
|
|
|
#define rb_str_buf_new2 rb_str_buf_new_cstr
|
|
|
|
#define rb_usascii_str_new2 rb_usascii_str_new_cstr
|
2014-04-17 01:22:57 -04:00
|
|
|
#define rb_str_buf_cat rb_str_cat
|
|
|
|
#define rb_str_buf_cat2 rb_str_cat_cstr
|
|
|
|
#define rb_str_cat2 rb_str_cat_cstr
|
2015-06-23 23:47:10 -04:00
|
|
|
#define rb_strlen_lit(str) (sizeof(str "") - 1)
|
|
|
|
#define rb_str_new_lit(str) rb_str_new_static((str), rb_strlen_lit(str))
|
|
|
|
#define rb_usascii_str_new_lit(str) rb_usascii_str_new_static((str), rb_strlen_lit(str))
|
|
|
|
#define rb_utf8_str_new_lit(str) rb_utf8_str_new_static((str), rb_strlen_lit(str))
|
|
|
|
#define rb_enc_str_new_lit(str, enc) rb_enc_str_new_static((str), rb_strlen_lit(str), (enc))
|
|
|
|
#define rb_str_new_literal(str) rb_str_new_lit(str)
|
|
|
|
#define rb_usascii_str_new_literal(str) rb_usascii_str_new_lit(str)
|
|
|
|
#define rb_utf8_str_new_literal(str) rb_utf8_str_new_lit(str)
|
|
|
|
#define rb_enc_str_new_literal(str, enc) rb_enc_str_new_lit(str, enc)
|
2015-01-03 05:52:14 -05:00
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
/* struct.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_struct_new(VALUE, ...);
|
|
|
|
VALUE rb_struct_define(const char*, ...);
|
2013-08-02 20:31:02 -04:00
|
|
|
VALUE rb_struct_define_under(VALUE, const char*, ...);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_struct_alloc(VALUE, VALUE);
|
2007-09-08 12:19:13 -04:00
|
|
|
VALUE rb_struct_initialize(VALUE, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_struct_aref(VALUE, VALUE);
|
|
|
|
VALUE rb_struct_aset(VALUE, VALUE, VALUE);
|
|
|
|
VALUE rb_struct_getmember(VALUE, ID);
|
|
|
|
VALUE rb_struct_s_members(VALUE);
|
|
|
|
VALUE rb_struct_members(VALUE);
|
2016-08-01 03:23:56 -04:00
|
|
|
VALUE rb_struct_size(VALUE s);
|
2007-11-23 02:00:50 -05:00
|
|
|
VALUE rb_struct_alloc_noinit(VALUE);
|
2008-05-31 05:28:20 -04:00
|
|
|
VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...);
|
2013-08-29 05:12:25 -04:00
|
|
|
VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc, ...);
|
|
|
|
|
2007-02-24 04:41:41 -05:00
|
|
|
/* thread.c */
|
2007-11-20 05:47:53 -05:00
|
|
|
typedef void rb_unblock_function_t(void *);
|
|
|
|
typedef VALUE rb_blocking_function_t(void *);
|
2008-08-13 04:21:24 -04:00
|
|
|
void rb_thread_check_ints(void);
|
2008-09-23 04:17:17 -04:00
|
|
|
int rb_thread_interrupted(VALUE thval);
|
2012-09-09 07:32:11 -04:00
|
|
|
|
2008-08-31 03:44:24 -04:00
|
|
|
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
|
|
|
|
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
|
2007-05-03 09:19:11 -04:00
|
|
|
VALUE rb_mutex_new(void);
|
|
|
|
VALUE rb_mutex_locked_p(VALUE mutex);
|
2011-03-05 08:59:21 -05:00
|
|
|
VALUE rb_mutex_trylock(VALUE mutex);
|
2007-05-03 09:19:11 -04:00
|
|
|
VALUE rb_mutex_lock(VALUE mutex);
|
|
|
|
VALUE rb_mutex_unlock(VALUE mutex);
|
|
|
|
VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
|
2008-11-03 11:56:49 -05:00
|
|
|
VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* time.c */
|
2015-11-09 21:59:47 -05:00
|
|
|
void rb_timespec_now(struct timespec *);
|
* configure.in: check struct timespec, clock_gettime, utimensat,
struct stat.st_atim,
struct stat.st_atimespec,
struct stat.st_atimensec,
struct stat.st_mtim,
struct stat.st_mtimespec,
struct stat.st_mtimensec,
struct stat.st_ctim,
struct stat.st_ctimespec,
struct stat.st_ctimensec.
* include/ruby/missing.h: provide struct timespec if not available.
* time.c: support nanosecond-resolution using struct timespec.
* include/ruby/intern.h: provide rb_time_nano_new.
* file.c (utime_internal): use utimensat if available.
(rb_file_s_utime): refactored.
(rb_f_test): use stat_atime, stat_mtime, stat_ctime.
(rb_stat_cmp): check tv_nsec.
(stat_atimespec): new function.
(stat_atime): ditto.
(stat_mtimespec): ditto.
(stat_mtime): ditto.
(stat_ctimespec): ditto.
(stat_ctime): ditto.
(rb_stat_atime): use stat_atime.
(rb_file_s_atime): ditto.
(rb_file_atime): ditto.
(rb_stat_mtime): use stat_mtime.
(rb_file_s_mtime): ditto.
(rb_file_mtime): ditto.
(rb_file_ctime): use stat_ctime.
(rb_file_s_ctime): ditto.
(rb_stat_ctime): ditto.
* variable.c (rb_copy_generic_ivar): clear clone's instance variables
if obj has no instance variable.
* marshal.c (w_object): dump instance variables of generated string
for TYPE_USERDEF, even if original object has instance variables.
* lib/time.rb (Time#xmlschema): use nsec instead of usec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-19 04:09:38 -05:00
|
|
|
VALUE rb_time_new(time_t, long);
|
|
|
|
VALUE rb_time_nano_new(time_t, long);
|
2015-11-09 21:59:47 -05:00
|
|
|
VALUE rb_time_timespec_new(const struct timespec *, int);
|
2009-07-01 08:11:53 -04:00
|
|
|
VALUE rb_time_num_new(VALUE, VALUE);
|
2010-08-14 00:23:31 -04:00
|
|
|
struct timeval rb_time_interval(VALUE num);
|
|
|
|
struct timeval rb_time_timeval(VALUE time);
|
|
|
|
struct timespec rb_time_timespec(VALUE time);
|
1998-01-16 07:19:09 -05:00
|
|
|
/* variable.c */
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_mod_name(VALUE);
|
|
|
|
VALUE rb_class_path(VALUE);
|
2013-12-08 22:25:38 -05:00
|
|
|
VALUE rb_class_path_cached(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_set_class_path(VALUE, VALUE, const char*);
|
2009-07-30 03:45:42 -04:00
|
|
|
void rb_set_class_path_string(VALUE, VALUE, VALUE);
|
2009-08-09 17:55:55 -04:00
|
|
|
VALUE rb_path_to_class(VALUE);
|
2009-08-10 08:45:33 -04:00
|
|
|
VALUE rb_path2class(const char*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
void rb_name_class(VALUE, ID);
|
|
|
|
VALUE rb_class_name(VALUE);
|
2005-09-28 11:58:32 -04:00
|
|
|
VALUE rb_autoload_load(VALUE, ID);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_autoload_p(VALUE, ID);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_f_trace_var(int, const VALUE*);
|
|
|
|
VALUE rb_f_untrace_var(int, const VALUE*);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_f_global_variables(void);
|
|
|
|
void rb_alias_variable(ID, ID);
|
|
|
|
void rb_copy_generic_ivar(VALUE,VALUE);
|
|
|
|
void rb_free_generic_ivar(VALUE);
|
|
|
|
VALUE rb_ivar_get(VALUE, ID);
|
|
|
|
VALUE rb_ivar_set(VALUE, ID, VALUE);
|
|
|
|
VALUE rb_ivar_defined(VALUE, ID);
|
2007-09-28 02:21:46 -04:00
|
|
|
void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t);
|
2009-12-05 05:25:28 -05:00
|
|
|
st_index_t rb_ivar_count(VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_attr_get(VALUE, ID);
|
|
|
|
VALUE rb_obj_instance_variables(VALUE);
|
|
|
|
VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
|
|
|
|
void *rb_mod_const_at(VALUE, void*);
|
|
|
|
void *rb_mod_const_of(VALUE, void*);
|
|
|
|
VALUE rb_const_list(void*);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_mod_constants(int, const VALUE *, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_mod_remove_const(VALUE, VALUE);
|
|
|
|
int rb_const_defined(VALUE, ID);
|
|
|
|
int rb_const_defined_at(VALUE, ID);
|
|
|
|
int rb_const_defined_from(VALUE, ID);
|
|
|
|
VALUE rb_const_get(VALUE, ID);
|
|
|
|
VALUE rb_const_get_at(VALUE, ID);
|
|
|
|
VALUE rb_const_get_from(VALUE, ID);
|
|
|
|
void rb_const_set(VALUE, ID, VALUE);
|
2010-03-11 17:15:11 -05:00
|
|
|
VALUE rb_const_remove(VALUE, ID);
|
2016-05-07 20:55:28 -04:00
|
|
|
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_cvar_defined(VALUE, ID);
|
2007-02-02 04:41:47 -05:00
|
|
|
void rb_cvar_set(VALUE, ID, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_cvar_get(VALUE, ID);
|
|
|
|
void rb_cv_set(VALUE, const char*, VALUE);
|
|
|
|
VALUE rb_cv_get(VALUE, const char*);
|
|
|
|
void rb_define_class_variable(VALUE, const char*, VALUE);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_mod_class_variables(int, const VALUE*, VALUE);
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 02:32:32 -04:00
|
|
|
VALUE rb_mod_remove_cvar(VALUE, VALUE);
|
2004-02-16 01:45:32 -05:00
|
|
|
|
2006-12-31 10:02:22 -05:00
|
|
|
ID rb_frame_callee(void);
|
|
|
|
VALUE rb_str_succ(VALUE);
|
|
|
|
VALUE rb_time_succ(VALUE);
|
2016-12-04 00:40:18 -05:00
|
|
|
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
|
2010-08-14 00:20:59 -04:00
|
|
|
VALUE rb_make_backtrace(void);
|
2014-06-18 02:16:39 -04:00
|
|
|
VALUE rb_make_exception(int, const VALUE*);
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_END
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
2004-02-16 01:45:32 -05:00
|
|
|
#endif /* RUBY_INTERN_H */
|