X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/37954781d9756ece500551055562183a1e28e943..921938e34cd085547554572e9d6577fc60403c5e:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index 8ee5136..662dccf 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -1,24 +1,55 @@ -#ifndef CYCRIPT_JAVASCRIPT_HPP -#define CYCRIPT_JAVASCRIPT_HPP - -extern JSObjectRef Array_; -extern JSObjectRef Error_; -extern JSObjectRef Function_; -extern JSObjectRef String_; +/* Cycript - Error.hppution Server and Disassembler + * Copyright (C) 2009 Jay Freeman (saurik) +*/ -extern JSStringRef length_; -extern JSStringRef message_; -extern JSStringRef name_; -extern JSStringRef prototype_; -extern JSStringRef toCYON_; -extern JSStringRef toJSON_; +/* Modified BSD License {{{ */ +/* + * Redistribution and use in source and binary + * forms, with or without modification, are permitted + * provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the + * above copyright notice, this list of conditions + * and the following disclaimer. + * 2. Redistributions in binary form must reproduce the + * above copyright notice, this list of conditions + * and the following disclaimer in the documentation + * and/or other materials provided with the + * distribution. + * 3. The name of the author may not be used to endorse + * or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +/* }}} */ -extern JSObjectRef Object_prototype_; -extern JSObjectRef Function_prototype_; +#ifndef CYCRIPT_JAVASCRIPT_HPP +#define CYCRIPT_JAVASCRIPT_HPP -extern JSObjectRef Array_prototype_; -extern JSObjectRef Array_pop_; -extern JSObjectRef Array_push_; -extern JSObjectRef Array_splice_; +extern JSStringRef Array_s; +extern JSStringRef cy_s; +extern JSStringRef length_s; +extern JSStringRef message_s; +extern JSStringRef name_s; +extern JSStringRef pop_s; +extern JSStringRef prototype_s; +extern JSStringRef push_s; +extern JSStringRef splice_s; +extern JSStringRef toCYON_s; +extern JSStringRef toJSON_s; #endif/*CYCRIPT_JAVASCRIPT_HPP*/