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

ruby-changes:53103

From: svn <ko1@a...>
Date: Tue, 23 Oct 2018 12:47:53 +0900 (JST)
Subject: [ruby-changes:53103] svn:r65317 (trunk): * expand tabs.

svn	2018-10-23 12:47:48 +0900 (Tue, 23 Oct 2018)

  New Revision: 65317

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

  Log:
    * expand tabs.

  Modified files:
    trunk/vm_trace.c
Index: vm_trace.c
===================================================================
--- vm_trace.c	(revision 65316)
+++ vm_trace.c	(revision 65317)
@@ -1597,17 +1597,17 @@ enum postponed_job_register_result { https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1597
 /* Async-signal-safe */
 static enum postponed_job_register_result
 postponed_job_register(rb_execution_context_t *ec, rb_vm_t *vm,
-		       unsigned int flags, rb_postponed_job_func_t func, void *data, int max, int expected_index)
+                       unsigned int flags, rb_postponed_job_func_t func, void *data, int max, int expected_index)
 {
     rb_postponed_job_t *pjob;
 
     if (expected_index >= max) return PJRR_FULL; /* failed */
 
     if (ATOMIC_CAS(vm->postponed_job_index, expected_index, expected_index+1) == expected_index) {
-	pjob = &vm->postponed_job_buffer[expected_index];
+        pjob = &vm->postponed_job_buffer[expected_index];
     }
     else {
-	return PJRR_INTERRUPTED;
+        return PJRR_INTERRUPTED;
     }
 
     /* unused: pjob->flags = flags; */
@@ -1653,11 +1653,11 @@ rb_postponed_job_register_one(unsigned i https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1653
   begin:
     index = vm->postponed_job_index;
     for (i=0; i<index; i++) {
-	pjob = &vm->postponed_job_buffer[i];
-	if (pjob->func == func) {
-	    RUBY_VM_SET_POSTPONED_JOB_INTERRUPT(ec);
-	    return 2;
-	}
+        pjob = &vm->postponed_job_buffer[i];
+        if (pjob->func == func) {
+            RUBY_VM_SET_POSTPONED_JOB_INTERRUPT(ec);
+            return 2;
+        }
     }
     switch (postponed_job_register(ec, vm, flags, func, data, MAX_POSTPONED_JOB + MAX_POSTPONED_JOB_SPECIAL_ADDITION, index)) {
       case PJRR_SUCCESS    : return 1;
@@ -1681,12 +1681,12 @@ rb_postponed_job_flush(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1681
     {
 	EC_PUSH_TAG(ec);
 	if (EC_EXEC_TAG() == TAG_NONE) {
-	    int index;
-	    while ((index = vm->postponed_job_index) > 0) {
-		if (ATOMIC_CAS(vm->postponed_job_index, index, index-1) == index) {
-		    rb_postponed_job_t *pjob = &vm->postponed_job_buffer[index-1];
-		    (*pjob->func)(pjob->data);
-		}
+            int index;
+            while ((index = vm->postponed_job_index) > 0) {
+                if (ATOMIC_CAS(vm->postponed_job_index, index, index-1) == index) {
+                    rb_postponed_job_t *pjob = &vm->postponed_job_buffer[index-1];
+                    (*pjob->func)(pjob->data);
+                }
 	    }
 	}
 	EC_POP_TAG();

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

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