rizin/subprojects
Anton Kochkov 3c59df7e98
Refactor RzTypes to use structs instead of SDB + New Tree-Sitter based C Parser (#1047)
- Removed oldshell version of `t` (types) commands
- Removed `tk` command because types storage switched to the hashtable
- Added `tfc` command to show the calling convention of the function or set it
- Added `tsl` (RZ_OUTPUT_MODE_LONG) to show structure members' sizes and offsets
- Added `tul` (RZ_OUTPUT_MODE_LONG) to show union members' sizes
- Switched the types storage to the hashtable instead of SDB
- Added load and export from/to SDB for standard type libraries and serialization for Projects
- Changed all `char *type` occurences to the proper `RzType`
- Added `RzCallable` type for the function/class method types
- Changed all function types API to use the `RzCallable` API
- Switched the function types (`RzCallable`) storage to the hashtable instead of SDB
- Added a connection between `RzAnalysisFunction` and `RzCallable` - `rz_analysis_function_derive_type()` API function to derive new `RzCallable` type from the `RzAnalysisFunction` even if it doesn't exist in the RzTypeDB.
- Moved type links to the RzAnalysis where they belong
- Removed TCC and MPC-based parsers
- Added Tree-Sitter-based parser for C grammar (see `librz/type/parser/*`)
- Reworked type databases in `librz/analysis/d/` to be consistent with C standard, libc, platform-specific definitions
- Switched the type links from `char *` to `RzType`
- Switched the type links from SDB to the hashtable
- Added concept of the "type paths", e.g. `a.b[20].c` where `b` is a member of `a` (`a` is either structure or a union) and `c` is a member of `b`, and `b` is an array where we take 20-th element.
- Added concept of the typeclasses (a bit similar to Haskell) for numerical types: `None` (the most generic one), `Num` (includes `Integral` and `Floating`), `Integral` (includes `Signed Integral` and `Unsigned Integral`), `Floating`.
- Added concept of type equality (`rz_types_equal(a, b)` API function)
- Added Doxygen documentation to every API function in the `librz/type/*`.
- Updated the project format from **V2** to **V3**, added migration.
2021-07-20 01:46:45 +08:00
..
mpc Move mpc to subprojects: keep it in-repo because small (#599) 2021-02-13 05:57:14 +08:00
packagefiles Refactor RzTypes to use structs instead of SDB + New Tree-Sitter based C Parser (#1047) 2021-07-20 01:46:45 +08:00
xxhash SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
yxml SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
capstone-bundled.wrap Update capstone-bundled for warning-free asan build (#1127) 2021-05-13 22:32:28 +08:00
capstone-next.wrap
capstone-v3.wrap
capstone-v4.wrap
libuv.wrap Move libuv to meson subproject wrap 2021-02-12 11:08:51 +08:00
libzip.wrap libzip.wrap: add fallback url (#1116) 2021-05-09 11:47:03 +02:00
lz4.wrap Move lz4 to meson subproject wrap 2021-02-12 11:08:51 +08:00
sdb.wrap Update SDB subproject 2021-07-08 14:42:44 +02:00
tree-sitter-c.wrap Refactor RzTypes to use structs instead of SDB + New Tree-Sitter based C Parser (#1047) 2021-07-20 01:46:45 +08:00
tree-sitter.wrap Update rizin-shell-parser to tree-sitter 0.19.4 (#928) 2021-03-29 19:14:16 +02:00
zlib.wrap Get zlib using https (#601) 2021-02-12 21:33:19 +08:00