X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/1771224f6d1aaac181963198b5d9fe1b1ed5469e..dc4fc6beb31fe6ec360ad0d670177276dae4cc97:/Bridge.sh diff --git a/Bridge.sh b/Bridge.sh index aff8f95..4d4cc31 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) +# Cycript - The Truly Universal Scripting Language +# Copyright (C) 2009-2016 Jay Freeman (saurik) # GNU Affero General Public License, Version 3 {{{ # @@ -38,21 +38,20 @@ cat << EOF %define slot-name name_ %struct-type -%omit-struct-type %pic +%delimiters="|" + struct CYBridgeEntry { int name_; const char *value_; - void *cache_; }; %% 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 -v '^$' cat <