mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9f9201b85d
commit
c037f1f616
6 changed files with 16 additions and 9 deletions
|
@ -6,6 +6,7 @@ Thu Mar 15 07:03:52 2012 Eric Hodel <drbrain@segment7.net>
|
|||
|
||||
* vm_eval.c (check_funcall): Raise ArgumentError if respond_to?
|
||||
requires more than three arguments. [Bug #6000]
|
||||
|
||||
* test/ruby/test_object.rb (class TestObject): Test for respond_to?
|
||||
requiring more than three arguments.
|
||||
|
||||
|
@ -153,8 +154,6 @@ Tue Mar 13 12:37:53 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
|||
|
||||
Tue Mar 13 12:37:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
Bug #5350
|
||||
|
||||
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350]
|
||||
|
||||
* lib/weakref.rb: use WeakMap instead of _id2ref.
|
||||
|
|
|
@ -87,7 +87,8 @@ typedef struct {
|
|||
static char binary_filename[PATH_MAX];
|
||||
|
||||
static unsigned long
|
||||
uleb128(char **p) {
|
||||
uleb128(char **p)
|
||||
{
|
||||
unsigned long r = 0;
|
||||
int s = 0;
|
||||
for (;;) {
|
||||
|
@ -103,7 +104,8 @@ uleb128(char **p) {
|
|||
}
|
||||
|
||||
static long
|
||||
sleb128(char **p) {
|
||||
sleb128(char **p)
|
||||
{
|
||||
long r = 0;
|
||||
int s = 0;
|
||||
for (;;) {
|
||||
|
|
|
@ -843,7 +843,9 @@ flodivmod(double x, double y, double *divp, double *modp)
|
|||
* An error will be raised if y == 0.
|
||||
*/
|
||||
|
||||
double ruby_float_mod(double x, double y) {
|
||||
double
|
||||
ruby_float_mod(double x, double y)
|
||||
{
|
||||
double mod;
|
||||
flodivmod(x, y, 0, &mod);
|
||||
return mod;
|
||||
|
|
|
@ -5670,7 +5670,8 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env)
|
|||
}
|
||||
|
||||
static int
|
||||
countbits(unsigned int bits) {
|
||||
countbits(unsigned int bits)
|
||||
{
|
||||
bits = (bits & 0x55555555) + ((bits >> 1) & 0x55555555);
|
||||
bits = (bits & 0x33333333) + ((bits >> 2) & 0x33333333);
|
||||
bits = (bits & 0x0f0f0f0f) + ((bits >> 4) & 0x0f0f0f0f);
|
||||
|
|
|
@ -106,7 +106,8 @@ vm_pop_frame(rb_thread_t *th)
|
|||
|
||||
/* method dispatch */
|
||||
static inline VALUE
|
||||
rb_arg_error_new(int argc, int min, int max) {
|
||||
rb_arg_error_new(int argc, int min, int max)
|
||||
{
|
||||
VALUE err_mess = 0;
|
||||
if (min == max) {
|
||||
err_mess = rb_sprintf("wrong number of arguments (%d for %d)", argc, min);
|
||||
|
@ -164,7 +165,8 @@ unknown_keyword_error(const rb_iseq_t *iseq, VALUE hash)
|
|||
}
|
||||
|
||||
void
|
||||
rb_error_arity(int argc, int min, int max) {
|
||||
rb_error_arity(int argc, int min, int max)
|
||||
{
|
||||
rb_exc_raise(rb_arg_error_new(argc, min, max));
|
||||
}
|
||||
|
||||
|
|
|
@ -941,7 +941,8 @@ rb_hash_method_definition(st_index_t hash, const rb_method_definition_t *def)
|
|||
}
|
||||
|
||||
st_index_t
|
||||
rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me) {
|
||||
rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me)
|
||||
{
|
||||
return rb_hash_method_definition(hash, me->def);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue