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.

Macros

#define STRING_SHIPYARD_SIZE   1024
 equal.h
 

Functions

bool eq (struct cons_pointer a, struct cons_pointer b)
 Shallow, and thus cheap, equality: true if these two objects are the same object, else false.
 
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.
 

Macro Definition Documentation

◆ STRING_SHIPYARD_SIZE

#define STRING_SHIPYARD_SIZE   1024

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. size of buffer for assembling strings. Likely to be useful to read, too.

Definition at line 22 of file equal.h.

Function Documentation

◆ eq()

bool eq ( struct cons_pointer  a,
struct cons_pointer  b 
)

Shallow, and thus cheap, equality: true if these two objects are the same object, else false.

Definition at line 28 of file equal.c.

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

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

◆ equal()

bool equal ( struct cons_pointer  a,
struct cons_pointer  b 
)