[INTERPRETER]

* BUG: Remove debugging message.


git-svn-id: svn://localhost/gambas/trunk@3133 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-08-25 11:35:34 +00:00
parent 19a21789e6
commit c1a2603c70

View file

@ -289,21 +289,10 @@ static void watch_fd(int fd, int flag, bool watch)
static int watch_find_callback(int fd)
{
fprintf(stderr, "watch_find_callback: %d\n", fd);
if (fd < 0 || fd >= ARRAY_count(watch_index))
return -1;
else
return watch_index[fd];
/*int i;
for (i = 0; i < ARRAY_count(watch_callback); i++)
{
if (fd == watch_callback[i].fd)
return i;
}
return (-1);*/
}
@ -456,15 +445,15 @@ static void raise_callback(fd_set *rfd, fd_set *wfd)
// We copy the callback structure, because the watch_callback array can change during the
// execution of the callbacks.
if (watch_callback[i].fd < 0)
continue;
wcb = watch_callback[i];
#if DEBUG_WATCH
fprintf(stderr, "raise_callback: [%d] fd = %d read = %p (%p) write = %p (%p)\n", i, wcb.fd, wcb.callback_read, (void *)wcb.param_read, wcb.callback_write, (void *)wcb.param_write);
#endif
if (wcb.fd < 0)
continue;
if (FD_ISSET(wcb.fd, rfd))
{
if (wcb.callback_read)