diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-12-21 11:02:14 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-12-21 11:02:14 -0200 |
| commit | c0836dda740f735c3f6a01b0090870b6c806d479 (patch) | |
| tree | cb5d61b81d20123d38ff83252a8fb3b64de1957d | |
| parent | 384d1b47b0542cfb5df38eaac18a2f87726a3ef3 (diff) | |
| download | lua-c0836dda740f735c3f6a01b0090870b6c806d479.tar.gz lua-c0836dda740f735c3f6a01b0090870b6c806d479.tar.bz2 lua-c0836dda740f735c3f6a01b0090870b6c806d479.zip | |
avoid empty macro arguments (invalid in C89)
Diffstat (limited to '')
| -rw-r--r-- | ldo.h | 4 | ||||
| -rw-r--r-- | lgc.h | 4 |
2 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.h,v 2.27 2015/11/19 19:16:22 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 2.28 2015/11/23 11:29:43 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -25,7 +25,7 @@ | |||
| 25 | { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); } | 25 | { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); } |
| 26 | 26 | ||
| 27 | /* In general, 'pre'/'pos' are empty (nothing to save) */ | 27 | /* In general, 'pre'/'pos' are empty (nothing to save) */ |
| 28 | #define luaD_checkstack(L,n) luaD_checkstackaux(L,n,,) | 28 | #define luaD_checkstack(L,n) luaD_checkstackaux(L,n,(void)0,(void)0) |
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | 31 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.h,v 2.89 2015/10/20 18:00:19 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.90 2015/10/21 18:15:15 roberto Exp roberto $ |
| 3 | ** Garbage Collector | 3 | ** Garbage Collector |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -112,7 +112,7 @@ | |||
| 112 | condchangemem(L,pre,pos); } | 112 | condchangemem(L,pre,pos); } |
| 113 | 113 | ||
| 114 | /* more often than not, 'pre'/'pos' are empty */ | 114 | /* more often than not, 'pre'/'pos' are empty */ |
| 115 | #define luaC_checkGC(L) luaC_condGC(L,,) | 115 | #define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0) |
| 116 | 116 | ||
| 117 | 117 | ||
| 118 | #define luaC_barrier(L,p,v) ( \ | 118 | #define luaC_barrier(L,p,v) ( \ |
