~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/lib/ds/plarena.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
PR_IMPLEMENT(void) PL_InitArenaPool(
109
109
    PLArenaPool *pool, const char *name, PRUint32 size, PRUint32 align)
110
110
{
111
 
#if defined(XP_MAC)
112
 
#pragma unused (name)
113
 
#endif
114
 
 
115
111
    /*
116
112
     * Look-up table of PR_BITMASK(PR_CeilingLog2(align)) values for
117
113
     * align = 1 to 32.
345
341
 
346
342
PR_IMPLEMENT(void) PL_CompactArenaPool(PLArenaPool *ap)
347
343
{
348
 
#if XP_MAC
349
 
#pragma unused (ap)
350
 
#if 0
351
 
    PRArena *curr = &(ap->first);
352
 
    while (curr) {
353
 
        reallocSmaller(curr, curr->avail - (uprword_t)curr);
354
 
        curr->limit = curr->avail;
355
 
        curr = curr->next;
356
 
    }
357
 
#endif
358
 
#endif
359
344
}
360
345
 
361
346
PR_IMPLEMENT(void) PL_ArenaFinish(void)