Cthulhu  0.2.10
Cthulhu compiler collection
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Type information

Type information. More...

Collaboration diagram for Type information:

Data Structures

struct  hash_info_t
 information for using a type in a hashset or hashmap More...
 

Typedefs

typedef ctu_hash_t(* hash_fn_t) (const void *key)
 hash an object pointed to by key More...
 
typedef bool(* equals_fn_t) (const void *lhs, const void *rhs)
 compare two objects pointed to by lhs and rhs More...
 

Variables

CT_STD_API const hash_info_t kTypeInfoString
 type information for a c style string More...
 
CT_STD_API const hash_info_t kTypeInfoPtr
 type information for a generic pointer this operates on the pointer itself and not the data it points to More...
 
CT_STD_API const hash_info_t kTypeInfoText
 type information for a text_view_t More...
 

Detailed Description

Type information.

Typedef Documentation

◆ equals_fn_t

typedef bool(* equals_fn_t) (const void *lhs, const void *rhs)

compare two objects pointed to by lhs and rhs

Parameters
lhsthe left hand side of the comparison
rhsthe right hand side of the comparison
Return values
trueif lhs and rhs are equal
falseotherwise

Definition at line 35 of file typeinfo.h.

◆ hash_fn_t

typedef ctu_hash_t(* hash_fn_t) (const void *key)

hash an object pointed to by key

Parameters
keythe object to hash
Returns
the hash of key

Definition at line 26 of file typeinfo.h.

Variable Documentation

◆ kTypeInfoPtr

CT_STD_API const hash_info_t kTypeInfoPtr
extern

type information for a generic pointer this operates on the pointer itself and not the data it points to

Definition at line 41 of file typeinfo.c.

◆ kTypeInfoString

CT_STD_API const hash_info_t kTypeInfoString
extern

type information for a c style string

Definition at line 35 of file typeinfo.c.

◆ kTypeInfoText

CT_STD_API const hash_info_t kTypeInfoText
extern

type information for a text_view_t

Definition at line 47 of file typeinfo.c.