1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.h: set rb_event_flag_t to uint32_t

This ensures a consistent implementation between 32 and 64-bit
platforms, as vm_trace.c limits events to 32-bits.  This can
also open up struct packing opportunities.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-10-01 21:13:30 +00:00
parent 3aab1f8467
commit 11f3526734
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 2 05:40:05 2014 Eric Wong <e@80x24.org>
* ruby.h: set rb_event_flag_t to uint32_t
[ruby-core:65315] [misc #10249]
Thu Oct 2 05:32:17 2014 Eric Wong <e@80x24.org>
* io.c (fptr_finalize): free memory before GC sweep

View file

@ -1728,7 +1728,7 @@ int ruby_native_thread_p(void);
#define RUBY_INTERNAL_EVENT_OBJSPACE_MASK 0x7f00000
#define RUBY_INTERNAL_EVENT_MASK 0xfffe0000
typedef unsigned long rb_event_flag_t;
typedef uint32_t rb_event_flag_t;
typedef void (*rb_event_hook_func_t)(rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass);
#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA 1