ruby-changes:53631
From: samuel <ko1@a...>
Date: Tue, 20 Nov 2018 19:32:39 +0900 (JST)
Subject: [ruby-changes:53631] samuel:r65850 (trunk): Tidy up comments.
samuel 2018-11-20 19:16:29 +0900 (Tue, 20 Nov 2018) New Revision: 65850 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65850 Log: Tidy up comments. Modified files: trunk/coroutine/amd64/Context.h trunk/coroutine/amd64/Context.s trunk/coroutine/arm32/Context.h trunk/coroutine/arm32/Context.s trunk/coroutine/arm64/Context.h trunk/coroutine/arm64/Context.s trunk/coroutine/win32/Context.asm trunk/coroutine/win32/Context.h trunk/coroutine/win64/Context.asm trunk/coroutine/win64/Context.h trunk/coroutine/x86/Context.h trunk/coroutine/x86/Context.s Index: coroutine/amd64/Context.s =================================================================== --- coroutine/amd64/Context.s (revision 65849) +++ coroutine/amd64/Context.s (revision 65850) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.s#L1 ## -## amd64.c -## File file is part of the "Coroutine" project and released under the MIT License. +## This file is part of the "Coroutine" project and released under the MIT License. ## ## Created by Samuel Williams on 10/5/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. Index: coroutine/amd64/Context.h =================================================================== --- coroutine/amd64/Context.h (revision 65849) +++ coroutine/amd64/Context.h (revision 65850) @@ -1,10 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.h#L1 -// -// amd64.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.h#L18 const size_t COROUTINE_REGISTERS = 6; -// The fiber context (stack pointer). typedef struct { void **stack_pointer; } coroutine_context; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( Index: coroutine/win32/Context.asm =================================================================== --- coroutine/win32/Context.asm (revision 65849) +++ coroutine/win32/Context.asm (revision 65850) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.asm#L1 ;; -;; win32.asm -;; File file is part of the "Coroutine" project and released under the MIT License. +;; This file is part of the "Coroutine" project and released under the MIT License. ;; ;; Created by Samuel Williams on 10/5/2018. ;; Copyright, 2018, by Samuel Williams. All rights reserved. Index: coroutine/win32/Context.h =================================================================== --- coroutine/win32/Context.h (revision 65849) +++ coroutine/win32/Context.h (revision 65850) @@ -1,10 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L1 -// -// win32.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L18 const size_t COROUTINE_REGISTERS = 4; -// The fiber context (stack pointer). struct coroutine_context { void **stack_pointer; }; -// The initialization function. typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( Index: coroutine/arm32/Context.s =================================================================== --- coroutine/arm32/Context.s (revision 65849) +++ coroutine/arm32/Context.s (revision 65850) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.s#L1 ## -## arm.c -## File file is part of the "Coroutine" project and released under the MIT License. +## This file is part of the "Coroutine" project and released under the MIT License. ## ## Created by Samuel Williams on 10/5/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. Index: coroutine/arm32/Context.h =================================================================== --- coroutine/arm32/Context.h (revision 65849) +++ coroutine/arm32/Context.h (revision 65850) @@ -1,10 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.h#L1 -// -// amd64.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.h#L18 const size_t COROUTINE_REGISTERS = 9; -// The fiber context (stack pointer). typedef struct { void **stack_pointer; } coroutine_context; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( Index: coroutine/x86/Context.s =================================================================== --- coroutine/x86/Context.s (revision 65849) +++ coroutine/x86/Context.s (revision 65850) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.s#L1 ## -## File file is part of the "Coroutine" project and released under the MIT License. +## This file is part of the "Coroutine" project and released under the MIT License. ## ## Created by Samuel Williams on 3/11/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. Index: coroutine/x86/Context.h =================================================================== --- coroutine/x86/Context.h (revision 65849) +++ coroutine/x86/Context.h (revision 65850) @@ -1,9 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.h#L1 -// -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 3/11/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 3/11/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -18,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.h#L18 const size_t COROUTINE_REGISTERS = 4; -// The fiber context (stack pointer). typedef struct { void **stack_pointer; } coroutine_context; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall)); void coroutine_initialize( Index: coroutine/win64/Context.asm =================================================================== --- coroutine/win64/Context.asm (revision 65849) +++ coroutine/win64/Context.asm (revision 65850) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.asm#L1 ;; -;; win64.asm -;; File file is part of the "Coroutine" project and released under the MIT License. +;; This file is part of the "Coroutine" project and released under the MIT License. ;; ;; Created by Samuel Williams on 10/5/2018. ;; Copyright, 2018, by Samuel Williams. All rights reserved. Index: coroutine/win64/Context.h =================================================================== --- coroutine/win64/Context.h (revision 65849) +++ coroutine/win64/Context.h (revision 65850) @@ -1,10 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L1 -// -// win64.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L18 const size_t COROUTINE_REGISTERS = 8; -// The fiber context (stack pointer). struct coroutine_context { void **stack_pointer; }; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( Index: coroutine/arm64/Context.h =================================================================== --- coroutine/arm64/Context.h (revision 65849) +++ coroutine/arm64/Context.h (revision 65850) @@ -1,10 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.h#L1 -// -// amd64.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.h#L18 const size_t COROUTINE_REGISTERS = 0xb0 / 8; -// The fiber context (stack pointer). typedef struct { void **stack_pointer; } coroutine_context; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( Index: coroutine/arm64/Context.s =================================================================== --- coroutine/arm64/Context.s (revision 65849) +++ coroutine/arm64/Context.s (revision 65850) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.s#L1 ## -## arm64.s -## File file is part of the "Coroutine" project and released under the MIT License. +## This file is part of the "Coroutine" project and released under the MIT License. ## ## Created by Samuel Williams on 10/5/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/