Module: wine Branch: master Commit: 77221688233247cae9b4dad7a05eb8a1d251934a URL: https://source.winehq.org/git/wine.git/?a=commit;h=77221688233247cae9b4dad7a...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 22 21:47:32 2021 +0200
wrc: Remove no longer used cmdline copy.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
tools/wrc/wrc.c | 17 ----------------- tools/wrc/wrc.h | 1 - 2 files changed, 18 deletions(-)
diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c index fec05148adc..c95819a793e 100644 --- a/tools/wrc/wrc.c +++ b/tools/wrc/wrc.c @@ -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) diff --git a/tools/wrc/wrc.h b/tools/wrc/wrc.h index 24b0e28904f..d39284fbe96 100644 --- a/tools/wrc/wrc.h +++ b/tools/wrc/wrc.h @@ -43,7 +43,6 @@ extern int utf8_input; extern int check_utf8;
extern char *input_name; -extern char *cmdline;
extern const char *nlsdirs[];