Files
rizin/subprojects
bubblepipe 912513fc6f heap: refactor parser for jemalloc 4.5.0 (#5722)
* replace size_t -> GHT, ssize_t -> GHST, void * -> GHT
* delete subprojects/rzheap/rz_jemalloc/jemalloc_* as they are included inside subprojects/rzheap/rz_jemalloc/jemalloc.h
* macro wrapper for jemalloc code

tested working for arena_run_t

echo '#include <rz_heap_jemalloc.h>' | gcc -E -I librz/include -I subprojects/rzheap -I build -x c - 2>&1 | grep arena_run_t

* replace all struct definition t inside GH(t)\
\
DIR="subprojects/rzheap/rz_jemalloc/internal"
SYMBOLS="symbols"
while read -r type; do
    [ -z "$type" ] && continue
    echo "Replacing: $type -> GH($type)"
    perl -pi -e "s/(?<!GH\()(?<![A-Za-z_])${type}(?![A-Za-z_0-9])/GH(${type})/g" "$DIR"/*.h
done < "$SYMBOLS"
2026-01-07 00:24:12 +08:00
..