lua-users home
lua-l archive

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


On 08/01/2010 19:28, Ignacio Burgueño wrote:
On 08/01/2010 19:16, Alexander Gladysh wrote:
On Fri, Jan 8, 2010 at 23:49, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
Lua 5.2.0 (work1) is now available at
http://www.lua.org/work/lua-5.2.0-work1.tar.gz

All feedback welcome. Thanks.

I get a warning from $ make macosx:

gcc -O2 -Wall -DLUA_USE_MACOSX -c -o print.o print.c
print.c: In function 'PrintCode':
print.c:94: warning: enumeration value 'iAx' not handled in switch

I do not get such warning on 5.1.4.


Same here, but using Mingw.

gcc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lundump.o lundump.c
lundump.c:76: error: conflicting types for 'LoadStringA'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:3855: error:
previous declaration of 'LoadStringA' was here
lundump.c:76: error: conflicting types for 'LoadStringA'
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:3855: error:
previous declaration of 'LoadStringA' was here


Patch attached.

Regards,
Ignacio
--- reference\src\lundump.c	Wed Sep 30 13:38:37 2009
+++ src\lundump.c	Fri Jan 08 21:01:40 2010
@@ -20,6 +20,11 @@
 #include "lundump.h"
 #include "lzio.h"
 
+#ifdef LUA_WIN
+  #pragma push_macro("LoadString")
+  #undef LoadString
+#endif
+
 typedef struct {
  lua_State* L;
  ZIO* Z;
@@ -235,3 +240,7 @@
  *h++=(char)sizeof(lua_Number);
  *h++=(char)(((lua_Number)0.5)==0);		/* is lua_Number integral? */
 }
+
+#ifdef LUA_WIN
+  #pragma pop_macro("LoadString")
+#endif