Export string constants and annotate exported function implementations

Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
This commit is contained in:
Frederik Seiffert 2021-03-26 16:06:49 +01:00 committed by Frederik Seiffert
parent fb84b3b1e8
commit 0582eddd96
47 changed files with 769 additions and 945 deletions

View file

@ -1089,13 +1089,10 @@ static id gs_weak_load(id obj)
autorelease_sel = @selector(addObject:);
autorelease_imp = [autorelease_class methodForSelector: autorelease_sel];
/* Make sure the constant string class works and set up well-known
* string constants etc.
/* Make sure the constant string class works.
*/
NSConstantStringClass = [NSString constantStringClass];
GSPrivateBuildStrings();
/* Now that the string class (and autorelease) is set up, we can set
* the name of the lock to a string value safely.
*/