1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Tidy up comments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
samuel 2018-11-20 10:16:29 +00:00
parent dba6b87b29
commit 3710dedc12
12 changed files with 42 additions and 64 deletions

View file

@ -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(

View file

@ -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.

View file

@ -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(

View file

@ -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.

View file

@ -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(

View file

@ -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.

View file

@ -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.

View file

@ -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(

View file

@ -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.

View file

@ -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(

View file

@ -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(

View file

@ -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.