rizin/doc
NOT XVilka fbc0c2ccc1
type: add a pf-format to C-declaration converter (#6422)
format.c can already turn an RzType into a pf format string. Add the
inverse in the same file, next to its counterparts:
rz_type_format_to_c_declaration() parses a pf format string with
rz_pf_parse() and emits an equivalent C struct/union declaration built
from the standard fixed-width types (uint8_t, int32_t, float, ...).

The conversion is structural: it consumes only the parsed RzPfFormat
(field kinds, widths, array counts, pointer flags), never a byte buffer,
so it runs without any target data. Every field kind the engine produces
is mapped; a handful of specifiers with no exact static C form are mapped
best-effort (documented inline): @N alignment is dropped, an
unknown-length inline z string becomes char *, LEB128 widens to its
largest decoded integer, and ?(Name) / E(Name) emit struct/enum
references that must themselves be defined to parse.

Added new 'tdf' command that exposes that conversion to the user

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-05-30 00:29:06 +08:00
..
examples add RISC-V 32-bit env to CI (#6109) 2026-04-14 15:39:39 +08:00
img Update contact information of Rot127. (#5522) 2025-11-10 17:15:15 +00:00
asm_strings.md Document allowed macro usage. (#6060) 2026-03-22 11:46:14 +00:00
avr.md Remove old bash-based rz-pm (#3360) 2023-02-07 18:26:38 +08:00
calling-conventions.md Remove make leftovers (#1598) 2021-09-06 01:41:51 +02:00
crosscompile.md Delete some unneded documentation (#59) 2020-10-30 16:06:38 +01:00
debug-internals.md doc: fix various typos and documentation issues (#5771) 2026-01-10 21:33:54 +08:00
debug.md Fix old math commands (#3828) 2023-09-14 08:53:25 +08:00
esil.md Fix English in docs files and updated/removed some tips (#3299) 2023-01-17 19:49:38 +01:00
fortunes.fun Fix English in docs files and updated/removed some tips (#3299) 2023-01-17 19:49:38 +01:00
fortunes.tips librz/config: merge graph.offset into asm.offset (#5596) 2025-12-10 14:52:21 +08:00
gdb.md doc: fix various typos and documentation issues (#5771) 2026-01-10 21:33:54 +08:00
hud Fix old math commands (#3828) 2023-09-14 08:53:25 +08:00
PACKAGERS.md blake2 hash support (#5995) 2026-03-06 22:17:59 +08:00
pf.md type: add a pf-format to C-declaration converter (#6422) 2026-05-30 00:29:06 +08:00
register_profile.md Document the register profile in its own file. (#4575) 2024-07-30 22:40:48 +08:00
release-template.md doc: add release issue template (#3386) 2023-03-10 08:39:55 +00:00
RELEASE.md doc: add release issue template (#3386) 2023-03-10 08:39:55 +00:00
rzil.md [RzIL] Rewrite RzAnalysisRzil as RzAnalysisILVM with config 2022-01-17 16:50:40 +01:00
rzshell.md doc: fix various typos and documentation issues (#5771) 2026-01-10 21:33:54 +08:00
siol.md doc: fix various typos and documentation issues (#5771) 2026-01-10 21:33:54 +08:00
windbg.md Delete some unneded documentation (#59) 2020-10-30 16:06:38 +01:00