([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:
mccallum 1996-03-18 20:29:34 +00:00
parent be2ab8f283
commit 4904c6560a

View file

@ -147,7 +147,8 @@ static RunLoop *current_run_loop;
- (void) addPort: port
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;
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
I'm using -lieee. */
#if 1
assert (mode);
return nil;
#else
Heap *timers;
@ -253,6 +255,7 @@ static RunLoop *current_run_loop;
NSMapTable *fd_2_object;
id saved_mode;
assert (mode);
saved_mode = _current_mode;
_current_mode = mode;