diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
commit | e1d072571ec6f9d830e575a2ecdc95fd43428e53 (patch) | |
tree | 830fab7f2acb9adaee2d63073d339cc9557a5437 /ldo.c | |
parent | 7651a5c6b2ee6ec59cadec6199319d482071f176 (diff) | |
download | lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.gz lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.bz2 lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.zip |
better syntax for type casts
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.137 2001/07/12 19:34:03 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.138 2001/07/16 20:24:48 roberto Exp $ |
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 | */ |
@@ -176,7 +176,7 @@ struct CallS { /* data to `f_call' */ | |||
176 | }; | 176 | }; |
177 | 177 | ||
178 | static void f_call (lua_State *L, void *ud) { | 178 | static void f_call (lua_State *L, void *ud) { |
179 | struct CallS *c = (struct CallS *)ud; | 179 | struct CallS *c = cast(struct CallS *, ud); |
180 | luaD_call(L, c->func); | 180 | luaD_call(L, c->func); |
181 | if (c->nresults != LUA_MULTRET) | 181 | if (c->nresults != LUA_MULTRET) |
182 | luaD_adjusttop(L, c->func + c->nresults); | 182 | luaD_adjusttop(L, c->func + c->nresults); |
@@ -207,7 +207,7 @@ struct SParser { /* data to `f_parser' */ | |||
207 | }; | 207 | }; |
208 | 208 | ||
209 | static void f_parser (lua_State *L, void *ud) { | 209 | static void f_parser (lua_State *L, void *ud) { |
210 | struct SParser *p = (struct SParser *)ud; | 210 | struct SParser *p = cast(struct SParser *, ud); |
211 | Proto *tf = p->bin ? luaU_undump(L, p->z) : luaY_parser(L, p->z); | 211 | Proto *tf = p->bin ? luaU_undump(L, p->z) : luaY_parser(L, p->z); |
212 | luaV_Lclosure(L, tf, 0); | 212 | luaV_Lclosure(L, tf, 0); |
213 | } | 213 | } |