Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util/rz_annotated_code.h>
#include <rz_util.h>
#include <rz_core.h>
#include <rz_types.h>
#include <rz_vector.h>
Go to the source code of this file.
Macros | |
#define | PALETTE(x) (cons && cons->context->pal.x) ? cons->context->pal.x |
#define | PRINT_COLOR(x) |
Functions | |
RZ_API void | rz_core_annotated_code_print_json (RzAnnotatedCode *code) |
static void | print_offset_in_binary_line_bar (RzAnnotatedCode *code, ut64 offset, size_t width) |
RZ_API void | rz_core_annotated_code_print (RzAnnotatedCode *code, RzVector *line_offsets) |
static bool | foreach_offset_annotation (void *user, const ut64 offset, const void *val) |
RZ_API void | rz_core_annotated_code_print_comment_cmds (RzAnnotatedCode *code) |
Definition at line 97 of file cannotated_code.c.
#define PRINT_COLOR | ( | x | ) |
Definition at line 98 of file cannotated_code.c.
Definition at line 261 of file cannotated_code.c.
References rz_code_annotation_t::end, free(), rz_code_annotation_t::offset, PFMT64x, rz_base64_encode_dyn(), rz_cons_printf(), rz_code_annotation_t::start, and val.
Referenced by rz_core_annotated_code_print_comment_cmds().
|
static |
width | maximum nibbles per address |
Definition at line 108 of file cannotated_code.c.
References Color_GREEN, Color_RESET, PALETTE, PFMT64x, PRINT_COLOR, rz_cons_printf(), rz_cons_singleton(), UT64_MAX, and width.
Referenced by rz_core_annotated_code_print().
RZ_API void rz_core_annotated_code_print | ( | RzAnnotatedCode * | code, |
RzVector * | line_offsets | ||
) |
Definition at line 145 of file cannotated_code.c.
References color, Color_BLUE, Color_MAGENTA, Color_RED, Color_RESET, Color_WHITE, Color_YELLOW, rz_code_annotation_t::end, create_tags_rz::fname, len, num, PALETTE, PRINT_COLOR, print_offset_in_binary_line_bar(), RZ_CODE_ANNOTATION_TYPE_SYNTAX_HIGHLIGHT, rz_cons_printf(), rz_cons_singleton(), RZ_SYNTAX_HIGHLIGHT_TYPE_COMMENT, RZ_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE, RZ_SYNTAX_HIGHLIGHT_TYPE_DATATYPE, RZ_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME, RZ_SYNTAX_HIGHLIGHT_TYPE_KEYWORD, rz_vector_foreach, rz_vector_index_ptr(), rz_code_annotation_t::start, rz_code_annotation_t::syntax_highlight, rz_code_annotation_t::type, ut64(), and UT64_MAX.
RZ_API void rz_core_annotated_code_print_comment_cmds | ( | RzAnnotatedCode * | code | ) |
Definition at line 271 of file cannotated_code.c.
References rz_code_annotation_t::end, foreach_offset_annotation(), NULL, rz_code_annotation_t::offset, RZ_CODE_ANNOTATION_TYPE_OFFSET, rz_vector_foreach, rz_code_annotation_t::start, and rz_code_annotation_t::type.
RZ_API void rz_core_annotated_code_print_json | ( | RzAnnotatedCode * | code | ) |
Definition at line 10 of file cannotated_code.c.
References rz_code_annotation_t::end, NULL, rz_code_annotation_t::offset, pj_a(), pj_end(), pj_free(), pj_k(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_code_annotation_t::reference, RZ_CODE_ANNOTATION_TYPE_CONSTANT_VARIABLE, RZ_CODE_ANNOTATION_TYPE_FUNCTION_NAME, RZ_CODE_ANNOTATION_TYPE_FUNCTION_PARAMETER, RZ_CODE_ANNOTATION_TYPE_GLOBAL_VARIABLE, RZ_CODE_ANNOTATION_TYPE_LOCAL_VARIABLE, RZ_CODE_ANNOTATION_TYPE_OFFSET, RZ_CODE_ANNOTATION_TYPE_SYNTAX_HIGHLIGHT, rz_cons_printf(), RZ_SYNTAX_HIGHLIGHT_TYPE_COMMENT, RZ_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE, RZ_SYNTAX_HIGHLIGHT_TYPE_DATATYPE, RZ_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME, RZ_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_PARAMETER, RZ_SYNTAX_HIGHLIGHT_TYPE_GLOBAL_VARIABLE, RZ_SYNTAX_HIGHLIGHT_TYPE_KEYWORD, RZ_SYNTAX_HIGHLIGHT_TYPE_LOCAL_VARIABLE, rz_vector_foreach, rz_code_annotation_t::start, rz_code_annotation_t::syntax_highlight, rz_code_annotation_t::type, ut64(), and rz_code_annotation_t::variable.