diff --git a/README.md b/README.md index 66f417d..91d5306 100644 --- a/README.md +++ b/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) diff --git a/base-index.html b/base-index.html index 8049732..2e9d5dd 100644 --- a/base-index.html +++ b/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; diff --git a/index.html b/index.html index 19389a4..faa1e21 100644 --- a/index.html +++ b/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; @@ -141,4 +142,4 @@ -
char type[64]
...[32]
char name[64]
...[32]
ssize_t size
ssize_t align
bool isBitfield
char name[64]
...[32]
char alias[64]
...[32]
char* filename
int lineNumber
ssize_t size
?
struct Declaration declarations[16]
...
int numDeclarations
unsigned int length
unsigned int capacity
void* data
struct TableEntry* next
?
char key TABLE_KEY_SIZE
...
ssize_t size
ssize_t align
TableEntry** entries
char* input_stream
char* eof
char* parse_point
char* string_storage
int string_storage_len
char* where_firstchar
char* where_lastchar
long token
double real_number
long int_number
char* string
int string_len
int line_number
int line_offset
\ No newline at end of file +
char type[64]
char name[64]
ssize_t size
ssize_t align
bool isBitfield
char name[64]
char alias[64]
char* filename
int lineNumber
ssize_t size
?
struct Declaration declarations[16]
...
int numDeclarations
unsigned int length
unsigned int capacity
void* data
struct TableEntry* next
?
char key TABLE_KEY_SIZE
...
ssize_t size
ssize_t align
TableEntry** entries
char* input_stream
char* eof
char* parse_point
char* string_storage
int string_storage_len
char* where_firstchar
char* where_lastchar
long token
double real_number
long int_number
char* string
int string_len
int line_number
int line_offset
\ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..a8c6649 Binary files /dev/null and b/screenshot.png differ diff --git a/visualization.h b/visualization.h index fc651a4..2d28911 100644 --- a/visualization.h +++ b/visualization.h @@ -62,9 +62,9 @@ static void outputHtml() { "" "" , positionClass, decl->type, decl->name); - } else if (truncate32 && b == 32) { - sb_concatf("
...[%ld]
", decl->size - b); - break; + //} else if (truncate32 && b == 32) { + // sb_concatf("
...[%ld]
", decl->size - b); + // break; } else { sb_concatf("%s", "
");