diff options
author | samuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-20 10:16:29 +0000 |
---|---|---|
committer | samuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-20 10:16:29 +0000 |
commit | 3710dedc1228dddd65cfb677b87a59b8ea4e91a4 (patch) | |
tree | c9e15bec76ff0acfd64bb74ea6a12c359a4489ca | |
parent | dba6b87b296c864776848819c76f9ff7c595cec4 (diff) | |
download | ruby-3710dedc1228dddd65cfb677b87a59b8ea4e91a4.tar.gz |
Tidy up comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | coroutine/amd64/Context.h | 15 | ||||
-rw-r--r-- | coroutine/amd64/Context.s | 3 | ||||
-rw-r--r-- | coroutine/arm32/Context.h | 15 | ||||
-rw-r--r-- | coroutine/arm32/Context.s | 3 | ||||
-rw-r--r-- | coroutine/arm64/Context.h | 15 | ||||
-rw-r--r-- | coroutine/arm64/Context.s | 3 | ||||
-rw-r--r-- | coroutine/win32/Context.asm | 3 | ||||
-rw-r--r-- | coroutine/win32/Context.h | 15 | ||||
-rw-r--r-- | coroutine/win64/Context.asm | 3 | ||||
-rw-r--r-- | coroutine/win64/Context.h | 15 | ||||
-rw-r--r-- | coroutine/x86/Context.h | 14 | ||||
-rw-r--r-- | coroutine/x86/Context.s | 2 |
12 files changed, 42 insertions, 64 deletions
diff --git a/coroutine/amd64/Context.h b/coroutine/amd64/Context.h index fa5819e115..2e7b05ba31 100644 --- a/coroutine/amd64/Context.h +++ b/coroutine/amd64/Context.h @@ -1,10 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/amd64/Context.s b/coroutine/amd64/Context.s index 772de3353c..e23f87de85 100644 --- a/coroutine/amd64/Context.s +++ b/coroutine/amd64/Context.s @@ -1,6 +1,5 @@ ## -## 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. diff --git a/coroutine/arm32/Context.h b/coroutine/arm32/Context.h index 1c730ed458..25f2bfcb3a 100644 --- a/coroutine/arm32/Context.h +++ b/coroutine/arm32/Context.h @@ -1,10 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/arm32/Context.s b/coroutine/arm32/Context.s index 91fc697c18..86a80f3db2 100644 --- a/coroutine/arm32/Context.s +++ b/coroutine/arm32/Context.s @@ -1,6 +1,5 @@ ## -## 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. diff --git a/coroutine/arm64/Context.h b/coroutine/arm64/Context.h index 8dc010d982..dd8b1d78dd 100644 --- a/coroutine/arm64/Context.h +++ b/coroutine/arm64/Context.h @@ -1,10 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/arm64/Context.s b/coroutine/arm64/Context.s index f8d76e82c4..2410dfc7cd 100644 --- a/coroutine/arm64/Context.s +++ b/coroutine/arm64/Context.s @@ -1,6 +1,5 @@ ## -## 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. diff --git a/coroutine/win32/Context.asm b/coroutine/win32/Context.asm index aa27099cfe..8fa13831bc 100644 --- a/coroutine/win32/Context.asm +++ b/coroutine/win32/Context.asm @@ -1,6 +1,5 @@ ;; -;; 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. diff --git a/coroutine/win32/Context.h b/coroutine/win32/Context.h index e5283cd4b0..30cb5a982d 100644 --- a/coroutine/win32/Context.h +++ b/coroutine/win32/Context.h @@ -1,10 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/win64/Context.asm b/coroutine/win64/Context.asm index f57d3fd387..6f64547d80 100644 --- a/coroutine/win64/Context.asm +++ b/coroutine/win64/Context.asm @@ -1,6 +1,5 @@ ;; -;; 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. diff --git a/coroutine/win64/Context.h b/coroutine/win64/Context.h index 53d9d43ae6..53b185a9ef 100644 --- a/coroutine/win64/Context.h +++ b/coroutine/win64/Context.h @@ -1,10 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h index c7e61c7a67..82fd1b75ff 100644 --- a/coroutine/x86/Context.h +++ b/coroutine/x86/Context.h @@ -1,9 +1,9 @@ -// -// 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" { 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( diff --git a/coroutine/x86/Context.s b/coroutine/x86/Context.s index 9b319cd8df..5fc0cccc24 100644 --- a/coroutine/x86/Context.s +++ b/coroutine/x86/Context.s @@ -1,5 +1,5 @@ ## -## 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. |