2000-05-01 13:42:38 +04:00
|
|
|
/**********************************************************************
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
inits.c -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
created at: Tue Dec 28 16:01:58 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-25 07:29:39 +04:00
|
|
|
Copyright (C) 1993-2007 Yukihiro Matsumoto
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2000-05-01 13:42:38 +04:00
|
|
|
**********************************************************************/
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2007-06-10 07:06:15 +04:00
|
|
|
#include "ruby/ruby.h"
|
* internal.h: declare internal functions here.
* node.h: declare NODE dependent internal functions here.
* iseq.h: declare rb_iseq_t dependent internal functions here.
* vm_core.h: declare rb_thread_t dependent internal functions here.
* bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
thread.c, time.c, transcode.c, variable.c, vm.c,
tool/compile_prelude.rb: don't declare internal functions declared
in above headers. include above headers if required.
Note that rb_thread_mark() was declared as
void rb_thread_mark(rb_thread_t *th) in cont.c but defined as
void rb_thread_mark(void *ptr) in vm.c. Now it is declared as
the later in internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-18 02:43:38 +04:00
|
|
|
#include "internal.h"
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2008-11-07 16:52:07 +03:00
|
|
|
#define CALL(n) {void Init_##n(void); Init_##n();}
|
1998-01-16 15:19:22 +03:00
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
void
|
2008-11-07 16:52:07 +03:00
|
|
|
rb_call_inits(void)
|
1998-01-16 15:13:05 +03:00
|
|
|
{
|
2008-11-07 16:52:07 +03:00
|
|
|
CALL(RandomSeed);
|
|
|
|
CALL(sym);
|
|
|
|
CALL(var_tables);
|
|
|
|
CALL(Object);
|
|
|
|
CALL(top_self);
|
|
|
|
CALL(Encoding);
|
|
|
|
CALL(Comparable);
|
|
|
|
CALL(Enumerable);
|
|
|
|
CALL(String);
|
|
|
|
CALL(Exception);
|
|
|
|
CALL(eval);
|
|
|
|
CALL(safe);
|
|
|
|
CALL(jump);
|
|
|
|
CALL(Numeric);
|
|
|
|
CALL(Bignum);
|
|
|
|
CALL(syserr);
|
|
|
|
CALL(Array);
|
|
|
|
CALL(Hash);
|
|
|
|
CALL(Struct);
|
|
|
|
CALL(Regexp);
|
|
|
|
CALL(pack);
|
|
|
|
CALL(transcode);
|
|
|
|
CALL(marshal);
|
|
|
|
CALL(Range);
|
|
|
|
CALL(IO);
|
|
|
|
CALL(Dir);
|
|
|
|
CALL(Time);
|
|
|
|
CALL(Random);
|
|
|
|
CALL(signal);
|
|
|
|
CALL(process);
|
|
|
|
CALL(load);
|
|
|
|
CALL(Proc);
|
|
|
|
CALL(Binding);
|
|
|
|
CALL(Math);
|
|
|
|
CALL(GC);
|
|
|
|
CALL(Enumerator);
|
|
|
|
CALL(VM);
|
|
|
|
CALL(ISeq);
|
|
|
|
CALL(Thread);
|
|
|
|
CALL(Cont);
|
|
|
|
CALL(Rational);
|
|
|
|
CALL(Complex);
|
|
|
|
CALL(version);
|
1998-01-16 15:13:05 +03:00
|
|
|
}
|
2008-11-07 16:52:07 +03:00
|
|
|
#undef CALL
|