Searched refs:sizeof (Results 101 - 125 of 527) sorted by relevance

1234567891011>>

/macosx-10.9.5/RubyCocoa-80/RubyCocoa/framework/src/objc/
H A DBridgeSupport.m284 field->name = (char *)malloc((sizeof(char) * (pos - p_src)) + 1);
338 strncpy(buf, p_src, MIN(sizeof buf, i));
339 buf[MIN((sizeof buf) - 1, i)] = '\0';
341 if (!undecorate_encoding(buf, buf2, sizeof buf2, NULL, 0, NULL)) {
347 field->encoding = (char *)malloc((sizeof(char) * len) + 1);
353 field->encoding = (char *)malloc((sizeof(char) * i) + 1);
589 snprintf(buf, sizeof buf, "@%s", bs_boxed->opt.s.fields[i].name);
595 snprintf(buf, sizeof buf, "%s=", bs_boxed->opt.s.fields[i].name);
725 len = snprintf(ivar_name, sizeof ivar_name, "@%s", rb_id2name(rb_frame_last_func()));
860 bs_boxed = (struct bsBoxed *)malloc(sizeof(struc
[all...]
H A Dcls_objcid.m45 dp = malloc(sizeof(struct _objcid_data));
128 snprintf(s, sizeof(s), "#<%s:0x%lx class='%s' id=%p>",
H A Dmdl_objwrapper.m141 cif = (ffi_cif *)malloc(sizeof(ffi_cif));
156 closure = mmap(NULL, sizeof(ffi_closure), PROT_READ | PROT_WRITE,
163 sizeof(struct ocm_closure_userdata));
173 if (mprotect(closure, sizeof(ffi_closure), PROT_READ | PROT_EXEC) == -1) {
424 argumentsTypes = (char **)realloc(argumentsTypes, sizeof(char *) * argc);
446 arg_types = (ffi_type **) alloca((expected_argc + 3) * sizeof(ffi_type *));
448 arg_values = (void **) alloca((expected_argc + 3) * sizeof(void *));
456 memset(arg_types + 2, 0, (expected_argc + 1) * sizeof(ffi_type *));
457 memset(arg_values + 2, 0, (expected_argc + 1) * sizeof(void *));
/macosx-10.9.5/objc4-551.1/runtime/
H A Dobjc-runtime-old.mm329 result = (Class *)malloc((1+count) * sizeof(Class));
366 result = (Protocol **)calloc(1 + count, sizeof(Protocol *));
529 cls = _calloc_class(sizeof(objc_class));
549 memcpy(newcls, oldcls, sizeof(struct objc_class));
755 pending = (PendingSubclass *)_malloc_internal(sizeof(PendingSubclass));
779 pending = (PendingClassRef *)_malloc_internal(sizeof(PendingClassRef));
1232 memcpy(futureCls, newCls, sizeof(objc_class));
1641 calloc(count + 1, sizeof(struct objc_method_description));
1733 result = (Protocol **)malloc((count+1) * sizeof(Protocol *));
1802 if (ext->size < offsetof(old_protocol_ext, extendedMethodTypes) + sizeof(ex
[all...]
H A Dobjc-auto.mm819 #define countof(array) (sizeof(array) / sizeof(array[0]))
864 if (control->version >= sizeof(auto_collection_control_t)) {
1006 uintptr_t *table = (uintptr_t *)auto_zone_allocate_object(gc_zone, INITIALSIZE*sizeof(void *), AUTO_MEMORY_UNSCANNED, true, true);
1081 uintptr_t *newTable = (uintptr_t *)auto_zone_allocate_object(gc_zone, oldSize*2*sizeof(void *), AUTO_MEMORY_UNSCANNED, true, true);
1271 strlcat(buf, "[", sizeof(buf)); \
1272 strlcati(buf, s, sizeof(buf)); \
1273 strlcat(buf, "]", sizeof(buf));
1293 strlcat(buf, cf_class_for_object((void *)base), sizeof(buf));
1295 strlcat(buf, class_name, sizeof(bu
[all...]
H A Dobjc-weak.mm58 return (sizeof(size_t) == 8) ? (k >> 3) : (k >> 2);
80 _calloc_internal(TABLE_SIZE(entry), sizeof(weak_referrer_t));
116 _calloc_internal(WEAK_INLINE_COUNT, sizeof(weak_referrer_t));
216 _calloc_internal(new_size, sizeof(weak_entry_t));
266 bzero(entry, sizeof(*entry));
H A Dobjc-class-old.mm92 uint32_t size = (uint32_t)sizeof(old_class_ext);
161 size = sizeof(old_method_list) - sizeof(old_method) + old_mlist->method_count * sizeof(old_method);
588 result = (old_property **)malloc((count+1) * sizeof(old_property *));
1148 copy = (Class)_malloc_internal(sizeof(objc_class));
1149 memmove(copy, imposter, sizeof(objc_class));
1640 (old_method_list *)_calloc_internal(sizeof(old_method_list), 1);
1729 oldSize = sizeof(old_ivar_list) +
1730 (old->ivar_count - 1) * sizeof(old_iva
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/dist/
H A Ds_sig76 #define __ADD(s) (t[i++] = sizeof(struct s))
84 return (__ham_func5(NULL, t, i * sizeof(t[0])));
/macosx-10.9.5/Heimdal-323.92.1/lib/heimcred/
H A DHeimCredCoder.m179 size_t bulkKeyWrappedSize = sizeof(bulkKeyWrapped);
203 size_t blobLen = sizeof(key_wrapped_size) + key_wrapped_size + ctLen + tagLen;
212 cursor += sizeof(key_wrapped_size);
224 memset(bulkKey, 0, sizeof(bulkKey));
261 if (ctLen < sizeof(wrapped_key_size))
265 cursor += sizeof(wrapped_key_size);
266 ctLen -= sizeof(wrapped_key_size);
273 size_t bulkKeyCapacity = sizeof(bulkKey);
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/API/mac/
H A DWKProcessGroup.mm64 memset(&connectionClient, 0, sizeof(connectionClient));
88 memset(&injectedBundleClient, 0, sizeof(injectedBundleClient));
/macosx-10.9.5/dtrace-118.1/test/cmd/scripts/
H A Ddstyle.pl181 if ($inclause && /sizeof\(/) {
182 err "missing space after sizeof";
/macosx-10.9.5/libdispatch-339.92.1/src/
H A Ddata.m46 return _dispatch_objc_alloc(self, sizeof(struct dispatch_data_s));
129 _dispatch_data_debug(self, buf, sizeof(buf));
H A Dobject.m97 size -= sizeof(((struct _os_object_s *)NULL)->os_obj_isa);
114 dispatch_assert(size >= sizeof(struct _os_object_s));
121 dispatch_assert(size >= sizeof(struct _os_object_s));
283 dx_debug(obj, buf, sizeof(buf));
285 strlcpy(buf, dx_kind(obj), sizeof(buf));
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-core/Modules/objc/test/
H A Dopaque.m71 FooHandle result = malloc(sizeof(struct _Foo));
103 BarHandle result = malloc(sizeof(struct _Bar));
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-framework-Cocoa/Modules/
H A D_CoreFoundation_CFBag.m27 NSObject** members = malloc(sizeof(NSObject*) * count);
32 memset(members, 0, sizeof(NSObject*) * count);
H A D_CoreFoundation_CFBinaryHeap.m100 NSObject** members = malloc(sizeof(NSObject*) * count);
105 memset(members, 0, sizeof(NSObject*) * count);
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/Modules/objc/test/
H A Dopaque.m124 FooHandle result = malloc(sizeof(struct _Foo));
156 BarHandle result = malloc(sizeof(struct _Bar));
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-framework-Cocoa/Modules/
H A D_CoreFoundation_CFBag.m22 NSObject** members = malloc(sizeof(NSObject*) * count);
27 memset(members, 0, sizeof(NSObject*) * count);
H A D_CoreFoundation_CFBinaryHeap.m97 NSObject** members = malloc(sizeof(NSObject*) * count);
102 memset(members, 0, sizeof(NSObject*) * count);
/macosx-10.9.5/swig-10/Lib/mzscheme/
H A Dmzrun.swg149 new_proxy = (struct swig_mz_proxy *) scheme_malloc(sizeof(struct swig_mz_proxy));
230 scheme_malloc(num_fields*sizeof(Scheme_Object*));
321 mz_dynload_libpaths=(char **) malloc(sizeof(char *)*k);
341 char *libs=(char *) malloc((strlen(MZ_DYNLOAD_LIBS)+1)*sizeof(char));
344 char *libs=(char *) malloc((strlen(_libs)+1)*sizeof(char));
352 mz_dlopen_libraries=(char **) malloc(sizeof(char *)*(k+1));
392 mz_libraries=(void **) malloc(sizeof(void*)*n);
407 libp=(char *) malloc(L*sizeof(char));
/macosx-10.9.5/swig-10/Lib/python/
H A Dpyhead.swg85 res = vsnprintf(buf, sizeof(buf), fmt, ap);
87 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
/macosx-10.9.5/ppp-727.90.1/Helpers/MiniTerm/
H A DMiniTerm.m73 iov[0].iov_len = sizeof(buf);
79 msg.msg_controllen = sizeof(struct cmsg);
148 bzero(&adr, sizeof(adr));
150 strlcpy(adr.sun_path, "/var/run/pppd-miniterm", sizeof(adr.sun_path));
152 if ((err = connect(sockfd, (struct sockaddr *)&adr, sizeof(adr)) < 0)) {
/macosx-10.9.5/ppp-727.90.1/Helpers/sbslauncher/
H A Dbehaviors_check_asset.m219 memset(&ss, 0, sizeof(ss));
221 ss.ss_len = sizeof(struct sockaddr_in);
231 memset(&ss, 0, sizeof(ss));
233 ss.ss_len = sizeof(struct sockaddr_in6);
245 memset(&reach_ctx, 0, sizeof(reach_ctx));
/macosx-10.9.5/man-16/man/src/
H A Dman.c.orig55 #define SIZE(x) (sizeof(x)/sizeof((x)[0]))
332 if (strlen(name0) >= sizeof(ultname))
349 fgr = fgets (buf, sizeof(buf), fp);
377 fgr = fgets (buf, sizeof(buf), fp);
458 snprintf(lang_path, sizeof(lang_path), "/%s/", lang);
635 if (strlen(command) >= sizeof(buf))
644 buf, sizeof(buf));
661 fgr = fgets (line, sizeof(line), fp);
670 fgr = fgets (line, sizeof(lin
[all...]
/macosx-10.9.5/WebKit-7537.78.2/mac/Plugins/
H A DWebBasePluginPackage.mm374 if (sizeInBytes >= sizeof(struct mach_header_64)) {
410 COMPILE_ASSERT(sizeof(struct fat_header) % sizeof(uint32_t) == 0, struct_fat_header_must_be_integral_size_of_uint32_t);
411 archs = reinterpret_cast<struct fat_arch*>(rawData.data() + sizeof(struct fat_header) / sizeof(uint32_t));
414 unsigned maxArchs = (sizeInBytes - sizeof(struct fat_header)) / sizeof(struct fat_arch);

Completed in 285 milliseconds

1234567891011>>