churchianity 2 years ago
parent
commit
bfa0b97ecd
  1. 1
      README.md
  2. 1
      base-index.html
  3. 3
      index.html
  4. BIN
      screenshot.png
  5. 6
      visualization.h

1
README.md

@ -5,3 +5,4 @@ It is a CLI application. Given a list of files or a folder it will parse all the
I'd like to support bitfields, attribute noalign, __randomize_layout, C++, other languages, and have better/more useful tools for doing things like sorting them by size, showing you where you can trivially make your structures smaller, etc. and more in the future.
![screenshot](https://git.nickhayashi.com/nickhayashi/struct-vis/screenshot.png)

1
base-index.html

@ -80,6 +80,7 @@
.struct-info-byte-row {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: flex-start;
align-items: center;

3
index.html
File diff suppressed because it is too large
View File

BIN
screenshot.png

After

Width: 1955  |  Height: 1069  |  Size: 120 KiB

6
visualization.h

@ -62,9 +62,9 @@ static void outputHtml() {
"</div>"
"</div>"
, positionClass, decl->type, decl->name);
} else if (truncate32 && b == 32) {
sb_concatf("<div class='struct-info-byte struct-info-byte-counted-ellipsis'>...[%ld]</div>", decl->size - b);
break;
//} else if (truncate32 && b == 32) {
// sb_concatf("<div class='struct-info-byte struct-info-byte-counted-ellipsis'>...[%ld]</div>", decl->size - b);
// break;
} else {
sb_concatf("%s", "<div class='struct-info-byte'></div>");

Loading…
Cancel
Save