38
45
NSRecursiveLock *gnustep_global_lock = nil;
41
* Connection Notification Strings.
43
NSString *NSConnectionDidDieNotification;
45
NSString *NSConnectionDidInitializeNotification;
48
* NSConnection Notification Strings.
50
NSString *NSConnectionDidDieNotification = @"NSConnectionDidDieNotification";
52
NSString *NSConnectionDidInitializeNotification = @"NSConnectionDidInitializeNotification";
56
* NSDistributedNotificationCenter types.
58
NSString *NSLocalNotificationCenterType = @"NSLocalNotificationCenterType";
59
NSString *GSNetworkNotificationCenterType = @"GSNetworkNotificationCenterType";
49
62
* NSThread Notifications
51
NSString *NSWillBecomeMultiThreadedNotification;
53
NSString *NSThreadDidStartNotification;
55
NSString *NSThreadWillExitNotification;
64
NSString *NSWillBecomeMultiThreadedNotification = @"NSWillBecomeMultiThreadedNotification";
66
NSString *NSThreadDidStartNotification = @"NSThreadDidStartNotification";
68
NSString *NSThreadWillExitNotification = @"NSThreadWillExitNotification";
59
72
* Port Notifications
61
NSString *PortBecameInvalidNotification;
63
NSString *InPortClientBecameInvalidNotification;
65
NSString *InPortAcceptedClientNotification;
68
NSString *NSPortDidBecomeInvalidNotification;
74
NSString *PortBecameInvalidNotification = @"PortBecameInvalidNotification";
76
NSString *InPortClientBecameInvalidNotification = @"InPortClientBecameInvalidNotification";
78
NSString *InPortAcceptedClientNotification = @"InPortAcceptedClientNotification";
80
NSString *NSPortDidBecomeInvalidNotification = @"NSPortDidBecomeInvalidNotification";
82
/* NSTask notifications */
83
NSString *NSTaskDidTerminateNotification = @"NSTaskDidTerminateNotification";
85
/* NSUndoManager notifications */
86
NSString *NSUndoManagerCheckpointNotification = @"NSUndoManagerCheckpointNotification";
88
NSString *NSUndoManagerDidOpenUndoGroupNotification = @"NSUndoManagerDidOpenUndoGroupNotification";
90
NSString *NSUndoManagerDidRedoChangeNotification = @"NSUndoManagerDidRedoChangeNotification";
92
NSString *NSUndoManagerDidUndoChangeNotification = @"NSUndoManagerDidUndoChangeNotification";
94
NSString *NSUndoManagerWillCloseUndoGroupNotification = @"NSUndoManagerWillCloseUndoGroupNotification";
96
NSString *NSUndoManagerWillRedoChangeNotification = @"NSUndoManagerWillRedoChangeNotification";
98
NSString *NSUndoManagerWillUndoChangeNotification = @"NSUndoManagerWillUndoChangeNotification";
101
/* NSURL constants */
102
NSString *NSURLFileScheme = @"file";
72
104
/* RunLoop modes */
73
NSString *NSDefaultRunLoopMode;
75
NSString *NSConnectionReplyMode;
80
NSString * const NSCharacterConversionException;
82
NSString * const NSFailedAuthenticationException;
84
NSString * const NSGenericException;
86
NSString * const NSInconsistentArchiveException;
88
NSString * const NSInternalInconsistencyException;
90
NSString * const NSInvalidArgumentException;
92
NSString * const NSMallocException;
94
NSString * const NSPortTimeoutException;
96
NSString * const NSRangeException;
99
/* Exception handler */
105
NSString *NSConnectionReplyMode = @"NSConnectionReplyMode";
110
* Last-resort exception handler, a function taking an NSException and
111
* returning void. Set with NSSetUncaughtExceptionHandler().
100
113
NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
103
NSString *NSBundleDidLoadNotification;
105
NSString *NSShowNonLocalizedStrings;
107
NSString *NSLoadedClasses;
116
NSString *NSBundleDidLoadNotification = @"NSBundleDidLoadNotification";
118
NSString *NSShowNonLocalizedStrings = @"NSShowNonLocalizedStrings";
120
NSString *NSLoadedClasses = @"NSLoadedClasses";
111
NSString *StreamException;
115
* File attributes names
118
/* File Attributes */
120
NSString *NSFileDeviceIdentifier;
122
NSString *NSFileGroupOwnerAccountName;
124
NSString *NSFileGroupOwnerAccountNumber;
126
NSString *NSFileModificationDate;
128
NSString *NSFileOwnerAccountName;
130
NSString *NSFileOwnerAccountNumber;
132
NSString *NSFilePosixPermissions;
134
NSString *NSFileReferenceCount;
136
NSString *NSFileSize;
138
NSString *NSFileSystemFileNumber;
140
NSString *NSFileSystemNumber;
142
NSString *NSFileType;
147
NSString *NSFileTypeDirectory;
149
NSString *NSFileTypeRegular;
151
NSString *NSFileTypeSymbolicLink;
153
NSString *NSFileTypeSocket;
155
NSString *NSFileTypeFifo;
157
NSString *NSFileTypeCharacterSpecial;
159
NSString *NSFileTypeBlockSpecial;
161
NSString *NSFileTypeUnknown;
164
/* FileSystem Attributes */
166
NSString *NSFileSystemSize;
168
NSString *NSFileSystemFreeSize;
170
NSString *NSFileSystemNodes;
172
NSString *NSFileSystemFreeNodes;
124
NSString *StreamException = @"StreamException";
175
128
/* Standard domains */
176
NSString *NSArgumentDomain;
178
NSString *NSGlobalDomain;
180
NSString *NSRegistrationDomain;
129
NSString *NSArgumentDomain = @"NSArgumentDomain";
131
NSString *NSGlobalDomain = @"NSGlobalDomain";
133
NSString *NSRegistrationDomain = @"NSRegistrationDomain";
183
136
/* Public notification */
184
NSString *NSUserDefaultsDidChangeNotification;
137
NSString *NSUserDefaultsDidChangeNotification = @"NSUserDefaultsDidChangeNotification";
187
140
/* Keys for language-dependent information */
188
NSString *NSWeekDayNameArray;
190
NSString *NSShortWeekDayNameArray;
192
NSString *NSMonthNameArray;
194
NSString *NSShortMonthNameArray;
196
NSString *NSTimeFormatString;
198
NSString *NSDateFormatString;
200
NSString *NSShortDateFormatString;
202
NSString *NSTimeDateFormatString;
204
NSString *NSShortTimeDateFormatString;
206
NSString *NSCurrencySymbol;
208
NSString *NSDecimalSeparator;
210
NSString *NSThousandsSeparator;
212
NSString *NSInternationalCurrencyString;
214
NSString *NSCurrencyString;
216
NSString *NSNegativeCurrencyFormatString;
218
NSString *NSPositiveCurrencyFormatString;
220
NSString *NSDecimalDigits;
222
NSString *NSAMPMDesignation;
225
NSString *NSHourNameDesignations;
227
NSString *NSYearMonthWeekDesignations;
229
NSString *NSEarlierTimeDesignations;
231
NSString *NSLaterTimeDesignations;
233
NSString *NSThisDayDesignations;
235
NSString *NSNextDayDesignations;
237
NSString *NSNextNextDayDesignations;
239
NSString *NSPriorDayDesignations;
241
NSString *NSDateTimeOrdering;
141
NSString *NSWeekDayNameArray = @"NSWeekDayNameArray";
143
NSString *NSShortWeekDayNameArray = @"NSShortWeekDayNameArray";
145
NSString *NSMonthNameArray = @"NSMonthNameArray";
147
NSString *NSShortMonthNameArray = @"NSShortMonthNameArray";
149
NSString *NSTimeFormatString = @"NSTimeFormatString";
151
NSString *NSDateFormatString = @"NSDateFormatString";
153
NSString *NSShortDateFormatString = @"NSShortDateFormatString";
155
NSString *NSTimeDateFormatString = @"NSTimeDateFormatString";
157
NSString *NSShortTimeDateFormatString = @"NSShortTimeDateFormatString";
159
NSString *NSCurrencySymbol = @"NSCurrencySymbol";
161
NSString *NSDecimalSeparator = @"NSDecimalSeparator";
163
NSString *NSThousandsSeparator = @"NSThousandsSeparator";
165
NSString *NSInternationalCurrencyString = @"NSInternationalCurrencyString";
167
NSString *NSCurrencyString = @"NSCurrencyString";
169
NSString *NSNegativeCurrencyFormatString = @"NSNegativeCurrencyFormatString";
171
NSString *NSPositiveCurrencyFormatString = @"NSPositiveCurrencyFormatString";
173
NSString *NSDecimalDigits = @"NSDecimalDigits";
175
NSString *NSAMPMDesignation = @"NSAMPMDesignation";
178
NSString *NSHourNameDesignations = @"NSHourNameDesignations";
180
NSString *NSYearMonthWeekDesignations = @"NSYearMonthWeekDesignations";
182
NSString *NSEarlierTimeDesignations = @"NSEarlierTimeDesignations";
184
NSString *NSLaterTimeDesignations = @"NSLaterTimeDesignations";
186
NSString *NSThisDayDesignations = @"NSThisDayDesignations";
188
NSString *NSNextDayDesignations = @"NSNextDayDesignations";
190
NSString *NSNextNextDayDesignations = @"NSNextNextDayDesignations";
192
NSString *NSPriorDayDesignations = @"NSPriorDayDesignations";
194
NSString *NSDateTimeOrdering = @"NSDateTimeOrdering";
244
197
/* These are in OPENSTEP 4.2 */
245
NSString *NSLanguageCode;
247
NSString *NSLanguageName;
249
NSString *NSFormalName;
198
NSString *NSLanguageCode = @"NSLanguageCode";
200
NSString *NSLanguageName = @"NSLanguageName";
202
NSString *NSFormalName = @"NSFormalName";
251
204
/* For GNUstep */
205
NSString *NSLocale = @"NSLocale";
256
209
* Keys for the NSDictionary returned by [NSConnection -statistics]
258
211
/* These in OPENSTEP 4.2 */
259
NSString *NSConnectionRepliesReceived;
261
NSString *NSConnectionRepliesSent;
263
NSString *NSConnectionRequestsReceived;
265
NSString *NSConnectionRequestsSent;
212
NSString *NSConnectionRepliesReceived = @"NSConnectionRepliesReceived";
214
NSString *NSConnectionRepliesSent = @"NSConnectionRepliesSent";
216
NSString *NSConnectionRequestsReceived = @"NSConnectionRequestsReceived";
218
NSString *NSConnectionRequestsSent = @"NSConnectionRequestsSent";
267
220
/* These Are GNUstep extras */
268
NSString *NSConnectionLocalCount;
270
NSString *NSConnectionProxyCount;
273
* Keys for NSURLHandle
275
NSString *NSHTTPPropertyStatusCodeKey;
277
NSString *NSHTTPPropertyStatusReasonKey;
279
NSString *NSHTTPPropertyServerHTTPVersionKey;
281
NSString *NSHTTPPropertyRedirectionHeadersKey;
283
NSString *NSHTTPPropertyErrorPageDataKey;
285
/* These are GNUstep extras */
286
NSString *GSHTTPPropertyMethodKey;
288
NSString *GSHTTPPropertyProxyHostKey;
290
NSString *GSHTTPPropertyProxyPortKey;
221
NSString *NSConnectionLocalCount = @"NSConnectionLocalCount";
223
NSString *NSConnectionProxyCount = @"NSConnectionProxyCount";
293
225
/* Class description notification */
294
NSString *NSClassDescriptionNeededForClassNotification;
226
NSString *NSClassDescriptionNeededForClassNotification = @"NSClassDescriptionNeededForClassNotification";
298
* Setup function called when NSString is initialised.
299
* We make all the constant strings not be constant strings so they can
300
* cache their hash values and be used much more efficiently as keys in
230
* Optimization function called when NSObject is initialised.
231
* We replace all the constant strings so they can
232
* cache their hash values and be used much more efficiently as keys in
234
* We initialize with constant strings so that
235
* code executed before NSObject +initialize calls us,
236
* will have valid values.
306
static Class SClass = 0;
242
static Class NSStringClass = 0;
244
if (NSStringClass == 0)
310
SClass = [NSString class];
246
NSStringClass = [NSString class];
312
249
* Ensure that NSString is initialized ... because we are called
313
250
* from [NSObject +initialize] which might be executing as a
314
251
* result of a call to [NSString +initialize] !
252
* Use performSelector: to avoid compiler warning about clash of
253
* return value types in two different versions of initialize.
317
InPortAcceptedClientNotification
318
= [[SClass alloc] initWithCString:
319
"InPortAcceptedClientNotification"];
320
InPortClientBecameInvalidNotification
321
= [[SClass alloc] initWithCString:
322
"InPortClientBecameInvalidNotification"];
324
= [[SClass alloc] initWithCString: "NSAMPMDesignation"];
326
= [[SClass alloc] initWithCString: "NSArgumentDomain"];
327
NSBundleDidLoadNotification
328
= [[SClass alloc] initWithCString: "NSBundleDidLoadNotification"];
329
*(NSString**)&NSCharacterConversionException
330
= [[SClass alloc] initWithCString:
331
"NSCharacterConversionException"];
332
NSConnectionDidDieNotification
333
= [[SClass alloc] initWithCString:
334
"NSConnectionDidDieNotification"];
335
NSConnectionDidInitializeNotification
336
= [[SClass alloc] initWithCString:
337
"NSConnectionDidInitializeNotification"];
338
NSConnectionLocalCount
339
= [[SClass alloc] initWithCString: "NSConnectionLocalCount"];
340
NSConnectionProxyCount
341
= [[SClass alloc] initWithCString: "NSConnectionProxyCount"];
342
NSConnectionRepliesReceived
343
= [[SClass alloc] initWithCString: "NSConnectionRepliesReceived"];
344
NSConnectionRepliesSent
345
= [[SClass alloc] initWithCString: "NSConnectionRepliesSent"];
346
NSConnectionReplyMode
347
= [[SClass alloc] initWithCString: "NSConnectionReplyMode"];
348
NSConnectionRequestsReceived
349
= [[SClass alloc] initWithCString: "NSConnectionRequestsReceived"];
350
NSConnectionRequestsSent
351
= [[SClass alloc] initWithCString: "NSConnectionRequestsSent"];
353
= [[SClass alloc] initWithCString: "NSCurrencyString"];
355
= [[SClass alloc] initWithCString: "NSCurrencySymbol"];
357
= [[SClass alloc] initWithCString: "NSDateFormatString"];
359
= [[SClass alloc] initWithCString: "NSDateTimeOrdering"];
361
= [[SClass alloc] initWithCString: "NSDecimalDigits"];
363
= [[SClass alloc] initWithCString: "NSDecimalSeparator"];
365
= [[SClass alloc] initWithCString: "NSDefaultRunLoopMode"];
366
NSEarlierTimeDesignations
367
= [[SClass alloc] initWithCString: "NSEarlierTimeDesignations"];
368
NSFailedAuthenticationException
369
= [[SClass alloc] initWithCString:
370
"NSFailedAuthenticationException"];
371
NSFileDeviceIdentifier
372
= [[SClass alloc] initWithCString: "NSFileDeviceIdentifier"];
373
NSFileGroupOwnerAccountName
374
= [[SClass alloc] initWithCString: "NSFileGroupOwnerAccountName"];
375
NSFileGroupOwnerAccountNumber
376
= [[SClass alloc] initWithCString: "NSFileGroupOwnerAccountNumber"];
377
NSFileModificationDate
378
= [[SClass alloc] initWithCString: "NSFileModificationDate"];
379
NSFileOwnerAccountName
380
= [[SClass alloc] initWithCString: "NSFileOwnerAccountName"];
381
NSFileOwnerAccountNumber
382
= [[SClass alloc] initWithCString: "NSFileOwnerAccountNumber"];
383
NSFilePosixPermissions
384
= [[SClass alloc] initWithCString: "NSFilePosixPermissions"];
386
= [[SClass alloc] initWithCString: "NSFileReferenceCount"];
388
= [[SClass alloc] initWithCString: "NSFileSize"];
389
NSFileSystemFileNumber
390
= [[SClass alloc] initWithCString: "NSFileSystemFileNumber"];
391
NSFileSystemFreeNodes
392
= [[SClass alloc] initWithCString: "NSFileSystemFreeNodes"];
394
= [[SClass alloc] initWithCString: "NSFileSystemFreeSize"];
396
= [[SClass alloc] initWithCString: "NSFileSystemNodes"];
398
= [[SClass alloc] initWithCString: "NSFileSystemNumber"];
400
= [[SClass alloc] initWithCString: "NSFileSystemSize"];
402
= [[SClass alloc] initWithCString: "NSFileType"];
403
NSFileTypeBlockSpecial
404
= [[SClass alloc] initWithCString: "NSFileTypeBlockSpecial"];
405
NSFileTypeCharacterSpecial
406
= [[SClass alloc] initWithCString: "NSFileTypeCharacterSpecial"];
408
= [[SClass alloc] initWithCString: "NSFileTypeDirectory"];
410
= [[SClass alloc] initWithCString: "NSFileTypeFifo"];
412
= [[SClass alloc] initWithCString: "NSFileTypeRegular"];
414
= [[SClass alloc] initWithCString: "NSFileTypeSocket"];
415
NSFileTypeSymbolicLink
416
= [[SClass alloc] initWithCString: "NSFileTypeSymbolicLink"];
418
= [[SClass alloc] initWithCString: "NSFileTypeUnknown"];
420
= [[SClass alloc] initWithCString: "NSFormalName"];
421
*(NSString**)&NSGenericException
422
= [[SClass alloc] initWithCString: "NSGenericException"];
424
= [[SClass alloc] initWithCString: "NSGlobalDomain"];
425
NSHourNameDesignations
426
= [[SClass alloc] initWithCString: "NSHourNameDesignations"];
427
NSInconsistentArchiveException
428
= [[SClass alloc] initWithCString:
429
"NSInconsistentArchiveException"];
430
*(NSString**)&NSInternalInconsistencyException
431
= [[SClass alloc] initWithCString:
432
"NSInternalInconsistencyException"];
433
NSInternationalCurrencyString
434
= [[SClass alloc] initWithCString: "NSInternationalCurrencyString"];
435
*(NSString**)&NSInvalidArgumentException
436
= [[SClass alloc] initWithCString: "NSInvalidArgumentException"];
438
= [[SClass alloc] initWithCString: "NSLanguageCode"];
440
= [[SClass alloc] initWithCString: "NSLanguageName"];
441
NSLaterTimeDesignations
442
= [[SClass alloc] initWithCString: "NSLaterTimeDesignations"];
444
= [[SClass alloc] initWithCString: "NSLoadedClasses"];
446
= [[SClass alloc] initWithCString: "NSLocale"];
447
*(NSString**)&NSMallocException
448
= [[SClass alloc] initWithCString: "NSMallocException"];
450
= [[SClass alloc] initWithCString: "NSMonthNameArray"];
451
NSNegativeCurrencyFormatString
452
= [[SClass alloc] initWithCString:
453
"NSNegativeCurrencyFormatString"];
454
NSNextDayDesignations
455
= [[SClass alloc] initWithCString: "NSNextDayDesignations"];
456
NSNextNextDayDesignations
457
= [[SClass alloc] initWithCString: "NSNextNextDayDesignations"];
458
NSPortDidBecomeInvalidNotification
459
= [[SClass alloc] initWithCString:
460
"NSPortDidBecomeInvalidNotification"];
461
NSPortTimeoutException
462
= [[SClass alloc] initWithCString: "NSPortTimeoutException"];
463
NSPositiveCurrencyFormatString
464
= [[SClass alloc] initWithCString:
465
"NSPositiveCurrencyFormatString"];
466
NSPriorDayDesignations
467
= [[SClass alloc] initWithCString: "NSPriorDayDesignations"];
468
*(NSString**)&NSRangeException
469
= [[SClass alloc] initWithCString: "NSRangeException"];
471
= [[SClass alloc] initWithCString: "NSRegistrationDomain"];
472
NSShortDateFormatString
473
= [[SClass alloc] initWithCString: "NSShortDateFormatString"];
474
NSShortMonthNameArray
475
= [[SClass alloc] initWithCString: "NSShortMonthNameArray"];
476
NSShortTimeDateFormatString
477
= [[SClass alloc] initWithCString: "NSShortTimeDateFormatString"];
478
NSShortWeekDayNameArray
479
= [[SClass alloc] initWithCString: "NSShortWeekDayNameArray"];
480
NSShowNonLocalizedStrings
481
= [[SClass alloc] initWithCString: "NSShowNonLocalizedStrings"];
482
NSThisDayDesignations
483
= [[SClass alloc] initWithCString: "NSThisDayDesignations"];
485
= [[SClass alloc] initWithCString: "NSThousandsSeparator"];
486
NSThreadDidStartNotification
487
= [[SClass alloc] initWithCString: "NSThreadDidStartNotification"];
488
NSThreadWillExitNotification
489
= [[SClass alloc] initWithCString: "NSThreadWillExitNotification"];
490
NSTimeDateFormatString
491
= [[SClass alloc] initWithCString: "NSTimeDateFormatString"];
493
= [[SClass alloc] initWithCString: "NSTimeFormatString"];
494
NSUserDefaultsDidChangeNotification
495
= [[SClass alloc] initWithCString:
496
"NSUserDefaultsDidChangeNotification"];
498
= [[SClass alloc] initWithCString: "NSWeekDayNameArray"];
499
NSWillBecomeMultiThreadedNotification
500
= [[SClass alloc] initWithCString:
501
"NSWillBecomeMultiThreadedNotification"];
502
NSYearMonthWeekDesignations
503
= [[SClass alloc] initWithCString: "NSYearMonthWeekDesignations"];
504
PortBecameInvalidNotification
505
= [[SClass alloc] initWithCString: "PortBecameInvalidNotification"];
507
= [[SClass alloc] initWithCString: "StreamException"];
509
NSHTTPPropertyStatusCodeKey
510
= [[SClass alloc] initWithCString: "HTTPPropertyStatusCodeKey"];
511
NSHTTPPropertyStatusReasonKey
512
= [[SClass alloc] initWithCString: "HTTPPropertyStatusReasonKey"];
513
NSHTTPPropertyServerHTTPVersionKey
514
= [[SClass alloc] initWithCString: "HTTPPropertyServerHTTPVersionKey"];
515
NSHTTPPropertyRedirectionHeadersKey
516
= [[SClass alloc] initWithCString: "HTTPPropertyRedirectionHeadersKey"];
517
NSHTTPPropertyErrorPageDataKey
518
= [[SClass alloc] initWithCString: "HTTPPropertyErrorPageDataKey"];
520
GSHTTPPropertyMethodKey
521
= [[SClass alloc] initWithCString: "GSHTTPPropertyMethodKey"];
522
GSHTTPPropertyProxyHostKey
523
= [[SClass alloc] initWithCString: "GSHTTPPropertyProxyHostKey"];
524
GSHTTPPropertyProxyPortKey
525
= [[SClass alloc] initWithCString: "GSHTTPPropertyProxyPortKey"];
527
NSClassDescriptionNeededForClassNotification
528
= [[SClass alloc] initWithCString:
529
"NSClassDescriptionNeededForClassNotification"];
255
[NSStringClass performSelector: @selector(initialize)];
257
GS_REPLACE_CONSTANT_STRING(GSNetworkNotificationCenterType);
258
GS_REPLACE_CONSTANT_STRING(InPortAcceptedClientNotification);
259
GS_REPLACE_CONSTANT_STRING(InPortClientBecameInvalidNotification);
260
GS_REPLACE_CONSTANT_STRING(NSAMPMDesignation);
261
GS_REPLACE_CONSTANT_STRING(NSArgumentDomain);
262
GS_REPLACE_CONSTANT_STRING(NSBundleDidLoadNotification);
263
GS_REPLACE_CONSTANT_STRING(NSClassDescriptionNeededForClassNotification);
264
GS_REPLACE_CONSTANT_STRING(NSConnectionDidDieNotification);
265
GS_REPLACE_CONSTANT_STRING(NSConnectionDidInitializeNotification);
266
GS_REPLACE_CONSTANT_STRING(NSConnectionLocalCount);
267
GS_REPLACE_CONSTANT_STRING(NSConnectionProxyCount);
268
GS_REPLACE_CONSTANT_STRING(NSConnectionRepliesReceived);
269
GS_REPLACE_CONSTANT_STRING(NSConnectionRepliesSent);
270
GS_REPLACE_CONSTANT_STRING(NSConnectionReplyMode);
271
GS_REPLACE_CONSTANT_STRING(NSConnectionRequestsReceived);
272
GS_REPLACE_CONSTANT_STRING(NSConnectionRequestsSent);
273
GS_REPLACE_CONSTANT_STRING(NSCurrencyString);
274
GS_REPLACE_CONSTANT_STRING(NSCurrencySymbol);
275
GS_REPLACE_CONSTANT_STRING(NSDateFormatString);
276
GS_REPLACE_CONSTANT_STRING(NSDateTimeOrdering);
277
GS_REPLACE_CONSTANT_STRING(NSDecimalDigits);
278
GS_REPLACE_CONSTANT_STRING(NSDecimalSeparator);
279
GS_REPLACE_CONSTANT_STRING(NSEarlierTimeDesignations);
280
GS_REPLACE_CONSTANT_STRING(NSFormalName);
281
GS_REPLACE_CONSTANT_STRING(NSGlobalDomain);
282
GS_REPLACE_CONSTANT_STRING(NSHourNameDesignations);
283
GS_REPLACE_CONSTANT_STRING(NSInternationalCurrencyString);
284
GS_REPLACE_CONSTANT_STRING(NSLanguageCode);
285
GS_REPLACE_CONSTANT_STRING(NSLanguageName);
286
GS_REPLACE_CONSTANT_STRING(NSLaterTimeDesignations);
287
GS_REPLACE_CONSTANT_STRING(NSLoadedClasses);
288
GS_REPLACE_CONSTANT_STRING(NSLocale);
289
GS_REPLACE_CONSTANT_STRING(NSLocalNotificationCenterType);
290
GS_REPLACE_CONSTANT_STRING(NSMonthNameArray);
291
GS_REPLACE_CONSTANT_STRING(NSNegativeCurrencyFormatString);
292
GS_REPLACE_CONSTANT_STRING(NSNextDayDesignations);
293
GS_REPLACE_CONSTANT_STRING(NSNextNextDayDesignations);
294
GS_REPLACE_CONSTANT_STRING(NSPortDidBecomeInvalidNotification);
295
GS_REPLACE_CONSTANT_STRING(NSPositiveCurrencyFormatString);
296
GS_REPLACE_CONSTANT_STRING(NSPriorDayDesignations);
297
GS_REPLACE_CONSTANT_STRING(NSRegistrationDomain);
298
GS_REPLACE_CONSTANT_STRING(NSShortDateFormatString);
299
GS_REPLACE_CONSTANT_STRING(NSShortMonthNameArray);
300
GS_REPLACE_CONSTANT_STRING(NSShortTimeDateFormatString);
301
GS_REPLACE_CONSTANT_STRING(NSShortWeekDayNameArray);
302
GS_REPLACE_CONSTANT_STRING(NSShowNonLocalizedStrings);
303
GS_REPLACE_CONSTANT_STRING(NSTaskDidTerminateNotification);
304
GS_REPLACE_CONSTANT_STRING(NSThisDayDesignations);
305
GS_REPLACE_CONSTANT_STRING(NSThousandsSeparator);
306
GS_REPLACE_CONSTANT_STRING(NSThreadDidStartNotification);
307
GS_REPLACE_CONSTANT_STRING(NSThreadWillExitNotification);
308
GS_REPLACE_CONSTANT_STRING(NSTimeDateFormatString);
309
GS_REPLACE_CONSTANT_STRING(NSTimeFormatString);
310
GS_REPLACE_CONSTANT_STRING(NSUndoManagerCheckpointNotification);
311
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidOpenUndoGroupNotification);
312
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidRedoChangeNotification);
313
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidUndoChangeNotification);
314
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillCloseUndoGroupNotification);
315
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillRedoChangeNotification);
316
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillUndoChangeNotification);
317
GS_REPLACE_CONSTANT_STRING(NSURLFileScheme);
318
GS_REPLACE_CONSTANT_STRING(NSUserDefaultsDidChangeNotification);
319
GS_REPLACE_CONSTANT_STRING(NSWeekDayNameArray);
320
GS_REPLACE_CONSTANT_STRING(NSWillBecomeMultiThreadedNotification);
321
GS_REPLACE_CONSTANT_STRING(NSYearMonthWeekDesignations);
322
GS_REPLACE_CONSTANT_STRING(PortBecameInvalidNotification);
323
GS_REPLACE_CONSTANT_STRING(StreamException);
535
/* These are to increase readabilty locally. */
536
typedef unsigned int (*NSMT_hash_func_t)(NSMapTable *, const void *);
537
typedef BOOL (*NSMT_is_equal_func_t)(NSMapTable *, const void *, const void *);
538
typedef void (*NSMT_retain_func_t)(NSMapTable *, const void *);
539
typedef void (*NSMT_release_func_t)(NSMapTable *, const void *);
540
typedef NSString *(*NSMT_describe_func_t)(NSMapTable *, const void *);
543
/* Standard MapTable callbacks */
544
const NSMapTableKeyCallBacks NSIntMapKeyCallBacks =
546
(NSMT_hash_func_t) _NS_int_hash,
547
(NSMT_is_equal_func_t) _NS_int_is_equal,
548
(NSMT_retain_func_t) _NS_int_retain,
549
(NSMT_release_func_t) _NS_int_release,
550
(NSMT_describe_func_t) _NS_int_describe,
554
const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks =
556
(NSMT_hash_func_t) _NS_non_owned_void_p_hash,
557
(NSMT_is_equal_func_t) _NS_non_owned_void_p_is_equal,
558
(NSMT_retain_func_t) _NS_non_owned_void_p_retain,
559
(NSMT_release_func_t) _NS_non_owned_void_p_release,
560
(NSMT_describe_func_t) _NS_non_owned_void_p_describe,
564
const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks =
566
(NSMT_hash_func_t) _NS_non_owned_void_p_hash,
567
(NSMT_is_equal_func_t) _NS_non_owned_void_p_is_equal,
568
(NSMT_retain_func_t) _NS_non_owned_void_p_retain,
569
(NSMT_release_func_t) _NS_non_owned_void_p_release,
570
(NSMT_describe_func_t) _NS_non_owned_void_p_describe,
574
const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks =
576
(NSMT_hash_func_t) _NS_non_retained_id_hash,
577
(NSMT_is_equal_func_t) _NS_non_retained_id_is_equal,
578
(NSMT_retain_func_t) _NS_non_retained_id_retain,
579
(NSMT_release_func_t) _NS_non_retained_id_release,
580
(NSMT_describe_func_t) _NS_non_retained_id_describe,
584
const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks =
586
(NSMT_hash_func_t) _NS_id_hash,
587
(NSMT_is_equal_func_t) _NS_id_is_equal,
588
(NSMT_retain_func_t) _NS_id_retain,
589
(NSMT_release_func_t) _NS_id_release,
590
(NSMT_describe_func_t) _NS_id_describe,
594
const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks =
596
(NSMT_hash_func_t) _NS_owned_void_p_hash,
597
(NSMT_is_equal_func_t) _NS_owned_void_p_is_equal,
598
(NSMT_retain_func_t) _NS_owned_void_p_retain,
599
(NSMT_release_func_t) _NS_owned_void_p_release,
600
(NSMT_describe_func_t) _NS_owned_void_p_describe,
604
const NSMapTableValueCallBacks NSIntMapValueCallBacks =
606
(NSMT_retain_func_t) _NS_int_retain,
607
(NSMT_release_func_t) _NS_int_release,
608
(NSMT_describe_func_t) _NS_int_describe
611
const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks =
613
(NSMT_retain_func_t) _NS_non_owned_void_p_retain,
614
(NSMT_release_func_t) _NS_non_owned_void_p_release,
615
(NSMT_describe_func_t) _NS_non_owned_void_p_describe
618
const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks =
620
(NSMT_retain_func_t) _NS_non_retained_id_retain,
621
(NSMT_release_func_t) _NS_non_retained_id_release,
622
(NSMT_describe_func_t) _NS_non_retained_id_describe
625
const NSMapTableValueCallBacks NSObjectMapValueCallBacks =
627
(NSMT_retain_func_t) _NS_id_retain,
628
(NSMT_release_func_t) _NS_id_release,
629
(NSMT_describe_func_t) _NS_id_describe
632
const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks =
634
(NSMT_retain_func_t) _NS_owned_void_p_retain,
635
(NSMT_release_func_t) _NS_owned_void_p_release,
636
(NSMT_describe_func_t) _NS_owned_void_p_describe
639
/* These are to increase readabilty locally. */
640
typedef unsigned int (*NSHT_hash_func_t)(NSHashTable *, const void *);
641
typedef BOOL (*NSHT_isEqual_func_t)(NSHashTable *, const void *, const void *);
642
typedef void (*NSHT_retain_func_t)(NSHashTable *, const void *);
643
typedef void (*NSHT_release_func_t)(NSHashTable *, const void *);
644
typedef NSString *(*NSHT_describe_func_t)(NSHashTable *, const void *);
646
/**** Function Prototypes ****************************************************/
647
/** Standard NSHashTable callbacks... **/
649
const NSHashTableCallBacks NSIntHashCallBacks =
651
(NSHT_hash_func_t) _NS_int_hash,
652
(NSHT_isEqual_func_t) _NS_int_is_equal,
653
(NSHT_retain_func_t) _NS_int_retain,
654
(NSHT_release_func_t) _NS_int_release,
655
(NSHT_describe_func_t) _NS_int_describe
658
const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks =
660
(NSHT_hash_func_t) _NS_non_owned_void_p_hash,
661
(NSHT_isEqual_func_t) _NS_non_owned_void_p_is_equal,
662
(NSHT_retain_func_t) _NS_non_owned_void_p_retain,
663
(NSHT_release_func_t) _NS_non_owned_void_p_release,
664
(NSHT_describe_func_t) _NS_non_owned_void_p_describe
667
const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks =
669
(NSHT_hash_func_t) _NS_non_retained_id_hash,
670
(NSHT_isEqual_func_t) _NS_non_retained_id_is_equal,
671
(NSHT_retain_func_t) _NS_non_retained_id_retain,
672
(NSHT_release_func_t) _NS_non_retained_id_release,
673
(NSHT_describe_func_t) _NS_non_retained_id_describe
676
const NSHashTableCallBacks NSObjectHashCallBacks =
678
(NSHT_hash_func_t) _NS_id_hash,
679
(NSHT_isEqual_func_t) _NS_id_is_equal,
680
(NSHT_retain_func_t) _NS_id_retain,
681
(NSHT_release_func_t) _NS_id_release,
682
(NSHT_describe_func_t) _NS_id_describe
685
const NSHashTableCallBacks NSOwnedPointerHashCallBacks =
687
(NSHT_hash_func_t) _NS_owned_void_p_hash,
688
(NSHT_isEqual_func_t) _NS_owned_void_p_is_equal,
689
(NSHT_retain_func_t) _NS_owned_void_p_retain,
690
(NSHT_release_func_t) _NS_owned_void_p_release,
691
(NSHT_describe_func_t) _NS_owned_void_p_describe
694
const NSHashTableCallBacks NSPointerToStructHashCallBacks =
696
(NSHT_hash_func_t) _NS_int_p_hash,
697
(NSHT_isEqual_func_t) _NS_int_p_is_equal,
698
(NSHT_retain_func_t) _NS_int_p_retain,
699
(NSHT_release_func_t) _NS_int_p_release,
700
(NSHT_describe_func_t) _NS_int_p_describe
329
/* For bug in gcc 3.1. See NSByteOrder.h */
330
void _gcc3_1_hack(void){}