mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
Tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fc054337ac
commit
ae3eeab2f6
1 changed files with 93 additions and 89 deletions
|
@ -23,10 +23,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Implementation for NSNotificationQueue for GNUStep
|
/* Implementation for NSNotificationQueue for GNUStep
|
||||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
Copyright (C) 1997-1999 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Modified by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Modified by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
Date: 1997
|
Date: 1997
|
||||||
|
Rewritten: 1999
|
||||||
|
|
||||||
This file is part of the GNUstep Base Library.
|
This file is part of the GNUstep Base Library.
|
||||||
|
|
||||||
|
@ -313,7 +314,7 @@ add_to_queue(
|
||||||
{
|
{
|
||||||
NSNotificationQueueRegistration *item;
|
NSNotificationQueueRegistration *item;
|
||||||
|
|
||||||
// remove from classs instances list
|
// remove from class instances list
|
||||||
[NotificationQueueList unregisterQueue: self];
|
[NotificationQueueList unregisterQueue: self];
|
||||||
|
|
||||||
// release self
|
// release self
|
||||||
|
@ -340,7 +341,8 @@ add_to_queue(
|
||||||
id object = [notification object];
|
id object = [notification object];
|
||||||
|
|
||||||
// find in ASAP notification in queue
|
// find in ASAP notification in queue
|
||||||
for (item = asapQueue->tail; item; item=next) {
|
for (item = asapQueue->tail; item; item=next)
|
||||||
|
{
|
||||||
next = item->next;
|
next = item->next;
|
||||||
if ((coalesceMask & NSNotificationCoalescingOnName)
|
if ((coalesceMask & NSNotificationCoalescingOnName)
|
||||||
&& [name isEqual: item->name])
|
&& [name isEqual: item->name])
|
||||||
|
@ -357,7 +359,8 @@ add_to_queue(
|
||||||
}
|
}
|
||||||
|
|
||||||
// find in idle notification in queue
|
// find in idle notification in queue
|
||||||
for (item = idleQueue->tail; item; item=next) {
|
for (item = idleQueue->tail; item; item=next)
|
||||||
|
{
|
||||||
next = item->next;
|
next = item->next;
|
||||||
if ((coalesceMask & NSNotificationCoalescingOnName)
|
if ((coalesceMask & NSNotificationCoalescingOnName)
|
||||||
&& [name isEqual: item->name])
|
&& [name isEqual: item->name])
|
||||||
|
@ -392,8 +395,8 @@ add_to_queue(
|
||||||
{
|
{
|
||||||
[self enqueueNotification: notification
|
[self enqueueNotification: notification
|
||||||
postingStyle: postingStyle
|
postingStyle: postingStyle
|
||||||
coalesceMask: NSNotificationCoalescingOnName +
|
coalesceMask: NSNotificationCoalescingOnName
|
||||||
NSNotificationCoalescingOnSender
|
+ NSNotificationCoalescingOnSender
|
||||||
forModes: nil];
|
forModes: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,7 +409,8 @@ add_to_queue(
|
||||||
[self dequeueNotificationsMatching: notification
|
[self dequeueNotificationsMatching: notification
|
||||||
coalesceMask: coalesceMask];
|
coalesceMask: coalesceMask];
|
||||||
|
|
||||||
switch (postingStyle) {
|
switch (postingStyle)
|
||||||
|
{
|
||||||
case NSPostNow:
|
case NSPostNow:
|
||||||
[self postNotification: notification forModes: modes];
|
[self postNotification: notification forModes: modes];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue