mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-13 01:30:55 +00:00
fix header file filtering
This commit is contained in:
parent
ead3ac1ad6
commit
ee2ce6a1b0
@ -5,17 +5,51 @@ OUT=$2
|
|||||||
export LANG=en
|
export LANG=en
|
||||||
|
|
||||||
for file in $(cd $IN; ls *.h); do
|
for file in $(cd $IN; ls *.h); do
|
||||||
case file in
|
# Filter by file names.
|
||||||
errno.h|fcntl.h|fenv.h|fstream.h|handler.h|headers.h|FSpio.h)
|
# Some CIncludes packages include the MPW standard library.
|
||||||
|
# Header files from that standard library would overwrite
|
||||||
|
# newlib header files and stop things from working.
|
||||||
|
case $file in
|
||||||
|
# Apple/MPW standard library internals
|
||||||
|
*Def.h|FSpio.h)
|
||||||
|
USE=false
|
||||||
;;
|
;;
|
||||||
ioctl.h|iomanip.h|iostream.h|limits.h|locale.h|math.h|new.h)
|
|
||||||
|
# whitelist all uppercase headers
|
||||||
|
[A-Z]*.h)
|
||||||
|
USE=true
|
||||||
;;
|
;;
|
||||||
sejmp.h|signal.h|std*.h|string.h|strstream.h|time.h|typeinfo.h)
|
|
||||||
|
# whitelist OpenTransport
|
||||||
|
cred.h|dlpi.h|miioccom.h|mistream.h|modnames.h)
|
||||||
|
USE=true
|
||||||
;;
|
;;
|
||||||
|
# whitelist OpenTransport (continued)
|
||||||
|
strlog.h|stropts.h|strstat.h|tihdr.h)
|
||||||
|
USE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
# Non-standard floating point headers that don't conflict
|
||||||
|
ddrt.h|fp.h)
|
||||||
|
USE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
# veclib headers
|
||||||
|
v*.h)
|
||||||
|
USE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
# unsupported: intrinsics.h perf.h
|
||||||
|
|
||||||
|
# all other (lowercase) headers: conflict with GCC or newlib headers
|
||||||
*)
|
*)
|
||||||
tr '\r' '\n' < $IN/$file > $OUT/$file
|
USE=false
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ $USE = true ]; then
|
||||||
|
tr '\r' '\n' < $IN/$file > $OUT/$file
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
############################# ConditionalMacros.h #############################
|
############################# ConditionalMacros.h #############################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user