darling-cocotron/Foundation/Foundation.h

159 lines
5.6 KiB
C
Raw Permalink Normal View History

/* Copyright (c) 2006-2007 Christopher J. W. Lloyd
2006-12-22 04:41:44 +00:00
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
2006-12-22 04:41:44 +00:00
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
2006-12-22 04:41:44 +00:00
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
2006-12-22 04:41:44 +00:00
#if !defined(__STDC_VERSION__)
#define __STDC_VERSION__ 198900L
#elif (__STDC_VERSION__ < 199400L)
#define __STDC_VERSION__ 199000L
#endif
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#if (__STDC_VERSION__ >= 199901L)
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#endif
#import <CoreFoundation/CoreFoundation.h>
#import <CoreServices/CoreServices.h> // This is actually imported by NSURLError.h
#import <Foundation/FoundationErrors.h>
#import <Foundation/NSAffineTransform.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSArchiver.h>
#import <Foundation/NSArray.h>
NSFileWrapper - Dirk Theisen has contributed an initial NSFileWrapper implementation. Thanks Dirk! NSAssertionHandler - header added for NSFileWrapper The various NSStream concrete classes have a first pass implementation: NSInputStream_socket, NSOutputStream_socket, NSInputStream_data, NSOutputStream_data , NSOutputStream_buffer, NSInputStream_file, NSOutputStream_file The socket monitor/callback system has been overhauled to fix known problems going forward with socket based streams and distributed objects. This consists mainly of decoupling the select() management from the callback management allowing for accurate select() status across run loop mode changes and multiple callback monitors per socket. The major platform differences (windows vs. unix) were separated into their own files instead of the previous #ifdef mess. The NSInputSource system in the run loop was cleaned up to accommodate the new socket system and future additions. These classes were deleted: NSSocketSet, NSSocketMonitorSet, NSSocketDescriptor, NSSocketMonitor, NSSocketMonitorSet_Windows, NSSocketInputSource_windows, NSSocketMonitorSet_Unix And were replaced with: NSSocket, NSSocket_windows, NSSocket_bsd, NSSelectSet, NSSelectSet_windows, NSSelectSet_bsd , NSSelectInputSourceSet, NSSelectInputSource NSTask and NSFileHandle on Linux/Solaris are affected by this as they were using the old socket monitoring system to look for background events and have been upgraded to the new one. NSHandleMonitorSet_win32 upgraded with NSInputSource upgrade. NSError - first pass implemented to assist with NSStream implementation. -[NSMutableSet setSet:] - implemented Cleared up some of the Linux/Solaris compiler warnings
2007-01-17 04:23:24 +00:00
#import <Foundation/NSAssertionHandler.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSAttributedString.h>
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSBundle.h>
#import <Foundation/NSByteOrder.h>
#import <Foundation/NSCachedURLResponse.h>
#import <Foundation/NSCalendar.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSCharacterSet.h>
#import <Foundation/NSClassDescription.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSCoder.h>
#import <Foundation/NSCountedSet.h>
#import <Foundation/NSData.h>
#import <Foundation/NSDate.h>
#import <Foundation/NSDateComponents.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSDateFormatter.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSDecimalNumber.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSDictionary.h>
#import <Foundation/NSDirectoryEnumerator.h>
#import <Foundation/NSDistributedNotificationCenter.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSEnumerator.h>
#import <Foundation/NSError.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSException.h>
#import <Foundation/NSFileHandle.h>
#import <Foundation/NSFileManager.h>
#import <Foundation/NSFormatter.h>
#import <Foundation/NSGeometry.h>
#import <Foundation/NSHTTPCookie.h>
#import <Foundation/NSHTTPCookieStorage.h>
#import <Foundation/NSHTTPURLResponse.h>
#import <Foundation/NSHashTable.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSIndexPath.h>
#import <Foundation/NSIndexSet.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSInvocation.h>
#import <Foundation/NSKeyValueCoding.h>
#import <Foundation/NSKeyValueObserving.h>
#import <Foundation/NSKeyedArchiver.h>
#import <Foundation/NSKeyedUnarchiver.h>
#import <Foundation/NSLocale.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSLock.h>
#import <Foundation/NSMapTable.h>
#import <Foundation/NSMetadataItem.h>
#import <Foundation/NSMetadataQuery.h>
#import <Foundation/NSMetadataQueryAttributeValueTuple.h>
#import <Foundation/NSMetadataQueryResultGroup.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSMethodSignature.h>
#import <Foundation/NSMutableArray.h>
#import <Foundation/NSMutableAttributedString.h>
#import <Foundation/NSMutableCharacterSet.h>
#import <Foundation/NSMutableData.h>
#import <Foundation/NSMutableDictionary.h>
#import <Foundation/NSMutableIndexSet.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSMutableSet.h>
#import <Foundation/NSMutableString.h>
#import <Foundation/NSMutableURLRequest.h>
#import <Foundation/NSNetServices.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSNotification.h>
#import <Foundation/NSNotificationCenter.h>
#import <Foundation/NSNotificationQueue.h>
#import <Foundation/NSNull.h>
#import <Foundation/NSNumber.h>
#import <Foundation/NSNumberFormatter.h>
#import <Foundation/NSObjCRuntime.h>
#import <Foundation/NSObject.h>
2010-03-03 16:59:02 +00:00
#import <Foundation/NSOperation.h>
#import <Foundation/NSOperationQueue.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSPathUtilities.h>
#import <Foundation/NSPipe.h>
#import <Foundation/NSPort.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSPortCoder.h>
#import <Foundation/NSPredicate.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSProcessInfo.h>
#import <Foundation/NSProxy.h>
#import <Foundation/NSRange.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSScanner.h>
#import <Foundation/NSSet.h>
#import <Foundation/NSSortDescriptor.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSStream.h>
#import <Foundation/NSString.h>
#import <Foundation/NSTask.h>
#import <Foundation/NSThread.h>
#import <Foundation/NSTimeZone.h>
#import <Foundation/NSTimer.h>
#import <Foundation/NSURL.h>
#import <Foundation/NSURLConnection.h>
#import <Foundation/NSURLDownload.h>
#import <Foundation/NSURLResponse.h>
#import <Foundation/NSUnarchiver.h>
#import <Foundation/NSUndoManager.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSValue.h>
2007-05-23 03:52:57 +00:00
#import <Foundation/NSValueTransformer.h>
#import <Foundation/NSXMLDTD.h>
#import <Foundation/NSXMLDTDNode.h>
#import <Foundation/NSXMLDocument.h>
#import <Foundation/NSXMLElement.h>
#import <Foundation/NSXMLNode.h>
#import <Foundation/NSXMLParser.h>
2006-12-22 04:41:44 +00:00
#import <Foundation/NSZone.h>
2011-09-21 12:33:02 +00:00
#import <Foundation/NSScriptWhoseTests.h>