Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
authorise.c
Go to the documentation of this file.
1/*
2 * authorised.c
3 *
4 * For now, a dummy authorising everything.
5 *
6 * (c) 2021 Simon Brooke <simon@journeyman.cc>
7 * Licensed under GPL version 2.0, or, at your option, any later version.
8 */
9
10#include "memory/conspage.h"
12
13
14/**
15 * TODO: does nothing, yet. What it should do is access a magic value in the
16 * runtime environment and check that it is identical to something on this `acl`
17 */
18struct cons_pointer authorised( struct cons_pointer target,
19 struct cons_pointer acl ) {
20 if ( nilp( acl ) ) {
21 acl = pointer2cell( target ).access;
22 }
23 return TRUE;
24}
struct cons_pointer authorised(struct cons_pointer target, struct cons_pointer acl)
TODO: does nothing, yet.
Definition authorise.c:18
#define nilp(conspoint)
true if conspoint points to the special cell NIL, else false (there should only be one of these so it...
#define TRUE
a cons pointer which points to the special T cell
#define pointer2cell(pointer)
given a cons_pointer as argument, return the cell.
An indirect pointer to a cons cell.