mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
User language tidyups and performance enhancements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19079 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01b40beefb
commit
a9fd37a6b6
3 changed files with 160 additions and 129 deletions
|
@ -41,6 +41,12 @@ int main ()
|
|||
struct objc_struct_layout layout;
|
||||
unsigned i;
|
||||
|
||||
NSLog(@"Orig: %@", [NSUserDefaults userLanguages]);
|
||||
[NSUserDefaults setUserLanguages: [NSArray arrayWithObject: @"Bletch"]];
|
||||
NSLog(@"Set: %@", [NSUserDefaults userLanguages]);
|
||||
[NSUserDefaults setUserLanguages: [NSArray arrayWithObject: @"English"]];
|
||||
NSLog(@"Set: %@", [NSUserDefaults userLanguages]);
|
||||
|
||||
printf("size = %d\n", objc_sizeof_type(@encode(struct aa)));
|
||||
printf("pos = %d\n", (void*)&bb[1] - (void*)&bb[0]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue