|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.0 (the 'License'). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License." ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: #ifdef SHLIB ! 25: #import "shlib.h" ! 26: #endif SHLIB ! 27: ! 28: #import "objc-private.h" ! 29: #import "objc-class.h" ! 30: #import <objc/zone.h> ! 31: ! 32: /* ! 33: * Declarations of non-const global data. ! 34: */ ! 35: extern id _internal_class_createInstance(Class, unsigned); ! 36: extern id _internal_class_createInstanceFromZone(Class, unsigned, NXZone *); ! 37: extern id _internal_object_dispose(id); ! 38: extern id _internal_object_realloc(id, unsigned); ! 39: extern id _internal_object_reallocFromZone(id, unsigned, NXZone *); ! 40: extern id _internal_object_copy(id, unsigned); ! 41: extern id _internal_object_copyFromZone(id, unsigned, NXZone *); ! 42: ! 43: id (*_poseAs)() = (id (*)())class_poseAs; ! 44: id (*_alloc)(Class, unsigned) = _internal_class_createInstance; ! 45: id (*_copy)(id, unsigned) = _internal_object_copy; ! 46: id (*_realloc)(id, unsigned) = _internal_object_realloc; ! 47: id (*_dealloc)(id) = _internal_object_dispose; ! 48: ! 49: id (*_cvtToId)(const char *)= objc_lookUpClass; ! 50: SEL (*_cvtToSel)(const char *)= sel_getUid; ! 51: void (*_error)() = (void(*)())_objc_error; ! 52: ! 53: id (*_zoneAlloc)(Class, unsigned, NXZone *) = _internal_class_createInstanceFromZone; ! 54: id (*_zoneCopy)(id, unsigned, NXZone *) = _internal_object_copyFromZone; ! 55: id (*_zoneRealloc)(id, unsigned, NXZone *) = _internal_object_reallocFromZone; ! 56: ! 57: #ifdef SHLIB ! 58: char _objc_global_data_pad[468] = {0}; ! 59: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.