1*b8665226SAlexey Samsonov /*
2*b8665226SAlexey Samsonov * data.c
3*b8665226SAlexey Samsonov *
4*b8665226SAlexey Samsonov * Copyright 2008-2010 Apple, Inc. Permission is hereby granted, free of charge,
5*b8665226SAlexey Samsonov * to any person obtaining a copy of this software and associated documentation
6*b8665226SAlexey Samsonov * files (the "Software"), to deal in the Software without restriction,
7*b8665226SAlexey Samsonov * including without limitation the rights to use, copy, modify, merge, publish,
8*b8665226SAlexey Samsonov * distribute, sublicense, and/or sell copies of the Software, and to permit
9*b8665226SAlexey Samsonov * persons to whom the Software is furnished to do so, subject to the following
10*b8665226SAlexey Samsonov * conditions:
11*b8665226SAlexey Samsonov *
12*b8665226SAlexey Samsonov * The above copyright notice and this permission notice shall be included in
13*b8665226SAlexey Samsonov * all copies or substantial portions of the Software.
14*b8665226SAlexey Samsonov *
15*b8665226SAlexey Samsonov * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16*b8665226SAlexey Samsonov * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17*b8665226SAlexey Samsonov * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18*b8665226SAlexey Samsonov * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19*b8665226SAlexey Samsonov * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20*b8665226SAlexey Samsonov * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21*b8665226SAlexey Samsonov * SOFTWARE.
22*b8665226SAlexey Samsonov *
23*b8665226SAlexey Samsonov */
24*b8665226SAlexey Samsonov
25*b8665226SAlexey Samsonov /********************
26*b8665226SAlexey Samsonov NSBlock support
27*b8665226SAlexey Samsonov
28*b8665226SAlexey Samsonov 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.
29*b8665226SAlexey Samsonov
30*b8665226SAlexey Samsonov 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.
31*b8665226SAlexey Samsonov **********************/
32*b8665226SAlexey Samsonov
33*b8665226SAlexey Samsonov void * _NSConcreteStackBlock[32] = { 0 };
34*b8665226SAlexey Samsonov void * _NSConcreteMallocBlock[32] = { 0 };
35*b8665226SAlexey Samsonov void * _NSConcreteAutoBlock[32] = { 0 };
36*b8665226SAlexey Samsonov void * _NSConcreteFinalizingBlock[32] = { 0 };
37*b8665226SAlexey Samsonov void * _NSConcreteGlobalBlock[32] = { 0 };
38*b8665226SAlexey Samsonov void * _NSConcreteWeakBlockVariable[32] = { 0 };
39*b8665226SAlexey Samsonov
_Block_copy_error(void)40*b8665226SAlexey Samsonov void _Block_copy_error(void) {
41*b8665226SAlexey Samsonov }
42