lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


1) Minor note, the makefile in /lib still refers to popen(and I have
some reservations about popen removal)..
2) is newproxy now supported?
3) given that gcinfo() now only returns 1 value, how do you determine
the current threshold
4) I added isatty() for win32
5) I have added (and tested) the lrint() support for VC6/Win32. This
mirrors the GCC implementation. The patch follows:

*** orig-lua-5.1-work3/include/luaconf.h	Tue Dec 07 03:53:42 2004
--- lua-5.1-work3/include/luaconf.h	Sat Dec 11 15:03:06 2004
***************
*** 82,87 ****
--- 82,90 ----
  #ifdef _POSIX_C_SOURCE
  #include <unistd.h>
  #define stdin_is_tty()		isatty(0)
+ #elif (defined (WIN32) || defined (_WIN32))
+ #include <io.h>
+ #define stdin_is_tty()		_isatty(0)
  #else
  #define stdin_is_tty()		1  /* assume stdin is a tty */
  #endif
***************
*** 204,209 ****
--- 207,224 ----
  /* on machines compliant with C99, you can try `lrint' */
  #include <math.h>
  #define lua_number2int(i,d)	((i)=lrint(d))
+ #elif ((defined (WIN32) || defined (_WIN32)) && defined(_M_IX86))
+ #include	<math.h>
+ #pragma warning(disable: 4514)
+ __inline int lrint (double flt)
+ {	int i;
+ 	_asm {
+       fld flt
+       fistp i
+ 	};
+ 	return i;
+ }
+ #define lua_number2int(i,d)	((i)=lrint((d)))
  #else
  #define lua_number2int(i,d)	((i)=(int)(d))
  #endif