28 lines
763 B
C
28 lines
763 B
C
/**
|
|
* ops/assoc.h
|
|
*
|
|
* Post Scarcity Software Environment: assoc.
|
|
*
|
|
* Search a store for the value associated with a key.
|
|
*
|
|
* (c) 2026 Simon Brooke <simon@journeyman.cc>
|
|
* Licensed under GPL version 2.0, or, at your option, any later version.
|
|
*/
|
|
|
|
#ifndef __psse_ops_assoc_h
|
|
#define __psse_ops_assoc_h
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "memory/pointer.h"
|
|
|
|
struct pso_pointer search( struct pso_pointer key,
|
|
struct pso_pointer store, bool return_key );
|
|
|
|
struct pso_pointer c_assoc( struct pso_pointer key, struct pso_pointer store );
|
|
|
|
struct pso_pointer c_interned( struct pso_pointer key,
|
|
struct pso_pointer store );
|
|
|
|
bool c_internedp( struct pso_pointer key, struct pso_pointer store );
|
|
#endif
|