X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/1850a470682f2bbbec1587adacfb1bb4320f30dc..2ca4dab349cc3f91032b17ced6b76023b4e67115:/Bridge.sh?ds=sidebyside diff --git a/Bridge.sh b/Bridge.sh index a090547..aff8f95 100755 --- a/Bridge.sh +++ b/Bridge.sh @@ -1,9 +1,35 @@ #!/usr/bin/env bash +# Cycript - Optimizing JavaScript Compiler/Runtime +# Copyright (C) 2009-2014 Jay Freeman (saurik) + +# GNU Affero General Public License, Version 3 {{{ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# }}} + 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 @@ -27,4 +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/'; -grep '^:' "$1" | sed -e 's/^: \([^ ]*\) \(.*\)/6\1, "\2", NULL/'; + +cat <