mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Headers/Foundation/NSString.h
make NSStringEncoding enum typdef to NSUInteger * Source/Additions/Unicode.m fix format string to print out NSStringEncoding OK Richard git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36678 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4fd0ca901
commit
5c58cc793a
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-05-29 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
* Headers/Foundation/NSString.h
|
||||
make NSStringEncoding enum typdef to NSUInteger
|
||||
* Source/Additions/Unicode.m
|
||||
fix format string to print out NSStringEncoding
|
||||
|
||||
2013-05-17 Ivan Vučica <ivan@vucica.net>
|
||||
|
||||
* Source/NSDate.m:
|
||||
|
|
|
@ -148,7 +148,7 @@ typedef NSUInteger NSStringCompareOptions;
|
|||
* NSGSM0338StringEncoding, NSBIG5StringEncoding,
|
||||
* NSKoreanEUCStringEncoding</code>.</p>
|
||||
*/
|
||||
typedef enum _NSStringEncoding
|
||||
enum
|
||||
{
|
||||
/* NB. Must not have an encoding with value zero - so we can use zero to
|
||||
tell that a variable that should contain an encoding has not yet been
|
||||
|
@ -204,7 +204,8 @@ typedef enum _NSStringEncoding
|
|||
NSUTF32BigEndianStringEncoding = 0x98000100,
|
||||
NSUTF32LittleEndianStringEncoding = 0x9c000100
|
||||
#endif
|
||||
} NSStringEncoding;
|
||||
};
|
||||
typedef NSUInteger NSStringEncoding;
|
||||
|
||||
enum {
|
||||
NSOpenStepUnicodeReservedBase = 0xF400
|
||||
|
|
|
@ -1350,7 +1350,7 @@ tables:
|
|||
*/
|
||||
if (estr == 0)
|
||||
{
|
||||
NSLog(@"GSToUnicode() No iconv for encoding x%02x", enc);
|
||||
NSLog(@"GSToUnicode() No iconv for encoding x%02"PRIxPTR, enc);
|
||||
result = NO;
|
||||
goto done;
|
||||
}
|
||||
|
@ -2313,7 +2313,7 @@ iconv_start:
|
|||
*/
|
||||
if (estr == 0)
|
||||
{
|
||||
NSLog(@"GSFromUnicode() No iconv for encoding x%02x", enc);
|
||||
NSLog(@"GSFromUnicode() No iconv for encoding x%02"PRIxPTR, enc);
|
||||
result = NO;
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue