Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
equal.h
Go to the documentation of this file.
1
/**
2
* equal.h
3
*
4
* Checks for shallow and deep equality
5
*
6
* (c) 2017 Simon Brooke <simon@journeyman.cc>
7
* Licensed under GPL version 2.0, or, at your option, any later version.
8
*/
9
10
#include <math.h>
11
#include <stdbool.h>
12
13
#include "
consspaceobject.h
"
14
15
#ifndef __equal_h
16
#define __equal_h
17
18
/**
19
* Shallow, and thus cheap, equality: true if these two objects are
20
* the same object, else false.
21
*/
22
bool
eq
(
struct
cons_pointer
a,
struct
cons_pointer
b );
23
24
/**
25
* Deep, and thus expensive, equality: true if these two objects have
26
* identical structure, else false.
27
*/
28
bool
equal
(
struct
cons_pointer
a,
struct
cons_pointer
b );
29
30
#endif
consspaceobject.h
cons_pointer
An indirect pointer to a cons cell.
Definition
consspaceobject.h:415
equal
bool equal(struct cons_pointer a, struct cons_pointer b)
Deep, and thus expensive, equality: true if these two objects have identical structure,...
Definition
equal.c:247
eq
bool eq(struct cons_pointer a, struct cons_pointer b)
equal.h
Definition
equal.c:24
workspace
post-scarcity
src
ops
equal.h
Generated by
1.9.8