CWB
Data Fields
_cl_lexhash_entry::_cl_lexhash_entry_data Struct Reference

This entry's data fields, i.e. More...

#include <cl.h>

Data Fields

void * pointer
 
double numeric
 
int integer
 

Detailed Description

This entry's data fields, i.e.

its payload. Use as entry->data.integer, entry->data.numeric, ... To improve the versatility of cl_lexhash, the payload is implemented as a struct rather than a union, so it can store two numbers and a pointer at the same time. This design was inspired by Perl, whose variables have multiple entries for scalar, array, hash, etc.

Field Documentation

int integer
double numeric

Referenced by cl_lexhash_add().

void* pointer

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