Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
equal.h File Reference
#include <math.h>
#include <stdbool.h>
#include "consspaceobject.h"
Include dependency graph for equal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool eq (struct cons_pointer a, struct cons_pointer b)
 equal.h
 
bool equal (struct cons_pointer a, struct cons_pointer b)
 Deep, and thus expensive, equality: true if these two objects have identical structure, else false.
 

Function Documentation

◆ eq()

bool eq ( struct cons_pointer  a,
struct cons_pointer  b 
)

equal.h

Checks for shallow and deep equality

(c) 2017 Simon Brooke simon.nosp@m.@jou.nosp@m.rneym.nosp@m.an.c.nosp@m.c Licensed under GPL version 2.0, or, at your option, any later version. Shallow, and thus cheap, equality: true if these two objects are the same object, else false.

equal.h

Definition at line 24 of file equal.c.

References cons_pointer::offset, and cons_pointer::page.

Referenced by equal(), equal_number_number(), lisp_add(), lisp_eq(), lisp_repl(), make_ratio(), and release_integer().

◆ equal()

bool equal ( struct cons_pointer  a,
struct cons_pointer  b 
)