Browse Source

avoid empty macro arguments (invalid in C89)

Roberto Ierusalimschy 9 năm trước cách đây
mục cha
commit
c0836dda74
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      ldo.h
  2. 2 2
      lgc.h

+ 2 - 2
ldo.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ldo.h,v 2.27 2015/11/19 19:16:22 roberto Exp roberto $
+** $Id: ldo.h,v 2.28 2015/11/23 11:29:43 roberto Exp roberto $
 ** Stack and Call structure of Lua
 ** Stack and Call structure of Lua
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -25,7 +25,7 @@
 	  { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); }
 	  { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); }
 
 
 /* In general, 'pre'/'pos' are empty (nothing to save) */
 /* In general, 'pre'/'pos' are empty (nothing to save) */
-#define luaD_checkstack(L,n)	luaD_checkstackaux(L,n,,)
+#define luaD_checkstack(L,n)	luaD_checkstackaux(L,n,(void)0,(void)0)
 
 
 
 
 
 

+ 2 - 2
lgc.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lgc.h,v 2.89 2015/10/20 18:00:19 roberto Exp roberto $
+** $Id: lgc.h,v 2.90 2015/10/21 18:15:15 roberto Exp roberto $
 ** Garbage Collector
 ** Garbage Collector
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -112,7 +112,7 @@
 	  condchangemem(L,pre,pos); }
 	  condchangemem(L,pre,pos); }
 
 
 /* more often than not, 'pre'/'pos' are empty */
 /* more often than not, 'pre'/'pos' are empty */
-#define luaC_checkGC(L)		luaC_condGC(L,,)
+#define luaC_checkGC(L)		luaC_condGC(L,(void)0,(void)0)
 
 
 
 
 #define luaC_barrier(L,p,v) (  \
 #define luaC_barrier(L,p,v) (  \