]> git.saurik.com Git - apple/xnu.git/blame - libkern/libclosure/libclosuredata.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / libclosure / libclosuredata.c
CommitLineData
d9a64523
A
1/*
2 * data.c
3 * libclosure
4 *
5 * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
6 *
7 * @APPLE_LLVM_LICENSE_HEADER@
8 *
9 */
10
11/********************
0a7de745
A
12 * NSBlock support
13 *
14 * We allocate space and export a symbol to be used as the Class for the on-stack and malloc'ed copies until ObjC arrives on the scene. These data areas are set up by Foundation to link in as real classes post facto.
15 *
16 * We keep these in a separate file so that we can include the runtime code in test subprojects but not include the data so that compiled code that sees the data in libSystem doesn't get confused by a second copy. Somehow these don't get unified in a common block.
17 **********************/
d9a64523
A
18
19void * _NSConcreteStackBlock[32] = { 0 };
20void * _NSConcreteMallocBlock[32] = { 0 };
21void * _NSConcreteAutoBlock[32] = { 0 };
22void * _NSConcreteFinalizingBlock[32] = { 0 };
23void * _NSConcreteGlobalBlock[32] = { 0 };
24void * _NSConcreteWeakBlockVariable[32] = { 0 };