From dee5ec2803314215b2867a8e63b89ddffda77fcc Mon Sep 17 00:00:00 2001 From: Rot127 Date: Tue, 13 Feb 2024 02:01:02 -0500 Subject: [PATCH] Add combination of flags, to make usage easier in Rust. --- librz/include/rz_util/rz_graph_drawable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/librz/include/rz_util/rz_graph_drawable.h b/librz/include/rz_util/rz_graph_drawable.h index 8d836c24cc2..bd5e9bfb34e 100644 --- a/librz/include/rz_util/rz_graph_drawable.h +++ b/librz/include/rz_util/rz_graph_drawable.h @@ -25,6 +25,9 @@ typedef enum { RZ_GRAPH_NODE_SUBTYPE_CFG_RETURN = 1 << 2, ///< A return node of the procedure. RZ_GRAPH_NODE_SUBTYPE_CFG_EXIT = 1 << 3, ///< A node which exits the program (precedure does not return). RZ_GRAPH_NODE_SUBTYPE_CFG_COND = 1 << 4, ///< A conditional instruction node. + RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY_CALL = RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY | RZ_GRAPH_NODE_SUBTYPE_CFG_CALL, + RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY_RETURN = RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY | RZ_GRAPH_NODE_SUBTYPE_CFG_RETURN, + RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY_EXIT = RZ_GRAPH_NODE_SUBTYPE_CFG_ENTRY | RZ_GRAPH_NODE_SUBTYPE_CFG_EXIT, RZ_GRAPH_NODE_SUBTYPE_ICFG_MALLOC = 1 << 5, ///< Node represents a memory allocating procedure. } RzGraphNodeSubType;