X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c1d3e52e58e86c49f9d04e06ae8e0ece4b98250c..f57a1abfff018977638649483e0bf259c830daf2:/sig/parse.hpp diff --git a/sig/parse.hpp b/sig/parse.hpp index b7817c7..1c369e5 100644 --- a/sig/parse.hpp +++ b/sig/parse.hpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -27,15 +27,13 @@ namespace sig { -typedef void (*Callback)(CYPool &pool, Type *&type); +typedef Type *(*Callback)(CYPool &pool, Aggregate *aggregate); void Parse(CYPool &pool, struct Signature *signature, const char *name, Callback callback); -const char *Unparse(CYPool &pool, struct Signature *signature); -const char *Unparse(CYPool &pool, struct Type *type); +const char *Unparse(CYPool &pool, const struct Signature *signature); +const char *Unparse(CYPool &pool, const struct Type *type); -void Copy(CYPool &pool, Type &lhs, const Type &rhs); void Copy(CYPool &pool, Signature &lhs, const Signature &rhs); -void Copy(CYPool &pool, Type &lhs, const Type &rhs); }