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:
parent
dba6b87b29
commit
3710dedc12
@ -1,10 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// amd64.h
|
* This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
// File file is part of the "Coroutine" project and released under the MIT License.
|
*
|
||||||
//
|
* Created by Samuel Williams on 10/5/2018.
|
||||||
// Created by Samuel Williams on 10/5/2018.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -19,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 6;
|
const size_t COROUTINE_REGISTERS = 6;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
} coroutine_context;
|
} coroutine_context;
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
inline void coroutine_initialize(
|
inline void coroutine_initialize(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
##
|
##
|
||||||
## amd64.c
|
## This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
## File file is part of the "Coroutine" project and released under the MIT License.
|
|
||||||
##
|
##
|
||||||
## Created by Samuel Williams on 10/5/2018.
|
## Created by Samuel Williams on 10/5/2018.
|
||||||
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// amd64.h
|
* This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
// File file is part of the "Coroutine" project and released under the MIT License.
|
*
|
||||||
//
|
* Created by Samuel Williams on 10/5/2018.
|
||||||
// Created by Samuel Williams on 10/5/2018.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -19,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 9;
|
const size_t COROUTINE_REGISTERS = 9;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
} coroutine_context;
|
} coroutine_context;
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
inline void coroutine_initialize(
|
inline void coroutine_initialize(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
##
|
##
|
||||||
## arm.c
|
## This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
## File file is part of the "Coroutine" project and released under the MIT License.
|
|
||||||
##
|
##
|
||||||
## Created by Samuel Williams on 10/5/2018.
|
## Created by Samuel Williams on 10/5/2018.
|
||||||
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// amd64.h
|
* This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
// File file is part of the "Coroutine" project and released under the MIT License.
|
*
|
||||||
//
|
* Created by Samuel Williams on 10/5/2018.
|
||||||
// Created by Samuel Williams on 10/5/2018.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -19,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 0xb0 / 8;
|
const size_t COROUTINE_REGISTERS = 0xb0 / 8;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
} coroutine_context;
|
} coroutine_context;
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
inline void coroutine_initialize(
|
inline void coroutine_initialize(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
##
|
##
|
||||||
## arm64.s
|
## This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
## File file is part of the "Coroutine" project and released under the MIT License.
|
|
||||||
##
|
##
|
||||||
## Created by Samuel Williams on 10/5/2018.
|
## Created by Samuel Williams on 10/5/2018.
|
||||||
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
;;
|
;;
|
||||||
;; win32.asm
|
;; This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
;; File file is part of the "Coroutine" project and released under the MIT License.
|
|
||||||
;;
|
;;
|
||||||
;; Created by Samuel Williams on 10/5/2018.
|
;; Created by Samuel Williams on 10/5/2018.
|
||||||
;; Copyright, 2018, by Samuel Williams. All rights reserved.
|
;; Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// win32.h
|
* This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
// File file is part of the "Coroutine" project and released under the MIT License.
|
*
|
||||||
//
|
* Created by Samuel Williams on 10/5/2018.
|
||||||
// Created by Samuel Williams on 10/5/2018.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -19,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 4;
|
const size_t COROUTINE_REGISTERS = 4;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
struct coroutine_context
|
struct coroutine_context
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
};
|
};
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
inline void coroutine_initialize(
|
inline void coroutine_initialize(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
;;
|
;;
|
||||||
;; win64.asm
|
;; This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
;; File file is part of the "Coroutine" project and released under the MIT License.
|
|
||||||
;;
|
;;
|
||||||
;; Created by Samuel Williams on 10/5/2018.
|
;; Created by Samuel Williams on 10/5/2018.
|
||||||
;; Copyright, 2018, by Samuel Williams. All rights reserved.
|
;; Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// win64.h
|
* This file is part of the "Coroutine" project and released under the MIT License.
|
||||||
// File file is part of the "Coroutine" project and released under the MIT License.
|
*
|
||||||
//
|
* Created by Samuel Williams on 10/5/2018.
|
||||||
// Created by Samuel Williams on 10/5/2018.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -19,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 8;
|
const size_t COROUTINE_REGISTERS = 8;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
struct coroutine_context
|
struct coroutine_context
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
};
|
};
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
inline void coroutine_initialize(
|
inline void coroutine_initialize(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
//
|
/*
|
||||||
// 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.
|
* Created by Samuel Williams on 3/11/2018.
|
||||||
// Copyright, 2018, by Samuel Williams. All rights reserved.
|
* Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
//
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -18,13 +18,11 @@ extern "C" {
|
|||||||
|
|
||||||
const size_t COROUTINE_REGISTERS = 4;
|
const size_t COROUTINE_REGISTERS = 4;
|
||||||
|
|
||||||
// The fiber context (stack pointer).
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
} coroutine_context;
|
} coroutine_context;
|
||||||
|
|
||||||
// The initialization function.
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall));
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall));
|
||||||
|
|
||||||
void coroutine_initialize(
|
void coroutine_initialize(
|
||||||
|
@ -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.
|
## Created by Samuel Williams on 3/11/2018.
|
||||||
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
## Copyright, 2018, by Samuel Williams. All rights reserved.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user