aboutsummaryrefslogtreecommitdiffstats
path: root/common/w32help.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-03-04 15:52:03 +0000
committerWerner Koch <[email protected]>2021-03-04 15:59:21 +0000
commit089c9439674e8ecbc64f0ba924e6fb447bbc2b9d (patch)
tree6c72cea63c4a70ca614664c40ccaadb76d161bba /common/w32help.h
parentcommon,w32: Refine the command line parsing for \ in quotes. (diff)
downloadgnupg-089c9439674e8ecbc64f0ba924e6fb447bbc2b9d.tar.gz
gnupg-089c9439674e8ecbc64f0ba924e6fb447bbc2b9d.zip
common,w32: Implement globing of command line args.
* common/w32-misc.c [W32]: Include windows.h (struct add_arg_s): New. (add_arg): New. (glob_arg): New. (parse_cmdstring): Add arg argvflags and set it. (w32_parse_commandline): Add arg r_itemsalloced. Add globing. * common/init.c (prepare_w32_commandline): Mark glob created items as leaked. * common/t-w32-cmdline.c : Include windows.h (test_all): Add simple glob test for Unix. (main): Add manual test mode for Windows. -- GnuPG-bug-id: 4398
Diffstat (limited to 'common/w32help.h')
-rw-r--r--common/w32help.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/w32help.h b/common/w32help.h
index ca5ccf8bd..7f97f0d3e 100644
--- a/common/w32help.h
+++ b/common/w32help.h
@@ -32,8 +32,10 @@
#define GNUPG_COMMON_W32HELP_H
/*-- w32-misc.c --*/
+
/* This module is also part of the Unix tests. */
-char **w32_parse_commandline (char *cmdline, int globing, int *r_argc);
+char **w32_parse_commandline (char *cmdline, int globing, int *r_argv,
+ int *r_itemsalloced);