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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/lib/msgc/src/prgcapi.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:
43
43
#include "prmon.h"
44
44
#include "prlog.h"
45
45
#include "prthread.h"
46
 
#if defined(XP_MAC)
47
 
#include "pprthred.h"
48
 
#else
49
46
#include "private/pprthred.h"
50
 
#endif
51
47
#include "gcint.h"
52
48
 
53
49
/*
82
78
static PRStatus PR_CALLBACK
83
79
pr_ScanOneThread(PRThread* t, void** addr, PRUword count, void* closure)
84
80
{
85
 
#if defined(XP_MAC)
86
 
#pragma unused (t, closure)
87
 
#endif
88
 
 
89
81
    _pr_gcData.processRootBlock(addr, count);
90
82
    return PR_SUCCESS;
91
83
}
269
261
#ifdef DEBUG
270
262
#include "prprf.h"
271
263
 
272
 
#if defined(WIN16)
273
 
static FILE *tracefile = 0;
274
 
#endif
275
 
 
276
264
PR_IMPLEMENT(void) GCTrace(char *fmt, ...)
277
265
{       
278
266
    va_list ap;
281
269
    va_start(ap, fmt);
282
270
    PR_vsnprintf(buf, sizeof(buf), fmt, ap);
283
271
    va_end(ap);
284
 
#if defined(WIN16)
285
 
    if ( tracefile == 0 )
286
 
    {
287
 
        tracefile = fopen( "xxxGCtr", "w" );
288
 
    }
289
 
    fprintf(tracefile, "%s\n", buf );
290
 
    fflush(tracefile);
291
 
#else
292
272
    PR_LOG(_pr_msgc_lm, PR_LOG_ALWAYS, ("%s", buf));
293
 
#endif
294
273
}
295
274
#endif
296
275