special-patch
謎のソースコードの書き換えツール
現在の機能:
NULL
を(NULL)
に置換する- 文字列の中にあるシングルクォートをバックスラッシュでエスケープする
--preprocessor
: プリプロセッサが出力したソースコードに置き換える
適用対象の指定方法:
[FILES]
: 適用対象のファイルを指定--compile-commands
:compile_commands.json
に出現するソースコードファイルに対して一括適用
How to install
cargo install --git https://github.com/K-atc/special-patch.git --bins --all-features
Or manually git clone and:
cargo install --path . --bins --all-features
How to use
git -C ../magma-v1.2/targets/openssl/repo reset --hard && cargo run -- --preprocessor --compile-commands ../magma-v1.2/targets/openssl/repo/compile_commands.json