Cthulhu  0.2.10
Cthulhu compiler collection
typeinfo.c File Reference
#include "std/typeinfo.h"
#include "base/util.h"
#include "common.h"
Include dependency graph for typeinfo.c:

Go to the source code of this file.

Functions

size_t info_ptr_hash (const void *key)
 
bool info_ptr_equal (const void *lhs, const void *rhs)
 
size_t info_str_hash (const void *key)
 
bool info_str_equal (const void *lhs, const void *rhs)
 
size_t info_text_hash (const void *key)
 
bool info_text_equal (const void *lhs, const void *rhs)
 

Variables

const hash_info_t kTypeInfoString
 type information for a c style string More...
 
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...
 
const hash_info_t kTypeInfoText
 type information for a text_view_t More...
 

Function Documentation

◆ info_ptr_equal()

bool info_ptr_equal ( const void *  lhs,
const void *  rhs 
)

Definition at line 10 of file typeinfo.c.

◆ info_ptr_hash()

size_t info_ptr_hash ( const void *  key)

Definition at line 9 of file typeinfo.c.

◆ info_str_equal()

bool info_str_equal ( const void *  lhs,
const void *  rhs 
)

Definition at line 14 of file typeinfo.c.

◆ info_str_hash()

size_t info_str_hash ( const void *  key)

Definition at line 12 of file typeinfo.c.

◆ info_text_equal()

bool info_text_equal ( const void *  lhs,
const void *  rhs 
)

Definition at line 28 of file typeinfo.c.

◆ info_text_hash()

size_t info_text_hash ( const void *  key)

Definition at line 22 of file typeinfo.c.