--- gforth/Attic/ecvt.c 1994/11/29 16:49:47 1.1 +++ gforth/Attic/ecvt.c 1994/12/12 17:10:34 1.2 @@ -1,40 +1,3 @@ -#include -#include - -jmp_buf throw_jmp_buf; - -/* select replacement for DOS computers for ms only */ -void select(int n, int a, int b, int c, struct timeval * timeout) -{ - struct timeval time1; - struct timeval time2; - struct timezone zone1; - - gettimeofday(&time1,&zone1); - time1.tv_sec += timeout->tv_sec; - time1.tv_usec += timeout->tv_usec; - if(time1.tv_usec >= 1000000) - { - time1.tv_sec += time1.tv_usec / 1000000; - time1.tv_usec %= 1000000; - } - do - { - gettimeofday(&time2,&zone1); - } - while(time2.tv_sec < time1.tv_sec); - - do - { - gettimeofday(&time2,&zone1); - } - while(time2.tv_usec < time1.tv_usec && - time2.tv_sec == time1.tv_sec); - -} - -/* cheap ecvt replacement */ - #include #define MAXCONV 0x40