"protocol" => "interface"

This commit is contained in:
Christoffer Lerno
2023-10-20 12:42:36 +02:00
committed by Christoffer Lerno
parent e380075852
commit d01d8d3663
48 changed files with 322 additions and 325 deletions

View File

@@ -3,7 +3,7 @@ module std::core::mem::allocator;
const DEFAULT_SIZE_PREFIX = usz.sizeof;
const DEFAULT_SIZE_PREFIX_ALIGNMENT = usz.alignof;
protocol Allocator
interface Allocator
{
fn void reset(usz mark) @optional;
fn usz mark() @optional;

View File

@@ -4,7 +4,7 @@ import libc;
const int PRINTF_NTOA_BUFFER_SIZE = 256;
protocol Printable
interface Printable
{
fn String to_string(Allocator *using) @optional;
fn usz! to_format(Formatter* formatter) @optional;

View File

@@ -1,6 +1,6 @@
module std::math::random;
protocol Random
interface Random
{
fn void set_seed(char[] input);
fn char next_byte();