2022-11-20 17:28:46 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
source $(dirname $0)/env.sh
|
|
|
|
|
|
|
|
cd $LUNA_ROOT
|
|
|
|
|
2023-04-23 08:53:34 +00:00
|
|
|
source tools/sources.sh
|
|
|
|
|
|
|
|
SOURCES=($(printf -- '%s\n' "${SOURCES[@]}" | grep -v libc | grep -v "Types.h" | grep -v "bootboot.h"))
|
2022-11-20 17:28:46 +00:00
|
|
|
|
|
|
|
for f in ${SOURCES[@]}
|
|
|
|
do
|
2023-07-22 09:59:41 +00:00
|
|
|
sed -i 's/uint8_t /u8 /g' $f
|
|
|
|
sed -i 's/uint16_t /u16 /g' $f
|
|
|
|
sed -i 's/uint32_t /u32 /g' $f
|
|
|
|
sed -i 's/uint64_t /u64 /g' $f
|
2022-11-20 17:28:46 +00:00
|
|
|
|
2023-07-22 09:59:41 +00:00
|
|
|
sed -i 's/int8_t /i8 /g' $f
|
|
|
|
sed -i 's/int16_t /i16 /g' $f
|
|
|
|
sed -i 's/int32_t /i32 /g' $f
|
|
|
|
sed -i 's/int64_t /i64 /g' $f
|
2022-11-20 17:28:46 +00:00
|
|
|
|
2023-07-22 09:59:41 +00:00
|
|
|
sed -i 's/size_t /usize /g' $f
|
|
|
|
sed -i 's/ssize_t /isize /g' $f
|
2023-03-10 20:30:59 +00:00
|
|
|
done
|