mirror of
https://github.com/vxcontrol/lualibs-lrexlib.git
synced 2026-07-01 09:25:08 -04:00
Merge pull request #11 from tautschnig/master
Ensure consistent typing across operands of ?:
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ static const unsigned char *gettranslate (lua_State *L, int pos);
|
||||
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
|
||||
|
||||
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
|
||||
(ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
(ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
|
||||
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBBEG(ud,n) + 1)
|
||||
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBEND(ud,n))
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ static void checkarg_compile (lua_State *L, int pos, TArgComp *argC);
|
||||
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
|
||||
|
||||
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
|
||||
(ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
(ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
|
||||
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBBEG(ud,n) + 1)
|
||||
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBEND(ud,n))
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@
|
||||
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
|
||||
|
||||
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
|
||||
(ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
(ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
|
||||
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBBEG(ud,n) + 1)
|
||||
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBEND(ud,n))
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ extern void add_wide_lib (lua_State *L);
|
||||
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
|
||||
|
||||
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
|
||||
(ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
(ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
|
||||
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBBEG(ud,n) + 1)
|
||||
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBEND(ud,n))
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ void bufferZ_putrepstringW (TBuffer *BufRep, int reppos, int nsub);
|
||||
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
|
||||
|
||||
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
|
||||
(ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
(ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
|
||||
|
||||
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, ((offs) + ALG_SUBBEG(ud,n))/ALG_CHARSIZE + 1)
|
||||
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, ((offs) + ALG_SUBEND(ud,n))/ALG_CHARSIZE)
|
||||
|
||||
Reference in New Issue
Block a user