• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/pyobjc-45/pyobjc/pyobjc-core-2.5.1/Lib/objc/

Lines Matching refs:typestr

104     def typestr2typestr(self, typestr):
105 typestr = _as_bytes(typestr)
108 for item in objc.splitSignature(typestr):
193 typestr = self.attribute_string(node, "type", "type64")
194 if typestr:
195 typestr = self.typestr2typestr(typestr)
196 result["type"] = typestr
248 if self.attribute_bool(node, "block", None, False) or typestr == "@?":
269 typestr = self.attribute_string(node, "type", "type64")
273 if not name or not typestr:
276 typestr = self.typestr2typestr(typestr)
279 self.cftypes.append((name, typestr, None, tollfree))
290 self.cftypes.append((name, typestr, None, "NSCFType"))
293 self.cftypes.append((name, typestr, gettypeid()))
298 typestr = self.attribute_string(node, "type", "type64")
300 if name is None or not typestr:
303 typestr = self.typestr2typestr(typestr)
305 if typestr.startswith(objc._C_STRUCT_B):
309 def has_embedded_function(typestr):
310 nm, fields = objc.splitStructSignature(_as_bytes(typestr))
321 if has_embedded_function(typestr):
325 self.constants.append((name, typestr, magic))
492 typestr = self.attribute_string(method, "type", "type64")
498 if not sel_name or not typestr:
501 typestr = self.typestr2typestr(typestr)
503 signature=_as_bytes(typestr), isClassMethod=is_class)
518 typestr = self.attribute_string(node, "type", "type64")
520 if name is None or not typestr:
523 typestr = self.typestr2typestr(typestr)
525 self.opaque.append((name, typestr))
530 typestr = self.attribute_string(node, "type", "type64")
533 if not name or not typestr:
541 typestr = re.sub(r'"@"[^"]*"', '"@', typestr)
543 typestr = self.typestr2typestr(typestr)
553 self.structs.append((name, typestr, value))
556 self.structs.append((name, typestr, None))
613 for name, typestr in prs.opaque:
614 globals[name] = objc.createOpaquePointerType(name, typestr)
616 for name, typestr, alias in prs.structs:
619 objc.createStructAlias(name, typestr, alias)
621 globals[name] = value = objc.createStructType(name, typestr, None)
624 for name, typestr, magic in prs.constants:
626 value = objc._loadConstant(name, typestr, magic)
843 def createStructType(name, typestr, fieldnames, doc=None, pack=-1):
844 result = _orig_createStructType(name, typestr, fieldnames, doc, pack)
853 def registerStructAlias(typestr, structType):
855 return _orig_registerStructAlias(typestr, structType)
857 def createStructAlias(name, typestr, structType):
858 result = _orig_registerStructAlias(typestr, structType)