Searched refs:sizeof (Results 26 - 50 of 527) sorted by relevance

1234567891011>>

/macosx-10.9.5/swig-10/Lib/typemaps/
H A Dcmalloc.swg23 TYPE *malloc_NAME(size_t nbytes = sizeof(TYPE);
24 TYPE *calloc_NAME(size_t nobj=1, size_t size=sizeof(TYPE));
38 %typemap(default) size_t nbytes "$1 = (size_t) sizeof(TYPE);"
51 %typemap(default) size_t sz "$1 = (size_t) sizeof(TYPE);"
70 return (TYPE *) realloc(ptr, nitems*sizeof(TYPE));
92 %define %sizeof(TYPE,NAME...)
94 %constant size_t sizeof_##NAME = sizeof(TYPE);
96 %constant size_t sizeof_##TYPE = sizeof(TYPE);
106 %sizeof(TYPE,NAME)
/macosx-10.9.5/objc4-551.1/test/
H A DivarSlide.m144 testassert(class_getInstanceSize([Bitfields class]) == 7*sizeof(void*));
202 testassert(class_getInstanceSize([Sub class]) == 6*sizeof(void*));
206 testassert(2*sizeof(void*) == (size_t)ivar_getOffset(ivar));
224 testassert(sizeof(void*) == (size_t)ivar_getOffset(ivar));
268 testassert(class_getInstanceSize([Sub2 class]) == 13*sizeof(void*));
272 testassert(11*sizeof(void*) == (size_t)ivar_getOffset(ivar));
364 testassert(class_getInstanceSize([MoreStrongSub class]) == 3*sizeof(void*));
390 testassert(class_getInstanceSize([MoreWeakSub class]) == 3*sizeof(void*));
426 testassert(class_getInstanceSize([MoreWeak2Sub class]) == 3*sizeof(void*));
457 testassert(class_getInstanceSize([LessStrongSub class]) == 3*sizeof(voi
[all...]
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-core/Modules/objc/
H A Dobjc-runtime-compat.m63 uint32_t nprotos = size / sizeof(ProtocolTemplate);
69 protocols = malloc(sizeof(Protocol*) * nprotos);
75 sizeof(Protocol*) * (*outCount+nprotos));
124 result = malloc(sizeof(struct objc_class) * 2 + extra);
128 memset(result, 0, sizeof(struct objc_class) * 2 + extra);
143 result[0].methodLists = malloc(sizeof(struct objc_method_list*));
145 memset(result[0].methodLists, 0, sizeof(struct objc_method_list*));
147 result[1].methodLists = malloc(sizeof(struct objc_method_list*));
149 memset(result[1].methodLists, 0, sizeof(struct objc_method_list*));
164 result[0].methodLists[0] = malloc(sizeof(struc
[all...]
H A Dclass-list.m51 sizeof(Class) * bufferLen);
54 sizeof(Class) * bufferLen);
H A Dclosure_pool.m20 #define BLOCKSIZE ((PAGE_SIZE*10)/sizeof(ffi_closure*))
22 freelist* newblock = mmap(NULL, BLOCKSIZE * sizeof(ffi_closure),
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/Modules/objc/
H A Dobjc-runtime-compat.m63 uint32_t nprotos = size / sizeof(ProtocolTemplate);
69 protocols = malloc(sizeof(Protocol*) * nprotos);
75 sizeof(Protocol*) * (*outCount+nprotos));
124 result = malloc(sizeof(struct objc_class) * 2 + extra);
128 memset(result, 0, sizeof(struct objc_class) * 2 + extra);
143 result[0].methodLists = malloc(sizeof(struct objc_method_list*));
145 memset(result[0].methodLists, 0, sizeof(struct objc_method_list*));
147 result[1].methodLists = malloc(sizeof(struct objc_method_list*));
149 memset(result[1].methodLists, 0, sizeof(struct objc_method_list*));
164 result[0].methodLists[0] = malloc(sizeof(struc
[all...]
H A Dclass-list.m51 sizeof(Class) * bufferLen);
54 sizeof(Class) * bufferLen);
H A Dclosure_pool.m20 #define BLOCKSIZE ((PAGE_SIZE*10)/sizeof(ffi_closure*))
22 freelist* newblock = mmap(NULL, BLOCKSIZE * sizeof(ffi_closure),
/macosx-10.9.5/libauto-185.5/tests/
H A Dresurrect-global-memmove.m47 objc_memmove_collectable(&global->string, &self, sizeof(void *));
54 objc_memmove_collectable(&global->string, &self, sizeof(void *));
H A Dresurrect-local-memmove.m47 objc_memmove_collectable(&global->string, &self, sizeof(void *));
54 objc_memmove_collectable(&global->string, &self, sizeof(void *));
H A Dresurrect_memcpy_ok.m54 objc_memmove_collectable(&string, &self->object, sizeof(void *));
65 objc_memmove_collectable(&string, &self->object, sizeof(void *));
H A Dcfdata.m61 CFIndex size = 32*sizeof(void *);
79 CFIndex size = 32*sizeof(void *);
100 CFIndex size = sizeof(void *)*32;
121 CFIndex count = CFDataGetLength(subject)/sizeof(void *);
146 CFIndex size = sizeof(void *)*32;
158 CFIndex size = sizeof(void *)*32;
170 CFIndex size = sizeof(void *)*32;
/macosx-10.9.5/ncurses-42/ncurses/ncurses/tinfo/
H A DMKfallback.sh112 tp < fallbacks + sizeof(fallbacks)/sizeof(TERMTYPE);
/macosx-10.9.5/objc4-551.1/runtime/
H A Dobjc-file-old.mm78 *outCount = byteCount / sizeof(type); \
106 *nprotos = size / sizeof(struct old_protocol);
112 malloc(*nprotos * sizeof(*hi->proto_refs));
131 if (strncmp(sgp->segname, segname, sizeof(sgp->segname)) == 0) {
H A Dobjc-sync.mm63 char align[64 - sizeof (spinlock_t) - sizeof (SyncData *)];
90 calloc(1, sizeof(SyncCache) + count*sizeof(SyncCacheItem));
99 realloc(data->syncCache, sizeof(SyncCache)
100 + data->syncCache->allocated * sizeof(SyncCacheItem));
242 result = (SyncData*)calloc(sizeof(SyncData), 1);
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-core/Modules/objc/test/
H A Dfilepointer.m27 return [NSString stringWithCString: fgets(buf, sizeof(buf), fp)
H A Dctests.m103 sizeof(struct Struct1), PyObjCRT_SizeOfType(@encode(struct Struct1)),
107 sizeof(struct Struct2), PyObjCRT_SizeOfType(@encode(struct Struct2)),
111 sizeof(struct Struct3), PyObjCRT_SizeOfType(@encode(struct Struct3)),
115 sizeof(struct Struct4), PyObjCRT_SizeOfType(@encode(struct Struct4)),
119 sizeof(NSRect), PyObjCRT_SizeOfType(@encode(NSRect)), "%d");
436 ASSERT_EQUALS(sizeof(bool), sizeof(int), "%d");
439 ASSERT_EQUALS(sizeof(bool), sizeof(char), "%d");
463 r = PyObjCRT_SimplifySignature("@1234@0:{_NSPoint=ff}02i22", b, sizeof(
[all...]
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-framework-Cocoa/Modules/
H A D_Foundation_netservice.m23 error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0,
48 PyObject *addrobj = makeipaddr(addr, sizeof(*a));
67 PyObject *addrobj = makeipaddr(addr, sizeof(*a));
89 sizeof(addr->sa_data));
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-framework-Cocoa/Modules/
H A D_Foundation_netservice.m19 error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0,
44 PyObject *addrobj = makeipaddr(addr, sizeof(*a));
63 PyObject *addrobj = makeipaddr(addr, sizeof(*a));
85 sizeof(addr->sa_data));
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/md4/
H A Dmd4c.tcl41 dup->internalRep.otherValuePtr = (MD4_CTX *)Tcl_Alloc(sizeof(MD4_CTX));
42 memcpy(dup->internalRep.otherValuePtr, ctx, sizeof(MD4_CTX));
56 temp = Tcl_NewByteArrayObj(buf, sizeof buf);
99 ctx = (MD4_CTX *)Tcl_Alloc(sizeof(MD4_CTX));
/macosx-10.9.5/libauto-185.5/auto_tester/
H A Dcfdata.m54 CFIndex size = 32*sizeof(void *);
72 CFIndex size = 32*sizeof(void *);
93 CFIndex size = sizeof(void *)*32;
114 CFIndex count = CFDataGetLength(subject)/sizeof(void *);
138 CFIndex size = sizeof(void *)*32;
150 CFIndex size = sizeof(void *)*32;
162 CFIndex size = sizeof(void *)*32;
/macosx-10.9.5/ruby-104/ruby/ext/socket/
H A Dextconf.rb152 char dummy[CMSG_SPACE(sizeof(int))];
171 s_msg.msg_controllen = CMSG_SPACE(sizeof(int));;
175 s_iov.iov_len = sizeof(s_buf);
179 s_cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
182 memcpy(CMSG_DATA(&s_cmsg.hdr), (char *)&s_fd, sizeof(int));
192 r_msg.msg_controllen = CMSG_SPACE(sizeof(int));
196 r_iov.iov_len = sizeof(r_buf);
200 memset(&r_cmsg, 0xff, CMSG_SPACE(sizeof(int)));
214 if (r_msg.msg_controllen < CMSG_LEN(sizeof(int))) {
215 fprintf(stderr, "unexpected: r_msg.msg_controllen < CMSG_LEN(sizeof(in
[all...]
/macosx-10.9.5/KerberosHelper-148/Source/
H A DLKDC-lookup-plugin.m58 char *endp = &buf[sizeof(buf)];
69 snprintf(endp-sizeof(ellipsis), sizeof(ellipsis), ellipsis);
134 bzero (&aiHints, sizeof (aiHints));
173 if (NULL == inet_ntop(res->ai_family, in_addr, ipString, sizeof(ipString)))
/macosx-10.9.5/WebKit-7537.78.2/mac/Carbon/
H A DHIWebView.mm237 HIWebView* view = (HIWebView*)malloc( sizeof( HIWebView ) );
543 GetEventParameter(inEvent, kEventParamMouseLocation, typeHIPoint, NULL, sizeof(point), NULL, &point);
605 OSStatus err = GetWindowProperty(newWindow, NSAppKitPropertyCreator, NSCarbonWindowPropertyTag, sizeof(NSWindow *), NULL, &view->fKitWindow);
621 SetWindowProperty(newWindow, NSAppKitPropertyCreator, NSCarbonWindowPropertyTag, sizeof(NSWindow *), &view->fKitWindow);
667 err = GetWindowProperty( window, NSAppKitPropertyCreator, NSCarbonWindowPropertyTag, sizeof(NSWindow *), NULL, &kitWindow);
689 err = GetWindowProperty( window, NSAppKitPropertyCreator, NSCarbonWindowPropertyTag, sizeof(NSWindow *), NULL, &kitWindow);
711 err = GetWindowProperty( window, NSAppKitPropertyCreator, NSCarbonWindowPropertyTag, sizeof(NSWindow *), NULL, &kitWindow);
728 GetEventParameter(inEvent, kEventParamMouseLocation, typeQDPoint, NULL, sizeof(Point), NULL, &where);
738 SetEventParameter(inEvent, kEventParamWindowRef, typeWindowRef, sizeof(WindowRef), &window);
739 SetEventParameter(inEvent, kEventParamWindowMouseLocation, typeQDPoint, sizeof(Poin
[all...]
/macosx-10.9.5/RubyCocoa-80/RubyCocoa/framework/src/objc/
H A Dlibffi.m30 bs_boxed->ffi_type = (ffi_type *)malloc(sizeof(ffi_type));
36 bs_boxed->ffi_type->elements = malloc((bs_boxed->opt.s.field_count + 1) * sizeof(ffi_type *));
71 type = (ffi_type *)malloc(sizeof(ffi_type));
77 type->elements = malloc(bytes * sizeof(ffi_type *));
120 return sizeof(int) == sizeof(long) ? &ffi_type_sint : &ffi_type_slong;
128 return sizeof(unsigned int) == sizeof(unsigned long) ? &ffi_type_uint : &ffi_type_ulong;
343 value = alloca(sizeof(void *));
348 value = alloca(sizeof(voi
[all...]

Completed in 199 milliseconds

1234567891011>>