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

ruby-changes:28746

From: zzak <ko1@a...>
Date: Fri, 17 May 2013 21:49:45 +0900 (JST)
Subject: [ruby-changes:28746] zzak:r40798 (trunk): * cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'

zzak	2013-05-17 21:49:25 +0900 (Fri, 17 May 2013)

  New Revision: 40798

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

  Log:
    * cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'
      patch by @schmurfy [Fixes GH-307]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40797)
+++ ChangeLog	(revision 40798)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May 17 21:47:00 2013  Zachary Scott  <zachary@z...>
+
+	* cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'
+	  patch by @schmurfy [Fixes GH-307]
+
 Fri May 17 19:18:24 2013  Akinori MUSHA  <knu@i...>
 
 	* misc/ruby-electric.el (ruby-electric-matching-char): Do not put
Index: cont.c
===================================================================
--- cont.c	(revision 40797)
+++ cont.c	(revision 40798)
@@ -86,13 +86,13 @@ enum fiber_status { https://github.com/ruby/ruby/blob/trunk/cont.c#L86
 };
 
 #if FIBER_USE_NATIVE && !defined(_WIN32)
-#define MAX_MAHINE_STACK_CACHE  10
+#define MAX_MACHINE_STACK_CACHE  10
 static int machine_stack_cache_index = 0;
 typedef struct machine_stack_cache_struct {
     void *ptr;
     size_t size;
 } machine_stack_cache_t;
-static machine_stack_cache_t machine_stack_cache[MAX_MAHINE_STACK_CACHE];
+static machine_stack_cache_t machine_stack_cache[MAX_MACHINE_STACK_CACHE];
 static machine_stack_cache_t terminated_machine_stack;
 #endif
 
@@ -1233,7 +1233,7 @@ fiber_store(rb_fiber_t *next_fib) https://github.com/ruby/ruby/blob/trunk/cont.c#L1233
 	fiber_setcontext(next_fib, fib);
 #ifndef _WIN32
 	if (terminated_machine_stack.ptr) {
-	    if (machine_stack_cache_index < MAX_MAHINE_STACK_CACHE) {
+	    if (machine_stack_cache_index < MAX_MACHINE_STACK_CACHE) {
 		machine_stack_cache[machine_stack_cache_index].ptr = terminated_machine_stack.ptr;
 		machine_stack_cache[machine_stack_cache_index].size = terminated_machine_stack.size;
 		machine_stack_cache_index++;

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

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