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