X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f95d2598051e347460e028286ff2d33e5825e548..9ea4298b4c70c7a5994bdd6726dd188cda01b880:/Bridge.sh?ds=sidebyside diff --git a/Bridge.sh b/Bridge.sh index 795057c..83ce23a 100755 --- a/Bridge.sh +++ b/Bridge.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Cycript - Optimizing JavaScript Compiler/Runtime -# Copyright (C) 2009-2014 Jay Freeman (saurik) +# Copyright (C) 2009-2015 Jay Freeman (saurik) # GNU Affero General Public License, Version 3 {{{ # @@ -24,6 +24,12 @@ cat << EOF #include #include #include "Execute.hpp" + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wdeprecated-register" +#endif %} %language=ANSI-C @@ -47,3 +53,10 @@ EOF grep '^[CFV]' "$1" | sed -e 's/^C/0/;s/^F/1/;s/^V/2/' | sed -e 's/"/\\"/g;s/^\([^ ]*\) \([^ ]*\) \(.*\)$/\1\2, "\3", NULL/'; grep '^[EST]' "$1" | sed -e 's/^S/3/;s/^T/4/;s/^E/5/' | sed -e 's/^5\(.*\)$/4\1 i/;s/"/\\"/g' | sed -e 's/^\([^ ]*\) \([^ ]*\) \(.*\)$/\1\2, "\3", NULL/'; + +cat <