From ce3a2dcc522607c6a406ed7ecf2b012d7d3d2c3c Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sun, 13 Sep 2015 00:42:07 +0200 Subject: [PATCH] prepare-headers: patches for Carbon --- prepare-headers.sh | 63 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/prepare-headers.sh b/prepare-headers.sh index 154d023006..4a27c9c493 100644 --- a/prepare-headers.sh +++ b/prepare-headers.sh @@ -5,11 +5,13 @@ OUT=$2 export LANG=en # cp $IN/[A-Z]*.h $OUT/ -for file in $(cd $IN; ls [A-Z]*.h); do +#for file in $(cd $IN; ls [A-Z]*.h); do +for file in $(cd $IN; ls *.h); do tr '\r' '\n' < $IN/$file > $OUT/$file #| sed 's/= \(0x[0-9A-Z]*\);/ONEWORDINLINE(\1);/' > $OUT/$file done +############################# ConditionalMacros.h ############################# cat > $OUT/ConditionalMacros.h <> $OUT/ConditionalMacros.h < $OUT/fp.h <> $OUT/fp.h + +cat >> $OUT/fp.h < $OUT/MixedMode.h + +############################# CGBase.h ############################# +if [ -r $IN/CGBase.h ]; then +cat > $OUT/CGBase.h < 0x2300. + ... otherwise, it contains an incompatible redefinition. */ +#pragma push_macro("__MWERKS__") +#define __MWERKS__ 0x6666 + +END_MARKER + +tr '\r' '\n' < $IN/CGBase.h >> $OUT/CGBase.h + +cat >> $OUT/CGBase.h <