~ubuntu-branches/ubuntu/maverick/luajit/maverick

« back to all changes in this revision

Viewing changes to src/lj_gc.h

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2010-03-29 11:28:36 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100329112836-jyl39c159mh294kc
Tags: 2.0.0~beta4+dfsg-1
* new upstream release
* bumped stsandards version to 3.8.4, no changes 
* switch to source format 3 + quilt 

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
                          MSize *szp, MSize lim, MSize esz);
92
92
 
93
93
#define lj_mem_new(L, s)        lj_mem_realloc(L, NULL, 0, (s))
94
 
#define lj_mem_free(g, p, osize) \
95
 
  (g->gc.total -= (MSize)(osize), g->allocf(g->allocd, (p), (osize), 0))
 
94
 
 
95
static LJ_AINLINE void lj_mem_free(global_State *g, void *p, size_t osize)
 
96
{
 
97
  g->gc.total -= (MSize)osize;
 
98
  g->allocf(g->allocd, p, osize, 0);
 
99
}
96
100
 
97
101
#define lj_mem_newvec(L, n, t)  ((t *)lj_mem_new(L, (MSize)((n)*sizeof(t))))
98
102
#define lj_mem_reallocvec(L, p, on, n, t) \