Mercurial > hg > octave-lojdl
changeset 4581:f99c430316cd
[project @ 2003-10-31 14:42:07 by jwe]
author | jwe |
---|---|
date | Fri, 31 Oct 2003 14:42:07 +0000 |
parents | cb1b4271643c |
children | db5a24d54915 |
files | src/ChangeLog src/cutils.c |
diffstat | 2 files changed, 16 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2003-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> + * cutils.c (octave_usleep) [HAVE_SELECT]: Introduce new local + scope for declaration of delay. + [HAVE_POLL]: Likewise, for delay and pfd. + * ov-base.cc (octave_base_value::bool_array_value): Function takes no args. * ov-base.h: Likewise, for decl.
--- a/src/cutils.c +++ b/src/cutils.c @@ -89,20 +89,24 @@ #elif defined (HAVE_SELECT) - struct timeval delay; + { + struct timeval delay; - delay.tv_sec = 0; - delay.tv_usec = usec; + delay.tv_sec = 0; + delay.tv_usec = usec; - select (0, 0, 0, 0, &delay); + select (0, 0, 0, 0, &delay); + } #elif defined (HAVE_POLL) - struct pollfd pfd; - int delay = usec / 1000; + { + struct pollfd pfd; + int delay = usec / 1000; - if (delay > 0) - poll (&fd, 0, delay); + if (delay > 0) + poll (&fd, 0, delay); + } #endif }