X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/0fe905920f850129bc4b2b869d68d22bc6d568dc..cee5e1fd5183c06f351c849d6c245b9a8a57e1d7:/sig/parse.cpp diff --git a/sig/parse.cpp b/sig/parse.cpp index b8d16c3..7fc663f 100644 --- a/sig/parse.cpp +++ b/sig/parse.cpp @@ -1,4 +1,4 @@ -/* Cycript - Remove Execution Server and Disassembler +/* Cycript - Inlining/Optimizing JavaScript Compiler * Copyright (C) 2009 Jay Freeman (saurik) */ @@ -81,7 +81,7 @@ void Parse_(apr_pool_t *pool, struct Signature *signature, const char **name, ch if (**name != '"') element->name = NULL; else { - char *quote = strchr(++*name, '"'); + const char *quote = strchr(++*name, '"'); element->name = apr_pstrmemdup(pool, *name, quote - *name); *name = quote + 1; } @@ -126,7 +126,7 @@ struct Type *Parse_(apr_pool_t *pool, const char **name, char eos, bool named, C case '@': if (**name == '"') { - char *quote = strchr(*name + 1, '"'); + const char *quote = strchr(*name + 1, '"'); if (!named || quote[1] == eos || quote[1] == '"') { type->name = apr_pstrmemdup(pool, *name + 1, quote - *name - 1); *name = quote + 1;