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