wrc: Remove no longer used cmdline copy.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-09-22 21:47:32 +02:00
parent 5e0479c497
commit 7722168823
2 changed files with 0 additions and 18 deletions

View File

@ -162,8 +162,6 @@ const char *nlsdirs[3] = { NULL, NLSDIR, NULL };
int line_number = 1; /* The current line */
int char_number = 1; /* The current char pos within the line */
char *cmdline; /* The entire commandline */
int parser_debug, yy_flex_debug;
resource_t *resource_top; /* The top of the parsed resources */
@ -367,7 +365,6 @@ int main(int argc,char *argv[])
int lose = 0;
int nb_files = 0;
int i;
int cmdlen;
int po_mode = 0;
char *po_dir = NULL;
const char *sysroot = "";
@ -387,20 +384,6 @@ int main(int argc,char *argv[])
/* Microsoft RC always searches current directory */
wpp_add_include_path(".");
/* First rebuild the commandline to put in destination */
/* Could be done through env[], but not all OS-es support it */
cmdlen = 4; /* for "wrc " */
for(i = 1; i < argc; i++)
cmdlen += strlen(argv[i]) + 1;
cmdline = xmalloc(cmdlen);
strcpy(cmdline, "wrc ");
for(i = 1; i < argc; i++)
{
strcat(cmdline, argv[i]);
if(i < argc-1)
strcat(cmdline, " ");
}
while((optc = getopt_long(argc, argv, short_options, long_options, &opti)) != EOF)
{
switch(optc)

View File

@ -43,7 +43,6 @@ extern int utf8_input;
extern int check_utf8;
extern char *input_name;
extern char *cmdline;
extern const char *nlsdirs[];