Cthulhu  0.2.10
Cthulhu compiler collection
util.h File Reference
#include <ctu_util_api.h>
#include "core/compiler.h"
#include <stdbool.h>
#include <gmp.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  search_t
 
struct  decl_search_t
 

Functions

CT_UTIL_API void * util_select_decl (tree_t *sema, search_t search, const char *name)
 search for a declaration by name in a set of tags More...
 
CT_UTIL_API tree_tutil_search_namespace (tree_t *sema, search_t search, const node_t *node, const vector_t *path, bool *is_imported)
 search for a namespace given a path, ignoring the last element in the path More...
 
CT_UTIL_API tree_tutil_search_path (tree_t *sema, const decl_search_t *search, const node_t *node, vector_t *path)
 search for a decl given a path More...
 
CT_UTIL_API tree_tutil_search_qualified (tree_t *sema, const decl_search_t *search, const node_t *node, const char *mod, const char *name)
 search for a decl inside a module More...
 
CT_UTIL_API bool util_eval_digit (mpz_t value, const tree_t *expr)
 evaluate a digit expression More...