Skip to content

Commit 185a77b

Browse files
committed
Update gutter width, tag token as a constant
1 parent 39ec579 commit 185a77b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

binaryninjacore.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070

7171
#define BN_INVALID_EXPR ((size_t)-1)
7272

73-
#define BN_MAX_STRING_LENGTH 128
73+
#define BN_MAX_STRING_LENGTH 128
74+
75+
#define BN_TAG_TOKEN_WIDTH 5
7476

7577
#define LLVM_SVCS_CB_NOTE 0
7678
#define LLVM_SVCS_CB_WARNING 1

python/binaryview.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3479,7 +3479,10 @@ def tag_types(self):
34793479
for i in range(0, count.value):
34803480
tag = TagType(core.BNNewTagTypeReference(types[i]))
34813481
if tag.name in result:
3482-
result[tag.name] = [result[tag.name], tag]
3482+
if type(result[tag.name]) == list:
3483+
result[tag.name].append(tag)
3484+
else:
3485+
result[tag.name] = [result[tag.name], tag]
34833486
else:
34843487
result[tag.name] = tag
34853488
core.BNFreeTagTypeList(types, count.value)

ui/linearview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define LINEAR_VIEW_UPDATE_CHECK_INTERVAL 200
1414
#define MAX_STRING_TYPE_LENGTH 1048576
15-
#define EDGE_GUTTER_WIDTH 4
15+
#define EDGE_GUTTER_WIDTH 5
1616

1717
struct BINARYNINJAUIAPI LinearViewCursorPosition: public BinaryNinja::LinearDisassemblyPosition
1818
{

0 commit comments

Comments
 (0)