Reduct  v1.0.4-3-gdaf0d70
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_atom_t Struct Reference

Atom structure. More...

#include <atom.h>

Collaboration diagram for reduct_atom_t:

Data Fields

reduct_uint32_t length
 The length of the string (must be first, check the reduct_item_t structure).
 
reduct_uint32_t hash
 The hash of the string.
 
char small [REDUCT_ATOM_SMALL_MAX]
 The small string buffer.
 
reduct_intrinsic_t intrinsic
 Cached intrinsic, item must have REDUCT_ITEM_FLAG_INTRINSIC.
 
char * string
 Pointer to the string.
 
union { 
 
   reduct_int64_t   integerValue 
 Pre-computed integer value, item must have REDUCT_ITEM_FLAG_INT_SHAPED. More...
 
   reduct_float_t   floatValue 
 Pre-computed float value, item must have REDUCT_ITEM_FLAG_FLOAT_SHAPED. More...
 
   reduct_native_fn   native 
 Native function, item must have REDUCT_ITEM_FLAG_NATIVE. More...
 
};  
 
struct reduct_atom * next
 Pointer to the next atom in the hash map.
 

Detailed Description

Atom structure.

Definition at line 47 of file atom.h.

Field Documentation

◆ length

reduct_uint32_t reduct_atom_t::length

The length of the string (must be first, check the reduct_item_t structure).

Definition at line 49 of file atom.h.

◆ hash

reduct_uint32_t reduct_atom_t::hash

The hash of the string.

Definition at line 50 of file atom.h.

◆ small

char reduct_atom_t::small[REDUCT_ATOM_SMALL_MAX]

The small string buffer.

Definition at line 51 of file atom.h.

◆ intrinsic

reduct_intrinsic_t reduct_atom_t::intrinsic

Cached intrinsic, item must have REDUCT_ITEM_FLAG_INTRINSIC.

Definition at line 52 of file atom.h.

◆ string

char* reduct_atom_t::string

Pointer to the string.

Definition at line 53 of file atom.h.

◆ integerValue

reduct_int64_t reduct_atom_t::integerValue

Pre-computed integer value, item must have REDUCT_ITEM_FLAG_INT_SHAPED.

Definition at line 55 of file atom.h.

◆ floatValue

reduct_float_t reduct_atom_t::floatValue

Pre-computed float value, item must have REDUCT_ITEM_FLAG_FLOAT_SHAPED.

Definition at line 56 of file atom.h.

◆ native

reduct_native_fn reduct_atom_t::native

Native function, item must have REDUCT_ITEM_FLAG_NATIVE.

Definition at line 57 of file atom.h.

◆ [union]

union { ... } reduct_atom_t

◆ next

struct reduct_atom* reduct_atom_t::next

Pointer to the next atom in the hash map.

Definition at line 59 of file atom.h.


The documentation for this struct was generated from the following file: