The POSIX sleep() function ( ) should interpret is input
argument as seconds.
TinyC seems to interpret it as milliseconds.
Using tcc version 0.9.26
/***/
#include
#include
int main() {
int i;
fputs("Looping ...\n",stdout);
for(i=0;i<10;i++) {
rites "myX.10 = 10 ;" in the main body, tcc does
not crash,
but the error message is quite strange:
" error: ';' expected (got "└")"
--
Hernán J. González
Buenos Aires, Argentina
hjg.com...@gmail.com
___
Tinycc-de
= 0.25f;
int t2a = (int)(t1 * f);
int t2b = (int)(t1 * (float)0.25f);
printf(t2a=%d t2b=%d \n,t2a,t2b);
return 0;
}
//
prints
t2a=44100313 t2b=44100312
Using tcc version 0.9.26 (i386 Win32)
--
Hernán J. González
--
Hernán J
Example:
#includestdio.h
int main() {
struct asdasd x;
printf(%d\n, sizeof(x));
}
This should fail cleanly at compile, and it does in 0.9.25 ( unknown type
size)
In my version (tcc version 0.9.26
The new version (0.9.26) tiny_libmaker.exe does not perform expansion
as old version did:
compilers\tccold\tiny_libmaker.exe rc x.a *.o
lib1.o:
lib2.o:
lib3.o:
compilers\tccnew\tiny_libmaker.exe rc x.a *.o
Can't open file *.o
Not a big deal, but I wonder if this is intended behaviour?
Hernán
The new version (0.9.26) does not include the include/unistd.h file,
only include/sys/unistd.h
I know I can simply copy it (I've already done it) but I wonder if the
change was intentional,
I believe unistd.h is more standard than sys/unistd.h, and this
could break many compilations.
Hernán