File tree Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change
1
+ Sat Jul 29 23:42:04 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
2
+
3
+ * dir.c (dir_each): should check whether dir is closed during the
4
+ block execution. (ruby-bugs:#PR47)
5
+
1
6
Sat Jul 29 21:57:30 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
2
7
3
8
* ruby.c (rubylib_mangle): provide another buffer for the result.
Original file line number Diff line number Diff line change @@ -764,9 +764,12 @@ case "$host_os" in
764
764
openstep*)
765
765
CFLAGS="$CFLAGS -pipe"
766
766
;;
767
- rhasody *)
767
+ rhapsody *)
768
768
CFLAGS="$CFLAGS -pipe -no-precomp"
769
769
;;
770
+ os2_emx)
771
+ CFLAGS="$CFLAGS -DOS2"
772
+ ;;
770
773
*)
771
774
;;
772
775
esac
Original file line number Diff line number Diff line change 28
28
#endif
29
29
#define S_IXGRP 0000010 /* execute/search permission, group */
30
30
#define S_IXOTH 0000001 /* execute/search permission, other */
31
+
32
+ #define HAVE_SYS_WAIT_H /* configure fails to find this */
31
33
#endif /* NeXT */
32
34
33
35
#ifdef NT
Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ dir_each(dir)
305
305
for (dp = readdir (dirp ); dp != NULL ; dp = readdir (dirp )) {
306
306
file = rb_tainted_str_new (dp -> d_name , NAMLEN (dp ));
307
307
rb_yield (file );
308
+ if (DATA_PTR (dir ) == NULL ) dir_closed ();
308
309
}
309
310
return dir ;
310
311
}
Original file line number Diff line number Diff line change @@ -45,7 +45,13 @@ def initialize(orig)
45
45
@__id = orig . __id__
46
46
ObjectSpace . call_finalizer orig
47
47
ObjectSpace . call_finalizer self
48
- ID_MAP [ @__id ] = [ ] unless ID_MAP [ @__id ]
48
+ begin
49
+ __old_status = Thread . critical
50
+ Thread . critical = true
51
+ ID_MAP [ @__id ] = [ ] unless ID_MAP [ @__id ]
52
+ ensure
53
+ Thread . critical = __old_status
54
+ end
49
55
ID_MAP [ @__id ] . push self . __id__
50
56
ID_REV_MAP [ self . id ] = @__id
51
57
end
Original file line number Diff line number Diff line change @@ -183,10 +183,6 @@ typedef struct
183
183
} regmatch_t ;
184
184
185
185
186
- #ifdef NeXT
187
- #define re_match rre_match
188
- #endif
189
-
190
186
#ifdef __STDC__
191
187
192
188
extern char * re_compile_pattern (const char * , int , struct re_pattern_buffer * );
You can’t perform that action at this time.
0 commit comments