~ubuntu-branches/ubuntu/trusty/luajit/trusty

« back to all changes in this revision

Viewing changes to src/lj_state.c

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2011-05-09 23:14:21 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110509231421-zdcnqbqk5h6iryxr
Tags: 2.0.0~beta7+dfsg-1
New upstream release with arm support

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
182
182
#endif
183
183
{
184
 
  GG_State *GG = cast(GG_State *, f(ud, NULL, 0, sizeof(GG_State)));
 
184
  GG_State *GG = (GG_State *)f(ud, NULL, 0, sizeof(GG_State));
185
185
  lua_State *L = &GG->L;
186
186
  global_State *g = &GG->g;
187
187
  if (GG == NULL || !checkptr32(GG)) return NULL;
225
225
{
226
226
  UNUSED(dummy);
227
227
  UNUSED(ud);
228
 
  lj_gc_finalizeudata(L);
 
228
  lj_gc_finalize_udata(L);
 
229
  lj_gc_finalize_cdata(L);
229
230
  /* Frame pop omitted. */
230
231
  return NULL;
231
232
}