Cthulhu
0.2.10
Cthulhu compiler collection
|
#include "common.h"
#include "core/text.h"
#include "format/notify.h"
#include "notify/notify.h"
#include <stddef.h>
Go to the source code of this file.
Functions | |
severity_t | get_severity (const diagnostic_t *diag, bool override_fatal) |
const char * | get_severity_name (severity_t severity) |
colour_t | get_severity_colour (severity_t severity) |
typevec_t * | all_segments_in_scan (const typevec_t *segments, const node_t *node, arena_t *arena) |
void | segments_sort (typevec_t *segments) |
size_t | get_line_number (file_config_t config, const node_t *node) |
bool | node_has_line (const node_t *node) |
cache_map_t * | cache_map_new (size_t size, arena_t *arena) |
void | cache_map_delete (cache_map_t *map) |
text_cache_t * | cache_emplace_file (cache_map_t *map, const char *path) |
text_cache_t * | cache_emplace_scan (cache_map_t *map, const scan_t *scan) |
text_view_t | cache_get_line (text_cache_t *cache, size_t line) |
size_t | cache_count_lines (text_cache_t *cache) |
text_t | cache_escape_line (text_cache_t *cache, size_t line, const colour_pallete_t *colours, size_t column_limit) |
char * | fmt_node_location (source_config_t config, const node_t *node) |
typevec_t* all_segments_in_scan | ( | const typevec_t * | segments, |
const node_t * | node, | ||
arena_t * | arena | ||
) |
Definition at line 95 of file common_extra.c.
size_t cache_count_lines | ( | text_cache_t * | cache | ) |
Definition at line 327 of file common_extra.c.
text_cache_t* cache_emplace_file | ( | cache_map_t * | map, |
const char * | path | ||
) |
Definition at line 275 of file common_extra.c.
text_cache_t* cache_emplace_scan | ( | cache_map_t * | map, |
const scan_t * | scan | ||
) |
Definition at line 295 of file common_extra.c.
text_t cache_escape_line | ( | text_cache_t * | cache, |
size_t | line, | ||
const colour_pallete_t * | colours, | ||
size_t | column_limit | ||
) |
Definition at line 355 of file common_extra.c.
text_view_t cache_get_line | ( | text_cache_t * | cache, |
size_t | line | ||
) |
Definition at line 310 of file common_extra.c.
void cache_map_delete | ( | cache_map_t * | map | ) |
Definition at line 262 of file common_extra.c.
cache_map_t* cache_map_new | ( | size_t | size, |
arena_t * | arena | ||
) |
Definition at line 251 of file common_extra.c.
char* fmt_node_location | ( | source_config_t | config, |
const node_t * | node | ||
) |
version 2 of the common stuff
Definition at line 530 of file common_extra.c.
size_t get_line_number | ( | file_config_t | config, |
const node_t * | node | ||
) |
Definition at line 121 of file common_extra.c.
severity_t get_severity | ( | const diagnostic_t * | diag, |
bool | override_fatal | ||
) |
Definition at line 30 of file common_extra.c.
colour_t get_severity_colour | ( | severity_t | severity | ) |
Definition at line 52 of file common_extra.c.
const char* get_severity_name | ( | severity_t | severity | ) |
Definition at line 38 of file common_extra.c.
bool node_has_line | ( | const node_t * | node | ) |
Definition at line 129 of file common_extra.c.
void segments_sort | ( | typevec_t * | segments | ) |
Definition at line 90 of file common_extra.c.