-
Is there a way to rename these types? I'd like them to be called |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
No, you can't rename built-in types. You can create an alias / typedef of them with whatever name you want. |
Beta Was this translation helpful? Give feedback.
-
The undefined datatypes are used to note an access of a size without knowing the real type, or the existence of a parameter without locking in the type. They are really placeholder types. The decompiler is free to propagate a type and replace the undefined with a good type for all undefined types. In addition, undefined types defined in memory can be replaced with a more specific type by algorithms. If the decompiler were to use uint8_t, that could be incorrect as the type might be signed. It all depends on the access. The decompiler will try to replace the type with a correct type based on the access or use. Absent any other type information than a size, especially when accessing through an unknown pointer type, the decompiler will display undefined. If the pointer points to a structure or class, the decompiler is more likely to use uint, char, byte, etc... as the type for local variables and parameters. There is a setting to disable type casts, which could help improve default display if you don't specify types for parameters which you could try as well. |
Beta Was this translation helpful? Give feedback.
The undefined datatypes are used to note an access of a size without knowing the real type, or the existence of a parameter without locking in the type. They are really placeholder types. The decompiler is free to propagate a type and replace the undefined with a good type for all undefined types. In addition, undefined types defined in memory can be replaced with a more specific type by algorithms.
If the decompiler were to use uint8_t, that could be incorrect as the type might be signed. It all depends on the access. The decompiler will try to replace the type with a correct type based on the access or use. Absent any other type information than a size, especially when accessing through…