From c1a2603c700c33dce32a87b89cd2b5e93e9f528c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 25 Aug 2010 11:35:34 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Remove debugging message. git-svn-id: svn://localhost/gambas/trunk@3133 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_watch.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/main/gbx/gbx_watch.c b/main/gbx/gbx_watch.c index 0545e1d54..d3174ca9f 100644 --- a/main/gbx/gbx_watch.c +++ b/main/gbx/gbx_watch.c @@ -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)