~ubuntu-wine/ubuntu/lucid/wine1.2/wine1.2+winepulse

« back to all changes in this revision

Viewing changes to tools/wrc/wrc.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-02-02 11:15:03 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100202111503-w4ayji21ei1ginjr
Tags: 1.1.37-0ubuntu1
* New upstream release
  - A number of fixes in AVI file support.
  - Several MSXML improvements.
  - A few MSI fixes.
  - Various bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
char *output_name = NULL;       /* The name given by the -o option */
163
163
char *input_name = NULL;        /* The name given on the command-line */
164
 
char *temp_name = NULL;         /* Temporary file for preprocess pipe */
 
164
static char *temp_name = NULL;  /* Temporary file for preprocess pipe */
165
165
 
166
166
int line_number = 1;            /* The current line */
167
167
int char_number = 1;            /* The current char pos within the line */
193
193
static const char short_options[] =
194
194
        "D:Ef:F:hi:I:J:l:o:O:rU:v";
195
195
static const struct option long_options[] = {
196
 
        { "debug", 1, 0, LONG_OPT_DEBUG },
197
 
        { "define", 1, 0, 'D' },
198
 
        { "endianess", 1, 0, LONG_OPT_ENDIANESS },
199
 
        { "help", 0, 0, 'h' },
200
 
        { "include-dir", 1, 0, 'I' },
201
 
        { "input", 1, 0, 'i' },
202
 
        { "input-format", 1, 0, 'J' },
203
 
        { "language", 1, 0, 'l' },
204
 
        { "no-use-temp-file", 0, 0, LONG_OPT_NOTMPFILE },
205
 
        { "nostdinc", 0, 0, LONG_OPT_NOSTDINC },
206
 
        { "output", 1, 0, 'o' },
207
 
        { "output-format", 1, 0, 'O' },
208
 
        { "pedantic", 0, 0, LONG_OPT_PEDANTIC },
209
 
        { "preprocessor", 1, 0, LONG_OPT_PREPROCESSOR },
210
 
        { "target", 1, 0, 'F' },
211
 
        { "undefine", 1, 0, 'U' },
212
 
        { "use-temp-file", 0, 0, LONG_OPT_TMPFILE },
213
 
        { "verbose", 0, 0, 'v' },
214
 
        { "verify-translations", 0, 0, LONG_OPT_VERIFY_TRANSL },
215
 
        { "version", 0, 0, LONG_OPT_VERSION },
216
 
        { 0, 0, 0, 0 }
 
196
        { "debug", 1, NULL, LONG_OPT_DEBUG },
 
197
        { "define", 1, NULL, 'D' },
 
198
        { "endianess", 1, NULL, LONG_OPT_ENDIANESS },
 
199
        { "help", 0, NULL, 'h' },
 
200
        { "include-dir", 1, NULL, 'I' },
 
201
        { "input", 1, NULL, 'i' },
 
202
        { "input-format", 1, NULL, 'J' },
 
203
        { "language", 1, NULL, 'l' },
 
204
        { "no-use-temp-file", 0, NULL, LONG_OPT_NOTMPFILE },
 
205
        { "nostdinc", 0, NULL, LONG_OPT_NOSTDINC },
 
206
        { "output", 1, NULL, 'o' },
 
207
        { "output-format", 1, NULL, 'O' },
 
208
        { "pedantic", 0, NULL, LONG_OPT_PEDANTIC },
 
209
        { "preprocessor", 1, NULL, LONG_OPT_PREPROCESSOR },
 
210
        { "target", 1, NULL, 'F' },
 
211
        { "undefine", 1, NULL, 'U' },
 
212
        { "use-temp-file", 0, NULL, LONG_OPT_TMPFILE },
 
213
        { "verbose", 0, NULL, 'v' },
 
214
        { "verify-translations", 0, NULL, LONG_OPT_VERIFY_TRANSL },
 
215
        { "version", 0, NULL, LONG_OPT_VERSION },
 
216
        { NULL, 0, NULL, 0 }
217
217
};
218
218
 
219
219
static void set_version_defines(void)
489
489
        /* Kill io buffering when some kind of debuglevel is enabled */
490
490
        if(debuglevel)
491
491
        {
492
 
                setbuf(stdout,0);
493
 
                setbuf(stderr,0);
 
492
                setbuf(stdout, NULL);
 
493
                setbuf(stderr, NULL);
494
494
        }
495
495
 
496
496
        parser_debug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0;