mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 08:12:44 +00:00
* Also skip "union" to get type
This commit is contained in:
parent
e915bfa2db
commit
87079ea21c
@ -124,6 +124,8 @@ R_API int r_type_get_bitsize(Sdb *TDB, const char *type) {
|
||||
const char *tmptype;
|
||||
if (!strncmp (type, "struct ", 7)) {
|
||||
tmptype = type + 7;
|
||||
} else if (!strncmp (type, "union ", 6)) {
|
||||
tmptype = type + 6;
|
||||
} else {
|
||||
tmptype = type;
|
||||
}
|
||||
|
@ -983,7 +983,7 @@ static void struct_decl(CType *type, int u) {
|
||||
goto do_decl;
|
||||
}
|
||||
} else {
|
||||
static char buf[STRING_MAX_SIZE + 1];
|
||||
char buf[STRING_MAX_SIZE + 1];
|
||||
v = anon_sym++;
|
||||
snprintf (buf, sizeof(buf), "%u", v - SYM_FIRST_ANOM);
|
||||
name = buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user