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

ruby-changes:31457

From: nobu <ko1@a...>
Date: Tue, 5 Nov 2013 16:56:57 +0900 (JST)
Subject: [ruby-changes:31457] nobu:r43536 (trunk): eval_intern.h: rename prefix

nobu	2013-11-05 16:56:51 +0900 (Tue, 05 Nov 2013)

  New Revision: 43536

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

  Log:
    eval_intern.h: rename prefix
    
    * eval_intern.h (rb_threadptr_tag_state, rb_threadptr_tag_jump):
      rename prefix ruby as rb, same as other rb_threadptr functions.

  Modified files:
    trunk/eval_intern.h
Index: eval_intern.h
===================================================================
--- eval_intern.h	(revision 43535)
+++ eval_intern.h	(revision 43536)
@@ -110,16 +110,16 @@ extern int select_large_fdset(int, fd_se https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L110
 
 /* clear th->state, and return the value */
 static inline int
-ruby_threadptr_tag_state(rb_thread_t *th)
+rb_threadptr_tag_state(rb_thread_t *th)
 {
     int state = th->state;
     th->state = 0;
     return state;
 }
 
-NORETURN(static inline void ruby_threadptr_tag_jump(rb_thread_t *, int));
+NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, int));
 static inline void
-ruby_threadptr_tag_jump(rb_thread_t *th, int st)
+rb_threadptr_tag_jump(rb_thread_t *th, int st)
 {
     ruby_longjmp(th->tag->buf, (th->state = st));
 }
@@ -129,12 +129,12 @@ ruby_threadptr_tag_jump(rb_thread_t *th, https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L129
   [ISO/IEC 9899:1999] 7.13.1.1
 */
 #define TH_EXEC_TAG() \
-    (ruby_setjmp(_th->tag->buf) ? ruby_threadptr_tag_state(_th) : 0)
+    (ruby_setjmp(_th->tag->buf) ? rb_threadptr_tag_state(_th) : 0)
 
 #define EXEC_TAG() \
   TH_EXEC_TAG()
 
-#define TH_JUMP_TAG(th, st) ruby_threadptr_tag_jump(th, st)
+#define TH_JUMP_TAG(th, st) rb_threadptr_tag_jump(th, st)
 
 #define JUMP_TAG(st) TH_JUMP_TAG(GET_THREAD(), (st))
 

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

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