mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
* Source/Additions/GSMime.m: Use specific IMP type for method
returning BOOL value. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33763 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2bc519b3c2
commit
028ad4a59c
2 changed files with 16 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-08-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/Additions/GSMime.m: Use specific IMP type for method
|
||||||
|
returning BOOL value.
|
||||||
|
|
||||||
2011-08-17 Niels Grewe <niels.grewe@halbordnung.de>
|
2011-08-17 Niels Grewe <niels.grewe@halbordnung.de>
|
||||||
|
|
||||||
* config/objc-common.h: Include stdlib.h for the prototype of calloc().
|
* config/objc-common.h: Include stdlib.h for the prototype of calloc().
|
||||||
|
|
|
@ -120,6 +120,8 @@ static Class NSArrayClass = 0;
|
||||||
static Class NSStringClass = 0;
|
static Class NSStringClass = 0;
|
||||||
static Class documentClass = 0;
|
static Class documentClass = 0;
|
||||||
|
|
||||||
|
typedef BOOL (*boolIMP)(id, SEL, id);
|
||||||
|
|
||||||
@interface GSMimeDocument (Private)
|
@interface GSMimeDocument (Private)
|
||||||
- (GSMimeHeader*) _lastHeaderNamed: (NSString*)name;
|
- (GSMimeHeader*) _lastHeaderNamed: (NSString*)name;
|
||||||
- (NSUInteger) _indexOfHeaderNamed: (NSString*)name;
|
- (NSUInteger) _indexOfHeaderNamed: (NSString*)name;
|
||||||
|
@ -5371,12 +5373,12 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
{
|
||||||
IMP imp1;
|
IMP imp1;
|
||||||
IMP imp2;
|
boolIMP imp2;
|
||||||
|
|
||||||
name = [name lowercaseString];
|
name = [name lowercaseString];
|
||||||
|
|
||||||
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
||||||
imp2 = [name methodForSelector: @selector(isEqualToString:)];
|
imp2 = (boolIMP)[name methodForSelector: @selector(isEqualToString:)];
|
||||||
while (count-- > 0)
|
while (count-- > 0)
|
||||||
{
|
{
|
||||||
GSMimeHeader *info;
|
GSMimeHeader *info;
|
||||||
|
@ -5418,11 +5420,11 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
{
|
{
|
||||||
NSUInteger index;
|
NSUInteger index;
|
||||||
IMP imp1;
|
IMP imp1;
|
||||||
IMP imp2;
|
boolIMP imp2;
|
||||||
|
|
||||||
name = [GSMimeHeader makeToken: name preservingCase: NO];
|
name = [GSMimeHeader makeToken: name preservingCase: NO];
|
||||||
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
||||||
imp2 = [name methodForSelector: @selector(isEqualToString:)];
|
imp2 = (boolIMP)[name methodForSelector: @selector(isEqualToString:)];
|
||||||
for (index = 0; index < count; index++)
|
for (index = 0; index < count; index++)
|
||||||
{
|
{
|
||||||
GSMimeHeader *info;
|
GSMimeHeader *info;
|
||||||
|
@ -5452,10 +5454,10 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
NSUInteger index;
|
NSUInteger index;
|
||||||
NSMutableArray *array;
|
NSMutableArray *array;
|
||||||
IMP imp1;
|
IMP imp1;
|
||||||
IMP imp2;
|
boolIMP imp2;
|
||||||
|
|
||||||
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
||||||
imp2 = [name methodForSelector: @selector(isEqualToString:)];
|
imp2 = (boolIMP)[name methodForSelector: @selector(isEqualToString:)];
|
||||||
array = [NSMutableArray array];
|
array = [NSMutableArray array];
|
||||||
|
|
||||||
for (index = 0; index < count; index++)
|
for (index = 0; index < count; index++)
|
||||||
|
@ -6329,7 +6331,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
{
|
{
|
||||||
NSUInteger index;
|
NSUInteger index;
|
||||||
IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
||||||
IMP imp2 = [name methodForSelector: @selector(isEqualToString:)];
|
boolIMP imp2 = (boolIMP)[name methodForSelector: @selector(isEqualToString:)];
|
||||||
|
|
||||||
for (index = 0; index < count; index++)
|
for (index = 0; index < count; index++)
|
||||||
{
|
{
|
||||||
|
@ -6352,7 +6354,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
{
|
||||||
IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)];
|
||||||
IMP imp2 = [name methodForSelector: @selector(isEqualToString:)];
|
boolIMP imp2 = (boolIMP)[name methodForSelector: @selector(isEqualToString:)];
|
||||||
|
|
||||||
while (count-- > 0)
|
while (count-- > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue