xref: /xnu-11215.41.3/libkern/libclosure/libclosuredata.c (revision 33de042d024d46de5ff4e89f2471de6608e37fa4)
1*33de042dSApple OSS Distributions /*
2*33de042dSApple OSS Distributions  * data.c
3*33de042dSApple OSS Distributions  * libclosure
4*33de042dSApple OSS Distributions  *
5*33de042dSApple OSS Distributions  * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
6*33de042dSApple OSS Distributions  *
7*33de042dSApple OSS Distributions  * @APPLE_LLVM_LICENSE_HEADER@
8*33de042dSApple OSS Distributions  *
9*33de042dSApple OSS Distributions  */
10*33de042dSApple OSS Distributions 
11*33de042dSApple OSS Distributions /********************
12*33de042dSApple OSS Distributions  *  NSBlock support
13*33de042dSApple OSS Distributions  *
14*33de042dSApple OSS Distributions  *  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*33de042dSApple OSS Distributions  *
16*33de042dSApple OSS Distributions  *  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*33de042dSApple OSS Distributions  **********************/
18*33de042dSApple OSS Distributions 
19*33de042dSApple OSS Distributions void * _NSConcreteStackBlock[32] = { 0 };
20*33de042dSApple OSS Distributions void * _NSConcreteMallocBlock[32] = { 0 };
21*33de042dSApple OSS Distributions void * _NSConcreteAutoBlock[32] = { 0 };
22*33de042dSApple OSS Distributions void * _NSConcreteFinalizingBlock[32] = { 0 };
23*33de042dSApple OSS Distributions void * _NSConcreteGlobalBlock[32] = { 0 };
24*33de042dSApple OSS Distributions void * _NSConcreteWeakBlockVariable[32] = { 0 };
25