mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
"protocol" => "interface"
This commit is contained in:
committed by
Christoffer Lerno
parent
e380075852
commit
d01d8d3663
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module std::math::random;
|
||||
|
||||
protocol Random
|
||||
interface Random
|
||||
{
|
||||
fn void set_seed(char[] input);
|
||||
fn char next_byte();
|
||||
|
||||
Reference in New Issue
Block a user