mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
([RunLoop -limitDateForMode:]): Assert mode.
([RunLoop -acceptInputForMode:beforeDate:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be2ab8f283
commit
4904c6560a
1 changed files with 4 additions and 1 deletions
|
@ -147,7 +147,8 @@ static RunLoop *current_run_loop;
|
||||||
- (void) addPort: port
|
- (void) addPort: port
|
||||||
forMode: (id <String>)mode
|
forMode: (id <String>)mode
|
||||||
{
|
{
|
||||||
/* xxx Perhaps this should be a Bag instead. */
|
/* xxx Perhaps this should be a Bag instead; I think this currently works
|
||||||
|
when a port is added more than once, but it doesn't work prettily. */
|
||||||
Array *in_ports;
|
Array *in_ports;
|
||||||
|
|
||||||
in_ports = NSMapGet (_mode_2_in_ports, mode);
|
in_ports = NSMapGet (_mode_2_in_ports, mode);
|
||||||
|
@ -201,6 +202,7 @@ static RunLoop *current_run_loop;
|
||||||
/* Linux doesn't always return double from methods, even though
|
/* Linux doesn't always return double from methods, even though
|
||||||
I'm using -lieee. */
|
I'm using -lieee. */
|
||||||
#if 1
|
#if 1
|
||||||
|
assert (mode);
|
||||||
return nil;
|
return nil;
|
||||||
#else
|
#else
|
||||||
Heap *timers;
|
Heap *timers;
|
||||||
|
@ -253,6 +255,7 @@ static RunLoop *current_run_loop;
|
||||||
NSMapTable *fd_2_object;
|
NSMapTable *fd_2_object;
|
||||||
id saved_mode;
|
id saved_mode;
|
||||||
|
|
||||||
|
assert (mode);
|
||||||
saved_mode = _current_mode;
|
saved_mode = _current_mode;
|
||||||
_current_mode = mode;
|
_current_mode = mode;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue