@@ -29,10 +29,10 @@ static const char *mousemodes[] = {
29
29
#define DEFAULT_SPEED 1
30
30
#define PAGEKEY_SPEED (h / 2)
31
31
/* 15 */
32
- #define SMALLNODE_TEXT_CUR "<@@@@@@>"
33
- #define SMALLNODE_MIN_WIDTH 8
34
- #define SMALLNODE_TITLE_LEN 4
35
- #define SMALLNODE_CENTER_X 3
32
+ #define MINIGRAPH_NODE_TEXT_CUR "<@@@@@@>"
33
+ #define MINIGRAPH_NODE_MIN_WIDTH 8
34
+ #define MINIGRAPH_NODE_TITLE_LEN 4
35
+ #define MINIGRAPH_NODE_CENTER_X 3
36
36
#define MININODE_MIN_WIDTH 16
37
37
38
38
#define ZOOM_STEP 10
@@ -124,7 +124,7 @@ static const char *mode2str(const RAGraph *g, const char *prefix) {
124
124
const char * submode ;
125
125
126
126
if (is_mini (g )) {
127
- submode = "SMALL " ;
127
+ submode = "MINI " ;
128
128
} else if (is_offset (g )) {
129
129
submode = "OFF" ;
130
130
} else if (is_summary (g )) {
@@ -154,16 +154,16 @@ static char *get_title(ut64 addr) {
154
154
155
155
static int agraph_refresh (struct agraph_refresh_data * grd );
156
156
157
- static void update_node_dimension (const RGraph * g , int is_small , int zoom ) {
157
+ static void update_node_dimension (const RGraph * g , int is_mini , int zoom ) {
158
158
const RList * nodes = r_graph_get_nodes (g );
159
159
RGraphNode * gn ;
160
160
RListIter * it ;
161
161
RANode * n ;
162
162
163
163
graph_foreach_anode (nodes , it , gn , n ) {
164
- if (is_small ) {
164
+ if (is_mini ) {
165
165
n -> h = 1 ;
166
- n -> w = SMALLNODE_MIN_WIDTH ;
166
+ n -> w = MINIGRAPH_NODE_MIN_WIDTH ;
167
167
} else if (n -> is_mini ) {
168
168
n -> h = 1 ;
169
169
n -> w = MININODE_MIN_WIDTH ;
@@ -187,27 +187,27 @@ static void update_node_dimension(const RGraph *g, int is_small, int zoom) {
187
187
}
188
188
}
189
189
190
- static void small_RANode_print (const RAGraph * g , const RANode * n ,
190
+ static void mini_RANode_print (const RAGraph * g , const RANode * n ,
191
191
int cur , bool print_details ) {
192
192
char title [TITLE_LEN ];
193
193
int x , delta_x = 0 ;
194
194
195
- if (!G (n -> x + SMALLNODE_CENTER_X , n -> y ) &&
196
- !G (n -> x + SMALLNODE_CENTER_X + n -> w , n -> y )) {
195
+ if (!G (n -> x + MINIGRAPH_NODE_CENTER_X , n -> y ) &&
196
+ !G (n -> x + MINIGRAPH_NODE_CENTER_X + n -> w , n -> y )) {
197
197
return ;
198
198
}
199
199
200
- x = n -> x + SMALLNODE_CENTER_X + g -> can -> sx ;
200
+ x = n -> x + MINIGRAPH_NODE_CENTER_X + g -> can -> sx ;
201
201
if (x < 0 ) {
202
202
delta_x = - x ;
203
203
}
204
- if (!G (n -> x + SMALLNODE_CENTER_X + delta_x , n -> y )) {
204
+ if (!G (n -> x + MINIGRAPH_NODE_CENTER_X + delta_x , n -> y )) {
205
205
return ;
206
206
}
207
207
208
208
if (print_details ) {
209
209
if (cur ) {
210
- W (& SMALLNODE_TEXT_CUR [delta_x ]);
210
+ W (& MINIGRAPH_NODE_TEXT_CUR [delta_x ]);
211
211
(void ) G (- g -> can -> sx , - g -> can -> sy + 2 );
212
212
snprintf (title , sizeof (title ) - 1 ,
213
213
"[ %s ]" , n -> title );
@@ -220,8 +220,8 @@ static void small_RANode_print(const RAGraph *g, const RANode *n,
220
220
int l = strlen (n -> title );
221
221
222
222
str = n -> title ;
223
- if (l > SMALLNODE_TITLE_LEN ) {
224
- str += l - SMALLNODE_TITLE_LEN ;
223
+ if (l > MINIGRAPH_NODE_TITLE_LEN ) {
224
+ str += l - MINIGRAPH_NODE_TITLE_LEN ;
225
225
}
226
226
}
227
227
snprintf (title , sizeof (title ) - 1 , "__%s__" , str );
@@ -2258,7 +2258,7 @@ static void agraph_update_seek(RAGraph *g, RANode *n, int force) {
2258
2258
static void agraph_print_node (const RAGraph * g , RANode * n ) {
2259
2259
const int cur = g -> curnode && get_anode (g -> curnode ) == n ;
2260
2260
if (is_mini (g ) || n -> is_mini ) {
2261
- small_RANode_print (g , n , cur , is_mini (g ));
2261
+ mini_RANode_print (g , n , cur , is_mini (g ));
2262
2262
} else {
2263
2263
normal_RANode_print (g , n , cur );
2264
2264
}
0 commit comments