diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-02-20 21:58:55 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-11-06 16:10:47 -0500 |
| commit | 4108964609171327618627477163339656037111 (patch) | |
| tree | 79f4c6da6394b973cee05cc42b6edd7e2e20909d /typeprinter.cpp | |
| parent | b270d7ebe1e2a406e1f7f14807987d24b0c4a846 (diff) | |
Type Containers
Diffstat (limited to 'typeprinter.cpp')
| -rw-r--r-- | typeprinter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/typeprinter.cpp b/typeprinter.cpp index 3242f323..036c7c18 100644 --- a/typeprinter.cpp +++ b/typeprinter.cpp @@ -101,13 +101,13 @@ bool TypePrinter::GetTypeStringAfterNameCallback(void* ctxt, BNType* type, } -bool TypePrinter::GetTypeLinesCallback(void* ctxt, BNType* type, BNBinaryView* data, +bool TypePrinter::GetTypeLinesCallback(void* ctxt, BNType* type, BNTypeContainer* types, BNQualifiedName* name, int lineWidth, bool collapsed, BNTokenEscapingType escaping, BNTypeDefinitionLine** result, size_t* resultCount) { TypePrinter* printer = (TypePrinter*)ctxt; vector<TypeDefinitionLine> lines = printer->GetTypeLines( - new Type(BNNewTypeReference(type)), new BinaryView(BNNewViewReference(data)), + new Type(BNNewTypeReference(type)), TypeContainer(types), QualifiedName::FromAPIObject(name), lineWidth, collapsed, escaping); *resultCount = lines.size(); @@ -433,7 +433,7 @@ std::string CoreTypePrinter::GetTypeStringAfterName(Ref<Type> type, Ref<Platform std::vector<TypeDefinitionLine> CoreTypePrinter::GetTypeLines(Ref<Type> type, - Ref<BinaryView> data, const QualifiedName& name, int lineWidth, + const TypeContainer& types, const QualifiedName& name, int lineWidth, bool collapsed, BNTokenEscapingType escaping) { BNTypeDefinitionLine* lines; @@ -441,7 +441,8 @@ std::vector<TypeDefinitionLine> CoreTypePrinter::GetTypeLines(Ref<Type> type, BNQualifiedName qname = name.GetAPIObject(); - bool success = BNGetTypePrinterTypeLines(GetObject(), type->GetObject(), data->GetObject(), &qname, lineWidth, collapsed, escaping, &lines, &lineCount); + bool success = BNGetTypePrinterTypeLines(GetObject(), type->GetObject(), types.GetObject(), &qname, + lineWidth, collapsed, escaping, &lines, &lineCount); QualifiedName::FreeAPIObject(&qname); if (!success) |
