[前][次][番号順一覧][スレッド一覧]

ruby-changes:35677

From: normal <ko1@a...>
Date: Thu, 2 Oct 2014 06:13:44 +0900 (JST)
Subject: [ruby-changes:35677] normal:r47759 (trunk): ruby.h: set rb_event_flag_t to uint32_t

normal	2014-10-02 06:13:30 +0900 (Thu, 02 Oct 2014)

  New Revision: 47759

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47759

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 47758)
+++ include/ruby/ruby.h	(revision 47759)
@@ -1728,7 +1728,7 @@ int ruby_native_thread_p(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1728
 #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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47758)
+++ ChangeLog	(revision 47759)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct  2 05:40:05 2014  Eric Wong  <e@8...>
+
+	* 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@8...>
 
 	* io.c (fptr_finalize): free memory before GC sweep

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]