mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* re.c (rb_reg_expr_str): should treat backslash specially in
escaping. * io.c: complete off_t handling; missing argument for fptr_finalize(); polished rb_scan_args call. * dir.c: wrap multi-statment macro by do { } while (0) * eval.c, numeric,c, sprintf.c, util.c: ditto. * bignum.c (rb_big_eq): check `y == x' if y is neither Fixnum, Bignum, nor Float. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a7b08bb78
commit
e63a990141
23 changed files with 146 additions and 98 deletions
6
dir.c
6
dir.c
|
@ -6,7 +6,7 @@
|
|||
$Date$
|
||||
created at: Wed Jan 5 09:51:01 JST 1994
|
||||
|
||||
Copyright (C) 1993-2001 Yukihiro Matsumoto
|
||||
Copyright (C) 1993-2002 Yukihiro Matsumoto
|
||||
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
||||
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
||||
|
||||
|
@ -313,10 +313,10 @@ dir_closed()
|
|||
rb_raise(rb_eIOError, "closed directory");
|
||||
}
|
||||
|
||||
#define GetDIR(obj, dirp) {\
|
||||
#define GetDIR(obj, dirp) do {\
|
||||
Data_Get_Struct(obj, struct dir_data, dirp);\
|
||||
if (dirp->dir == NULL) dir_closed();\
|
||||
}
|
||||
} while (0)
|
||||
|
||||
static VALUE
|
||||
dir_path(dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue