mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +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
|
||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997-1999 Free Software Foundation, Inc.
|
||||
|
||||
Modified by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: 1997
|
||||
Rewritten: 1999
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
||||
|
@ -313,7 +314,7 @@ add_to_queue(
|
|||
{
|
||||
NSNotificationQueueRegistration *item;
|
||||
|
||||
// remove from classs instances list
|
||||
// remove from class instances list
|
||||
[NotificationQueueList unregisterQueue: self];
|
||||
|
||||
// release self
|
||||
|
@ -340,7 +341,8 @@ add_to_queue(
|
|||
id object = [notification object];
|
||||
|
||||
// find in ASAP notification in queue
|
||||
for (item = asapQueue->tail; item; item=next) {
|
||||
for (item = asapQueue->tail; item; item=next)
|
||||
{
|
||||
next = item->next;
|
||||
if ((coalesceMask & NSNotificationCoalescingOnName)
|
||||
&& [name isEqual: item->name])
|
||||
|
@ -357,7 +359,8 @@ add_to_queue(
|
|||
}
|
||||
|
||||
// find in idle notification in queue
|
||||
for (item = idleQueue->tail; item; item=next) {
|
||||
for (item = idleQueue->tail; item; item=next)
|
||||
{
|
||||
next = item->next;
|
||||
if ((coalesceMask & NSNotificationCoalescingOnName)
|
||||
&& [name isEqual: item->name])
|
||||
|
@ -392,8 +395,8 @@ add_to_queue(
|
|||
{
|
||||
[self enqueueNotification: notification
|
||||
postingStyle: postingStyle
|
||||
coalesceMask: NSNotificationCoalescingOnName +
|
||||
NSNotificationCoalescingOnSender
|
||||
coalesceMask: NSNotificationCoalescingOnName
|
||||
+ NSNotificationCoalescingOnSender
|
||||
forModes: nil];
|
||||
}
|
||||
|
||||
|
@ -406,7 +409,8 @@ add_to_queue(
|
|||
[self dequeueNotificationsMatching: notification
|
||||
coalesceMask: coalesceMask];
|
||||
|
||||
switch (postingStyle) {
|
||||
switch (postingStyle)
|
||||
{
|
||||
case NSPostNow:
|
||||
[self postNotification: notification forModes: modes];
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue