|
Post Scarcity
A prototype for a post scarcity programming environment
|
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. | |
| #define STRING_SHIPYARD_SIZE 1024 |
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.
| 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().
| 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.
Definition at line 332 of file equal.c.
References c_cdr(), CONSTV, DEBUG_ARITH, debug_print(), debug_print_object(), debug_printf(), eq(), equal(), equal_number_number(), equal_vector_vector(), KEYTV, LAMBDATV, nilp, NLAMBDATV, numberp, cons_space_object::payload, pointer2cell, same_type(), STRING_SHIPYARD_SIZE, STRINGTV, SYMBOLTV, cons_space_object::tag, and VECTORPOINTTV.
Referenced by c_assoc(), equal(), equal_map_map(), internedp(), and lisp_equal().