Fix whitespace in Ghidra export script output

Functions with no arguments had a trailing tab.
This commit is contained in:
KeybadeBlox 2026-02-18 20:41:51 -05:00
parent e0313fa0ba
commit 0b10a02ad7
2 changed files with 362 additions and 362 deletions

View file

@ -70,14 +70,14 @@ public class EnhancedExport extends GhidraScript {
(f.isInline() ? "inline" : "notinline") + "\t" + (f.isInline() ? "inline" : "notinline") + "\t" +
Optional.ofNullable(f.getCallFixup()) Optional.ofNullable(f.getCallFixup())
.orElse("nofixup") + "\t" + .orElse("nofixup") + "\t" +
f.getName(true) + "\t" + f.getName(true) +
String.join( String.join(
"\t", "",
Arrays.stream(f.getSignature(true) Arrays.stream(f.getSignature(true)
.getArguments()) .getArguments())
.map(arg -> .map(arg ->
arg.getDataType().getDisplayName() + "\t" + "\t" + arg.getDataType().getDisplayName() +
arg.getName() "\t" + arg.getName()
).toArray(String[]::new) ).toArray(String[]::new)
) + ) +
(f.hasVarArgs() ? "\t..." : "") + "\n" (f.hasVarArgs() ? "\t..." : "") + "\n"

File diff suppressed because it is too large Load diff