From: Jay Freeman (saurik) Date: Wed, 30 Dec 2015 13:21:16 +0000 (-0800) Subject: Logically order type specifier cases in sig/parse. X-Git-Tag: v0.9.590~116 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/140fd60d6b7a9b922098ee5c408169573f94e33e?ds=inline Logically order type specifier cases in sig/parse. --- diff --git a/sig/parse.cpp b/sig/parse.cpp index e77da79..b451c9d 100644 --- a/sig/parse.cpp +++ b/sig/parse.cpp @@ -202,12 +202,13 @@ Type *Parse_(CYPool &pool, const char **encoding, char eos, bool named, Callback type = (*callback)(pool, aggregate); } break; - case 'N': flags |= JOC_TYPE_INOUT; goto next; + case 'r': flags |= JOC_TYPE_CONST; goto next; + case 'n': flags |= JOC_TYPE_IN; goto next; - case 'O': flags |= JOC_TYPE_BYCOPY; goto next; + case 'N': flags |= JOC_TYPE_INOUT; goto next; case 'o': flags |= JOC_TYPE_OUT; goto next; + case 'O': flags |= JOC_TYPE_BYCOPY; goto next; case 'R': flags |= JOC_TYPE_BYREF; goto next; - case 'r': flags |= JOC_TYPE_CONST; goto next; case 'V': flags |= JOC_TYPE_ONEWAY; goto next; next: