~ubuntu-branches/ubuntu/precise/nspr/precise-proposed

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/logger.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:
49
49
 
50
50
#include <stdio.h>
51
51
 
52
 
#ifdef XP_MAC
53
 
extern void SetupMacPrintfLog(char *logFile);
54
 
#endif
55
 
 
56
52
/* lth. re-define PR_LOG() */
57
53
#if 0
58
54
#undef PR_LOG_TEST
119
115
 
120
116
} /* end UserLogStuff() */
121
117
 
122
 
int main(PRIntn argc, const char **argv)
 
118
int main(int argc, char **argv)
123
119
{
124
120
    PRThread *thread;
125
121
 
126
122
    PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
127
123
    PR_STDIO_INIT();
128
124
 
129
 
#ifndef XP_MAC
130
125
    if (argc > 1)
131
126
    {
132
127
        if (!PR_SetLogFile(argv[1]))
135
130
            goto exit;
136
131
        }
137
132
    }
138
 
#else
139
 
        SetupMacPrintfLog("logger.log");
140
 
#endif
141
133
 
142
134
    /* Start logging something here */
143
135
    PR_LogPrint("%s logging into %s\n", argv[0], argv[1]);