diff options
| author | Glenn Smith <glenn@vector35.com> | 2019-10-29 17:57:10 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2020-01-16 01:06:45 -0500 |
| commit | 185a77b28a90335a201e27c9cb949ce2d45a183e (patch) | |
| tree | 138c9a98f0d23e6dc8ffe7fcf9786e6b3383f602 | |
| parent | 39ec57947875e6f0f18051f0a9211119fc925ffe (diff) | |
Update gutter width, tag token as a constant
| -rw-r--r-- | binaryninjacore.h | 4 | ||||
| -rw-r--r-- | python/binaryview.py | 5 | ||||
| -rw-r--r-- | ui/linearview.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index e939d827..c4c4492c 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -70,7 +70,9 @@ #define BN_INVALID_EXPR ((size_t)-1) -#define BN_MAX_STRING_LENGTH 128 +#define BN_MAX_STRING_LENGTH 128 + +#define BN_TAG_TOKEN_WIDTH 5 #define LLVM_SVCS_CB_NOTE 0 #define LLVM_SVCS_CB_WARNING 1 diff --git a/python/binaryview.py b/python/binaryview.py index d0b0ac4f..146c2394 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3479,7 +3479,10 @@ class BinaryView(object): for i in range(0, count.value): tag = TagType(core.BNNewTagTypeReference(types[i])) if tag.name in result: - result[tag.name] = [result[tag.name], tag] + if type(result[tag.name]) == list: + result[tag.name].append(tag) + else: + result[tag.name] = [result[tag.name], tag] else: result[tag.name] = tag core.BNFreeTagTypeList(types, count.value) diff --git a/ui/linearview.h b/ui/linearview.h index 53e8802c..1081d744 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -12,7 +12,7 @@ #define LINEAR_VIEW_UPDATE_CHECK_INTERVAL 200 #define MAX_STRING_TYPE_LENGTH 1048576 -#define EDGE_GUTTER_WIDTH 4 +#define EDGE_GUTTER_WIDTH 5 struct BINARYNINJAUIAPI LinearViewCursorPosition: public BinaryNinja::LinearDisassemblyPosition { |
