]> git.saurik.com Git - cycript.git/blobdiff - sig/types.hpp
Support casting any pointer to a function type.
[cycript.git] / sig / types.hpp
index 117c7df5dd407bc1ac73802566d2e55ce2ecfcf9..e66e0c3e69aa4574bb49b72485eb19b7f701c9c6 100644 (file)
 #ifndef SIG_TYPES_H
 #define SIG_TYPES_H
 
+#include <cstdlib>
+#include <stdint.h>
+
 #include "Standard.hpp"
 
 namespace sig {
 
 enum Primitive {
+    function_P = '\0',
     typename_P = '#',
     union_P = '(',
     string_P = '*',
@@ -54,7 +58,7 @@ enum Primitive {
 };
 
 struct Element {
-    char *name;
+    const char *name;
     struct Type *type;
     size_t offset;
 };