ruby-changes:37685
From: nobu <ko1@a...>
Date: Fri, 27 Feb 2015 12:55:16 +0900 (JST)
Subject: [ruby-changes:37685] nobu:r49766 (trunk): thread.c: refine enums
nobu 2015-02-27 12:55:00 +0900 (Fri, 27 Feb 2015) New Revision: 49766 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49766 Log: thread.c: refine enums * ext/thread/thread.c: remove unnecessary enum values and add end of enumerations. Modified files: trunk/ext/thread/thread.c Index: ext/thread/thread.c =================================================================== --- ext/thread/thread.c (revision 49765) +++ ext/thread/thread.c (revision 49766) @@ -1,14 +1,16 @@ https://github.com/ruby/ruby/blob/trunk/ext/thread/thread.c#L1 #include <ruby.h> enum { - CONDVAR_WAITERS = 0 + CONDVAR_WAITERS, + END_CONDVAR }; enum { - QUEUE_QUE = 0, - QUEUE_WAITERS = 1, - SZQUEUE_WAITERS = 2, - SZQUEUE_MAX = 3 + QUEUE_QUE, + QUEUE_WAITERS, + SZQUEUE_WAITERS, + SZQUEUE_MAX, + END_QUEUE }; #define GET_CONDVAR_WAITERS(cv) get_array((cv), CONDVAR_WAITERS) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/