tools: Make replace-stdint.sh replace types only if they're followed by a space
All checks were successful
continuous-integration/drone/push Build is passing

Otherwise, size_to_read -> usizeo_read.
This commit is contained in:
apio 2023-07-22 11:59:41 +02:00
parent 098109f16b
commit 759fb4fe0e
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -11,16 +11,16 @@ SOURCES=($(printf -- '%s\n' "${SOURCES[@]}" | grep -v libc | grep -v "Types.h" |
for f in ${SOURCES[@]} for f in ${SOURCES[@]}
do do
sed -i 's/uint8_t/u8/g' $f sed -i 's/uint8_t /u8 /g' $f
sed -i 's/uint16_t/u16/g' $f sed -i 's/uint16_t /u16 /g' $f
sed -i 's/uint32_t/u32/g' $f sed -i 's/uint32_t /u32 /g' $f
sed -i 's/uint64_t/u64/g' $f sed -i 's/uint64_t /u64 /g' $f
sed -i 's/int8_t/i8/g' $f sed -i 's/int8_t /i8 /g' $f
sed -i 's/int16_t/i16/g' $f sed -i 's/int16_t /i16 /g' $f
sed -i 's/int32_t/i32/g' $f sed -i 's/int32_t /i32 /g' $f
sed -i 's/int64_t/i64/g' $f sed -i 's/int64_t /i64 /g' $f
sed -i 's/size_t/usize/g' $f sed -i 's/size_t /usize /g' $f
sed -i 's/ssize_t/isize/g' $f sed -i 's/ssize_t /isize /g' $f
done done